All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ops4j.pax.url.mvn.internal.ConfigurableSettingsDecrypter Maven / Gradle / Ivy

Go to download

OPS4J Pax Url - aether: protocol handler. Detailed information to be found at http://wiki.ops4j.org/confluence/x/CoA6.

There is a newer version: 2.6.15
Show newest version
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