public class TextEncryptor extends TextBasedCrypto
baseEncoding, textCharsetmutex| Constructor and Description |
|---|
TextEncryptor() |
TextEncryptor(Encryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
TextEncryptor |
copy() |
String |
decrypt(String message) |
void |
destroy() |
String |
encrypt(String message) |
protected void |
init() |
TextEncryptor |
setBaseEncoding(String baseEncoding) |
TextEncryptor |
setEncryptor(Encryptor encryptor) |
TextEncryptor |
setTextCharset(Charset charset) |
TextEncryptor |
setTextCharset(String textCharset) |
assertNotInitialized, initializepublic TextEncryptor()
public TextEncryptor(Encryptor encryptor)
protected void init()
throws Exception
init in class TextBasedCryptoExceptionpublic String encrypt(String message) throws CryptoException
CryptoExceptionpublic String decrypt(String message) throws CryptoException
CryptoExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionpublic TextEncryptor setEncryptor(Encryptor encryptor)
public TextEncryptor setTextCharset(Charset charset)
setTextCharset in class TextBasedCryptopublic TextEncryptor setTextCharset(String textCharset)
setTextCharset in class TextBasedCryptopublic TextEncryptor setBaseEncoding(String baseEncoding)
setBaseEncoding in class TextBasedCryptopublic TextEncryptor copy()
Copyright © 2017. All rights reserved.