Class DefaultSecDispatcher
java.lang.Object
org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
- All Implemented Interfaces:
SecDispatcher
- Author:
- Oleg Gusakov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.sonatype.plexus.components.cipher.PlexusCipherDefaultHandlerprotected StringConfiguration fileprotected final Map<String, PasswordDecryptor> All available dispatchersstatic final charstatic final charstatic final Stringstatic final StringFields inherited from interface SecDispatcher
SYSTEM_PROPERTY_MASTER_PASSWORD, SYSTEM_PROPERTY_SERVER_PASSWORD -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSecDispatcher(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) -
Method Summary
Modifier and TypeMethodDescriptiondecrypt given encrypted stringstatic voidvoidsetConfigurationFile(String file)
-
Field Details
-
SYSTEM_PROPERTY_SEC_LOCATION
- See Also:
-
TYPE_ATTR
- See Also:
-
ATTR_START
public static final char ATTR_START- See Also:
-
ATTR_STOP
public static final char ATTR_STOP- See Also:
-
_cipher
protected final org.sonatype.plexus.components.cipher.PlexusCipher _cipherDefaultHandler -
_decryptors
All available dispatchers -
_configurationFile
Configuration file
-
-
Constructor Details
-
DefaultSecDispatcher
@Inject public DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher, Map<String, PasswordDecryptor> _decryptors, @Named("${_configurationFile:-~/.settings-security.xml}") String _configurationFile) -
DefaultSecDispatcher
public DefaultSecDispatcher(org.sonatype.plexus.components.cipher.PlexusCipher _cipher) Ctor to be used in tests and other simplified cases (no decryptors and config).
-
-
Method Details
-
decrypt
Description copied from interface:SecDispatcherdecrypt given encrypted string- Specified by:
decryptin interfaceSecDispatcher- Parameters:
str-- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
getConfigurationFile
-
setConfigurationFile
-
main
-