public class TextEncryptor extends TextBasedCrypto
baseEncoder, 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 |
setBaseEncoder(BaseEncoder baseEncoder) |
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 InitializeObjectExceptionpublic 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 setBaseEncoder(BaseEncoder baseEncoder)
setBaseEncoder in class TextBasedCryptopublic TextEncryptor copy()
Copyright © 2018. All rights reserved.