public interface PlexusCipher
Modifier and Type | Field and Description |
---|---|
static char |
ENCRYPTED_STRING_DECORATION_START |
static char |
ENCRYPTED_STRING_DECORATION_STOP |
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
isEncryptedString(String str)
check if given string is decorated
|
String |
unDecorate(String str)
return string inside decorations
|
static final char ENCRYPTED_STRING_DECORATION_START
static final char ENCRYPTED_STRING_DECORATION_STOP
String encrypt(String str, String passPhrase) throws PlexusCipherException
str
- passPhrase
- PlexusCipherException
String encryptAndDecorate(String str, String passPhrase) throws PlexusCipherException
str
- passPhrase
- PlexusCipherException
String decrypt(String str, String passPhrase) throws PlexusCipherException
str
- passPhrase
- PlexusCipherException
String decryptDecorated(String str, String passPhrase) throws PlexusCipherException
str
- passPhrase
- PlexusCipherException
boolean isEncryptedString(String str)
str
- String unDecorate(String str) throws PlexusCipherException
str
- PlexusCipherException
Copyright © 2008-2014 Sonatype, Inc.. All Rights Reserved.