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.PlexusCipherDefaultHandlerprotected Stringprotected MapAll available dispatchersstatic final charstatic final charstatic final Stringstatic final StringFields 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 Stringprivate SettingsSecuritygetSec()private booleanisEncryptedString(String str) static voidprivate static booleanpropertyExists(String[] values, String[] av) Encrytion helpervoidsetConfigurationFile(String file) private static voidshow(boolean showMaster) private Stringprivate MapstripAttributes(String str) private static final voidusage()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:SecDispatcherdecrypt given encrypted string- Specified by:
decryptin 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
-