public interface EncryptionProvider
extends com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(java.lang.String text)
This method returns a string that represents the decrypted value of the text specified.
|
java.lang.String |
decrypt(java.lang.String text,
java.lang.String encoding)
This method returns a string that represents the decrypted value of the text specified.
|
java.lang.String |
encrypt(java.lang.String text)
This method returns a string that represents the encrypted value of the text specified.
|
java.lang.String |
encrypt(java.lang.String text,
java.lang.String encoding)
This method returns a string that represents the encrypted value of the text specified.
|
java.lang.String |
encrypt(java.lang.String text,
java.lang.String encoding,
java.lang.String keyVersion)
This method returns a string that represents the encrypted value of the text specified, using
the specified version of the encryption key.
|
java.lang.String |
getVersionForEncryptedText(java.lang.String encryptedValue)
Gets the version ID associated with a particular encrypted text.
|
static final java.lang.String COPYRIGHT
java.lang.String decrypt(java.lang.String text)
decrypt
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
text
- The text to be decryptedjava.lang.String decrypt(java.lang.String text, java.lang.String encoding)
decrypt
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
text
- The text to be decryptedencoding
- The encoding that the plain text is in. If it is null, the default is UTF-8.java.lang.String encrypt(java.lang.String text)
encrypt
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
text
- The text to be encryptedjava.lang.String encrypt(java.lang.String text, java.lang.String encoding)
encrypt
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
text
- The text to be encryptedencoding
- The encoding that the plain text is in. If it is null, the default is UTF-8.java.lang.String encrypt(java.lang.String text, java.lang.String encoding, java.lang.String keyVersion)
encrypt
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
text
- The text to be encryptedencoding
- The encoding that the plain text is in. If it is null, the default is UTF-8.keyVersion
- The version of the encryption key to use for encryption.java.lang.String getVersionForEncryptedText(java.lang.String encryptedValue)
getVersionForEncryptedText
in interface com.ibm.commerce.foundation.internal.common.util.encryption.EncryptionProvider
encryptedValue
- The encrypted value.