InitializeSupportpublic class TextEncryptor extends TextBasedCrypto
mutexbaseEncoder, textCharset| Constructor | Description |
|---|---|
TextEncryptor() |
|
TextEncryptor(Encryptor encryptor) |
| Modifier and Type | Method | 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(String textCharset) |
|
TextEncryptor |
setTextCharset(Charset charset) |
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.