|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.sonatype.plexus.components.cipher.DefaultPlexusCipher
public class DefaultPlexusCipher
| Field Summary |
|---|
| Fields inherited from interface org.sonatype.plexus.components.cipher.PlexusCipher |
|---|
ENCRYPTED_STRING_DECORATION_START, ENCRYPTED_STRING_DECORATION_STOP, ROLE |
| Constructor Summary | |
|---|---|
DefaultPlexusCipher()
|
|
| Method Summary | |
|---|---|
String |
decorate(String str)
decorated given string with { and } |
String |
decrypt(String str,
String passPhrase)
decrypt given base64 encrypted string |
String |
decryptDecorated(String str,
String passPhrase)
decrypt given base64 encoded encrypted string. |
String |
encrypt(String str,
String passPhrase)
encrypt given string with the given passPhrase and encode it into base64 |
String |
encryptAndDecorate(String str,
String passPhrase)
encrypt given string with the given passPhrase, encode it into base64 and return result, wrapped into { } decorations |
static String[] |
getCryptoImpls(String serviceType)
This method returns the available implementations for a service type |
static String[] |
getServiceTypes()
Exploratory part. |
boolean |
isEncryptedString(String str)
check if given string is decorated |
static void |
main(String[] args)
|
String |
unDecorate(String str)
return string inside decorations |
| 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 |
| Constructor Detail |
|---|
public DefaultPlexusCipher()
throws PlexusCipherException
PlexusCipherException| Method Detail |
|---|
public String encrypt(String str,
String passPhrase)
throws PlexusCipherException
PlexusCipher
encrypt in interface PlexusCipherPlexusCipherException
public String encryptAndDecorate(String str,
String passPhrase)
throws PlexusCipherException
PlexusCipher
encryptAndDecorate in interface PlexusCipherPlexusCipherException
public String decrypt(String str,
String passPhrase)
throws PlexusCipherException
PlexusCipher
decrypt in interface PlexusCipherPlexusCipherException
public String decryptDecorated(String str,
String passPhrase)
throws PlexusCipherException
PlexusCipher
decryptDecorated in interface PlexusCipherPlexusCipherExceptionpublic boolean isEncryptedString(String str)
PlexusCipher
isEncryptedString in interface PlexusCipher
public String unDecorate(String str)
throws PlexusCipherException
PlexusCipher
unDecorate in interface PlexusCipherPlexusCipherExceptionpublic String decorate(String str)
PlexusCipher
decorate in interface PlexusCipherpublic static String[] getServiceTypes()
public static String[] getCryptoImpls(String serviceType)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||