T - the concrete type of this Encryptor object.public interface ValueEncryptorInterface<T extends ValueEncryptorInterface<T>> extends EncryptorInterface<T>
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String text)
Returns the decoded and decrypted text for the given text representation.
|
String |
decrypt(String text,
Key key)
Returns the decoded and decrypted text for the given text representation, using the given
Key. |
byte[] |
decryptAndDecode(String text)
Returns the decoded and decrypted bytes for the given text representation.
|
byte[] |
decryptAndDecode(String text,
Key key)
Returns the decoded and decrypted bytes for the given text representation, using the given
Key. |
Boolean |
decryptBoolean(String text)
Returns the decoded and decrypted boolean for the given text representation.
|
Boolean |
decryptBoolean(String text,
Key key)
Returns the decoded and decrypted boolean for the given text representation, using the given
Key. |
Character |
decryptCharacter(String text)
Returns the decoded and decrypted character for the given text representation.
|
Character |
decryptCharacter(String text,
Key key)
Returns the decoded and decrypted character for the given text representation, using the given
Key. |
Double |
decryptDouble(String text)
Returns the decoded and decrypted double for the given text representation.
|
Double |
decryptDouble(String text,
Key key)
Returns the decoded and decrypted double for the given text representation, using the given
Key. |
Float |
decryptFloat(String text)
Returns the decoded and decrypted float for the given text representation.
|
Float |
decryptFloat(String text,
Key key)
Returns the decoded and decrypted float for the given text representation, using the given
Key. |
Integer |
decryptInteger(String text)
Returns the decoded and decrypted integer for the given text representation.
|
Integer |
decryptInteger(String text,
Key key)
Returns the decoded and decrypted integer for the given text representation, using the given
Key. |
Long |
decryptLong(String text)
Returns the decoded and decrypted long for the given text representation.
|
Long |
decryptLong(String text,
Key key)
Returns the decoded and decrypted long for the given text representation, using the given
Key. |
Object |
decryptObject(String text)
Returns the decoded and decrypted object for the given text representation.
|
Object |
decryptObject(String text,
Key key)
Returns the decoded and decrypted object for the given text representation, using the given
Key. |
Short |
decryptShort(String text)
Returns the decoded and decrypted short for the given text representation.
|
Short |
decryptShort(String text,
Key key)
Returns the decoded and decrypted short for the given text representation, using the given
Key. |
String |
encrypt(String text)
Returns an encrypted and encoded text representation of the given text.
|
String |
encrypt(String text,
Key key)
Returns an encrypted and encoded text representation of the given text, using the given
Key. |
String |
encryptAndEncode(byte[] bytes)
Returns an encrypted and encoded text representation of the given bytes.
|
String |
encryptAndEncode(byte[] bytes,
Key key)
Returns an encrypted and encoded text representation of the given bytes, using the given
Key. |
String |
encryptBoolean(Boolean value)
Returns an encrypted and encoded text representation of the given boolean.
|
String |
encryptBoolean(Boolean value,
Key key)
Returns an encrypted and encoded text representation of the given boolean, using the given
Key. |
String |
encryptCharacter(Character number)
Returns an encrypted and encoded text representation of the given character.
|
String |
encryptCharacter(Character number,
Key key)
Returns an encrypted and encoded text representation of the given character, using the given
Key. |
String |
encryptDouble(Double number)
Returns an encrypted and encoded text representation of the given double.
|
String |
encryptDouble(Double number,
Key key)
Returns an encrypted and encoded text representation of the given double, using the given
Key. |
String |
encryptFloat(Float number)
Returns an encrypted and encoded text representation of the given float.
|
String |
encryptFloat(Float number,
Key key)
Returns an encrypted and encoded text representation of the given float, using the given
Key. |
String |
encryptInteger(Integer number)
Returns an encrypted and encoded text representation of the given integer.
|
String |
encryptInteger(Integer number,
Key key)
Returns an encrypted and encoded text representation of the given integer, using the given
Key. |
String |
encryptLong(Long number)
Returns an encrypted and encoded text representation of the given long.
|
String |
encryptLong(Long number,
Key key)
Returns an encrypted and encoded text representation of the given long, using the given
Key. |
String |
encryptObject(Object object)
Returns an encrypted and encoded text representation of the given object.
|
String |
encryptObject(Object object,
Key key)
Returns an encrypted and encoded text representation of the given object, using the given
Key. |
String |
encryptShort(Short number)
Returns an encrypted and encoded text representation of the given short.
|
String |
encryptShort(Short number,
Key key)
Returns an encrypted and encoded text representation of the given short, using the given
Key. |
decrypt, decrypt, encrypt, encrypt, getAlgorithmParameters, getCharset, initialize, isInitialized, setAlgorithmParametersString encrypt(String text) throws GeneralSecurityException
text - the text to be encryptedGeneralSecurityException - GeneralSecurityExceptionString decrypt(String text) throws GeneralSecurityException
encrypt method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptAndEncode(byte[] bytes) throws GeneralSecurityException
bytes - the bytes to be encryptedGeneralSecurityException - GeneralSecurityExceptionbyte[] decryptAndDecode(String text) throws GeneralSecurityException
encryptAndEncode method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptBoolean(Boolean value) throws GeneralSecurityException
value - the short to be encryptedGeneralSecurityException - GeneralSecurityExceptionBoolean decryptBoolean(String text) throws GeneralSecurityException
encryptBoolean method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptCharacter(Character number) throws GeneralSecurityException
number - the character to be encryptedGeneralSecurityException - GeneralSecurityExceptionCharacter decryptCharacter(String text) throws GeneralSecurityException
encryptCharacter method.text - the character to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptDouble(Double number) throws GeneralSecurityException
number - the double to be encryptedGeneralSecurityException - GeneralSecurityExceptionDouble decryptDouble(String text) throws GeneralSecurityException
encryptDouble method.text - the double to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptFloat(Float number) throws GeneralSecurityException
number - the float to be encryptedGeneralSecurityException - GeneralSecurityExceptionFloat decryptFloat(String text) throws GeneralSecurityException
encryptFloat method.text - the float to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptInteger(Integer number) throws GeneralSecurityException
number - the integer to be encryptedGeneralSecurityException - GeneralSecurityExceptionInteger decryptInteger(String text) throws GeneralSecurityException
encryptInteger method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptLong(Long number) throws GeneralSecurityException
number - the long to be encryptedGeneralSecurityException - GeneralSecurityExceptionLong decryptLong(String text) throws GeneralSecurityException
encryptLong method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encryptObject(Object object) throws GeneralSecurityException, IOException
Serializable.object - the object to be encryptedGeneralSecurityException - GeneralSecurityExceptionIOException - IOExceptionObject decryptObject(String text) throws GeneralSecurityException, IOException, ClassNotFoundException
encryptObject method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionIOException - IOExceptionClassNotFoundException - ClassNotFoundExceptionString encryptShort(Short number) throws GeneralSecurityException
number - the short to be encryptedGeneralSecurityException - GeneralSecurityExceptionShort decryptShort(String text) throws GeneralSecurityException
encryptShort method.text - the text to be decryptedGeneralSecurityException - GeneralSecurityExceptionString encrypt(String text, Key key) throws GeneralSecurityException
Key.text - the text to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionString decrypt(String text, Key key) throws GeneralSecurityException
Key. This
method will only work with data encrypted using the encrypt method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptAndEncode(byte[] bytes, Key key) throws GeneralSecurityException
Key.bytes - the bytes to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionbyte[] decryptAndDecode(String text, Key key) throws GeneralSecurityException
Key. This
method will only work with data encrypted using the encryptAndEncode method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptBoolean(Boolean value, Key key) throws GeneralSecurityException
Key. This
is generally the most efficient means of encrypting a boolean, as the bit representation is used for encryption
rather than the string representation.value - the short to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionBoolean decryptBoolean(String text, Key key) throws GeneralSecurityException
Key.
This method will only work with data encrypted using the encryptBoolean method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptCharacter(Character number, Key key) throws GeneralSecurityException
Key.number - the character to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionCharacter decryptCharacter(String text, Key key) throws GeneralSecurityException
Key.
This method will only work with data encrypted using the encryptCharacter method.text - the character to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptDouble(Double number, Key key) throws GeneralSecurityException
Key. This
is generally the most efficient means of encrypting a double, as the byte representation is used for encryption
rather than the string representation.number - the double to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionDouble decryptDouble(String text, Key key) throws GeneralSecurityException
Key.
This method will only work with data encrypted using the encryptDouble method.text - the double to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptFloat(Float number, Key key) throws GeneralSecurityException
Key. This
is generally the most efficient means of encrypting a float, as the byte representation is used for encryption
rather than the string representation.number - the float to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionFloat decryptFloat(String text, Key key) throws GeneralSecurityException
Key. This
method will only work with data encrypted using the encryptFloat method.text - the float to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptInteger(Integer number, Key key) throws GeneralSecurityException
Key. This
is generally the most efficient means of encrypting an integer, as the byte representation is used for encryption
rather than the string representation.number - the integer to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionInteger decryptInteger(String text, Key key) throws GeneralSecurityException
Key.
This method will only work with data encrypted using the encryptInteger method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptLong(Long number, Key key) throws GeneralSecurityException
Key. This is
generally the most efficient means of encrypting a long, as the byte representation is used for encryption rather
than the string representation.number - the long to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionLong decryptLong(String text, Key key) throws GeneralSecurityException
Key. This
method will only work with data encrypted using the encryptLong method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionString encryptObject(Object object, Key key) throws GeneralSecurityException, IOException
Key. The
object should implement Serializable.object - the object to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionIOException - IOExceptionObject decryptObject(String text, Key key) throws GeneralSecurityException, IOException, ClassNotFoundException
Key.
This method will only work with data encrypted using the encryptObject method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityExceptionIOException - IOExceptionClassNotFoundException - ClassNotFoundExceptionString encryptShort(Short number, Key key) throws GeneralSecurityException
Key. This
is generally the most efficient means of encrypting a short, as the byte representation is used for encryption
rather than the string representation.number - the short to be encryptedkey - the encryption keyGeneralSecurityException - GeneralSecurityExceptionShort decryptShort(String text, Key key) throws GeneralSecurityException
Key. This
method will only work with data encrypted using the encryptShort method.text - the text to be decryptedkey - the decryption keyGeneralSecurityException - GeneralSecurityException