Class DefaultSecDispatcher
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
,SecDispatcher
public class DefaultSecDispatcher
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements SecDispatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.sonatype.plexus.components.cipher.PlexusCipher
DefaultHandlerprotected String
protected Map
All available dispatchersstatic final char
static final char
static final String
static final String
Fields inherited from interface org.sonatype.plexus.components.sec.dispatcher.SecDispatcher
ROLE, SYSTEM_PROPERTY_MASTER_PASSWORD, SYSTEM_PROPERTY_SERVER_PASSWORD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecrypt given encrypted stringprivate String
private SettingsSecurity
getSec()
private boolean
isEncryptedString
(String str) static void
private static boolean
propertyExists
(String[] values, String[] av) Encrytion helpervoid
setConfigurationFile
(String file) private static void
show
(boolean showMaster) private String
private Map
stripAttributes
(String str) private static final void
usage()
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
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 org.sonatype.plexus.components.cipher.PlexusCipher _cipherDefaultHandler -
_decryptors
All available dispatchers -
_configurationFile
-
-
Constructor Details
-
DefaultSecDispatcher
public DefaultSecDispatcher()
-
-
Method Details
-
decrypt
Description copied from interface:SecDispatcher
decrypt given encrypted string- Specified by:
decrypt
in interfaceSecDispatcher
- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
strip
-
stripAttributes
-
isEncryptedString
-
getSec
- Throws:
SecDispatcherException
-
getMaster
- Throws:
SecDispatcherException
-
getConfigurationFile
-
setConfigurationFile
-
propertyExists
Encrytion helper- Throws:
IOException
-
usage
private static final void usage() -
main
- Throws:
Exception
-
show
- Throws:
Exception
-