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 |
| 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 String encrypt(String str,
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 String encryptAndDecorate(String str,
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 String decrypt(String str,
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 String decryptDecorated(String str,
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(String str)
- Specified by:
isEncryptedString in interface org.sonatype.plexus.components.cipher.PlexusCipher
unDecorate
public String unDecorate(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 String decorate(String str)
- Specified by:
decorate in interface org.sonatype.plexus.components.cipher.PlexusCipher
getServiceTypes
public static String[] getServiceTypes()
- Exploratory part. This method returns all available services types
getCryptoImpls
public static String[] getCryptoImpls(String serviceType)
- This method returns the available implementations for a service type
main
public static void main(String[] args)
Copyright © 2009-2010 CodeLutin. All Rights Reserved.