org.nuiton.components.cipher
Class DefaultPlexusCipher
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.nuiton.components.cipher.DefaultPlexusCipher
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, org.sonatype.plexus.components.cipher.PlexusCipher
public class DefaultPlexusCipher
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements org.sonatype.plexus.components.cipher.PlexusCipher
This class was forked from plexus-cipher:1.4.
Since maven 2.2.x can not use this plexus component in a mojo
from the original artifact.
- Author:
- Oleg Gusakov
- Plexus component:
- role:
- "org.sonatype.plexus.components.cipher.PlexusCipher"
- role-hint:
- "maven-helper-plugin"
|
| Fields inherited from interface org.sonatype.plexus.components.cipher.PlexusCipher |
ENCRYPTED_STRING_DECORATION_START, ENCRYPTED_STRING_DECORATION_STOP, ROLE |
|
Method Summary |
java.lang.String |
decorate(java.lang.String str)
|
java.lang.String |
decrypt(java.lang.String str,
java.lang.String passPhrase)
|
java.lang.String |
decryptDecorated(java.lang.String str,
java.lang.String passPhrase)
|
java.lang.String |
encrypt(java.lang.String str,
java.lang.String passPhrase)
|
java.lang.String |
encryptAndDecorate(java.lang.String str,
java.lang.String passPhrase)
|
static java.lang.String[] |
getCryptoImpls(java.lang.String serviceType)
This method returns the available implementations for a service type |
static java.lang.String[] |
getServiceTypes()
Exploratory part. |
boolean |
isEncryptedString(java.lang.String str)
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
unDecorate(java.lang.String str)
|
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPlexusCipher
public DefaultPlexusCipher()
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
encrypt
public java.lang.String encrypt(java.lang.String str,
java.lang.String passPhrase)
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Specified by:
encrypt in interface org.sonatype.plexus.components.cipher.PlexusCipher
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
encryptAndDecorate
public java.lang.String encryptAndDecorate(java.lang.String str,
java.lang.String passPhrase)
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Specified by:
encryptAndDecorate in interface org.sonatype.plexus.components.cipher.PlexusCipher
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
decrypt
public java.lang.String decrypt(java.lang.String str,
java.lang.String passPhrase)
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Specified by:
decrypt in interface org.sonatype.plexus.components.cipher.PlexusCipher
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
decryptDecorated
public java.lang.String decryptDecorated(java.lang.String str,
java.lang.String passPhrase)
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Specified by:
decryptDecorated in interface org.sonatype.plexus.components.cipher.PlexusCipher
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
isEncryptedString
public boolean isEncryptedString(java.lang.String str)
- Specified by:
isEncryptedString in interface org.sonatype.plexus.components.cipher.PlexusCipher
unDecorate
public java.lang.String unDecorate(java.lang.String str)
throws org.sonatype.plexus.components.cipher.PlexusCipherException
- Specified by:
unDecorate in interface org.sonatype.plexus.components.cipher.PlexusCipher
- Throws:
org.sonatype.plexus.components.cipher.PlexusCipherException
decorate
public java.lang.String decorate(java.lang.String str)
- Specified by:
decorate in interface org.sonatype.plexus.components.cipher.PlexusCipher
getServiceTypes
public static java.lang.String[] getServiceTypes()
- Exploratory part. This method returns all available services types
getCryptoImpls
public static java.lang.String[] getCryptoImpls(java.lang.String serviceType)
- This method returns the available implementations for a service type
main
public static void main(java.lang.String[] args)
Copyright © 2009-2010 CodeLutin. All Rights Reserved.