@Singleton @Named public class DefaultSecDispatcher extends Object implements SecDispatcher
Modifier and Type | Field and Description |
---|---|
protected org.sonatype.plexus.components.cipher.PlexusCipher |
_cipher
DefaultHandler
|
protected String |
_configurationFile
Configuration file
|
protected Map<String,PasswordDecryptor> |
_decryptors
All available dispatchers
|
static char |
ATTR_START |
static char |
ATTR_STOP |
static String |
SYSTEM_PROPERTY_SEC_LOCATION |
static String |
TYPE_ATTR |
SYSTEM_PROPERTY_MASTER_PASSWORD, SYSTEM_PROPERTY_SERVER_PASSWORD
Constructor and Description |
---|
DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher)
Ctor to be used in tests and other simplified cases (no decryptors and config).
|
DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher,
Map<String,PasswordDecryptor> _decryptors,
String _configurationFile) |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String str)
decrypt given encrypted string
|
String |
getConfigurationFile() |
static void |
main(String[] args) |
void |
setConfigurationFile(String file) |
public static final String SYSTEM_PROPERTY_SEC_LOCATION
public static final String TYPE_ATTR
public static final char ATTR_START
public static final char ATTR_STOP
protected final org.sonatype.plexus.components.cipher.PlexusCipher _cipher
protected final Map<String,PasswordDecryptor> _decryptors
protected String _configurationFile
@Inject public DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher, Map<String,PasswordDecryptor> _decryptors, @Named(value="${_configurationFile:-~/.settings-security.xml}") String _configurationFile)
public DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher)
public String decrypt(String str) throws SecDispatcherException
SecDispatcher
decrypt
in interface SecDispatcher
SecDispatcherException
public String getConfigurationFile()
public void setConfigurationFile(String file)
Copyright © 2001–2021 Codehaus Plexus. All rights reserved.