| 
 | ||||||||||
| 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
| 
 | 
| 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 | |
|  java.lang.String | decorate(java.lang.String str)decorated given string with { and } | 
|  java.lang.String | decrypt(java.lang.String str,
        java.lang.String passPhrase)decrypt given base64 encrypted string | 
|  java.lang.String | decryptDecorated(java.lang.String str,
                 java.lang.String passPhrase)decrypt given base64 encoded encrypted string. | 
|  java.lang.String | encrypt(java.lang.String str,
        java.lang.String passPhrase)encrypt given string with the given passPhrase and encode it into base64 | 
|  java.lang.String | encryptAndDecorate(java.lang.String str,
                   java.lang.String passPhrase)encrypt given string with the given passPhrase, encode it into base64 and return result, wrapped into { } decorations | 
| 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)check if given string is decorated | 
| static void | main(java.lang.String[] args) | 
|  java.lang.String | unDecorate(java.lang.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
| Method Detail | 
public java.lang.String encrypt(java.lang.String str,
                                java.lang.String passPhrase)
                         throws PlexusCipherException
PlexusCipher
encrypt in interface PlexusCipherstr - passPhrase - 
PlexusCipherException
public java.lang.String encryptAndDecorate(java.lang.String str,
                                           java.lang.String passPhrase)
                                    throws PlexusCipherException
PlexusCipher
encryptAndDecorate in interface PlexusCipherstr - passPhrase - 
PlexusCipherException
public java.lang.String decrypt(java.lang.String str,
                                java.lang.String passPhrase)
                         throws PlexusCipherException
PlexusCipher
decrypt in interface PlexusCipherstr - passPhrase - 
PlexusCipherException
public java.lang.String decryptDecorated(java.lang.String str,
                                         java.lang.String passPhrase)
                                  throws PlexusCipherException
PlexusCipher
decryptDecorated in interface PlexusCipherstr - passPhrase - 
PlexusCipherExceptionpublic boolean isEncryptedString(java.lang.String str)
PlexusCipher
isEncryptedString in interface PlexusCipherstr - 
public java.lang.String unDecorate(java.lang.String str)
                            throws PlexusCipherException
PlexusCipher
unDecorate in interface PlexusCipherstr - 
PlexusCipherExceptionpublic java.lang.String decorate(java.lang.String str)
PlexusCipher
decorate in interface PlexusCipherstr - 
public static java.lang.String[] getServiceTypes()
public static java.lang.String[] getCryptoImpls(java.lang.String serviceType)
public static void main(java.lang.String[] args)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||