org.ops4j.pax.url.mvn.internal.ConfigurableSettingsDecrypter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pax-url-aether Show documentation
Show all versions of pax-url-aether Show documentation
OPS4J Pax Url - aether: protocol handler.
Detailed information to be found at http://wiki.ops4j.org/confluence/x/CoA6.
package org.ops4j.pax.url.mvn.internal;
import java.lang.reflect.Field;
import org.apache.maven.settings.crypto.DefaultSettingsDecrypter;
import org.sonatype.plexus.components.sec.dispatcher.SecDispatcher;
public class ConfigurableSettingsDecrypter extends DefaultSettingsDecrypter
{
public void setSecurityDispatcher( SecDispatcher securityDispatcher )
{
try
{
Field field = DefaultSettingsDecrypter.class.getDeclaredField( "securityDispatcher" );
field.setAccessible( true );
field.set( this, securityDispatcher );
}
catch( Exception exc )
{
throw new IllegalStateException( exc );
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy