public interface OpenNLPEncryption
| Modifier and Type | Method and Description |
|---|---|
void |
clearKey()
Clears the encryption key.
|
String |
decrypt(String text)
Decrypt the input text.
|
String |
decrypt(String text,
String encryptionKey) |
String |
encrypt(String text)
Encrypt the input text.
|
String |
getKey() |
void |
setKey(String encryptionKey)
Sets the encryption key.
|
String encrypt(String text) throws Exception
text - The text to encrypt.Exception - Thrown if the text cannot be encrypted.String decrypt(String text) throws Exception
text - The text to decrypt.Exception - Thrown if the text cannot be decrypted.void setKey(String encryptionKey)
encryptionKey - The encryption key.String getKey()
void clearKey()
Copyright © 2018. All rights reserved.