public interface GiftListEncryptionHelper
GiftCenterComponentHelper
The sample snippet to include in the wc-component.xml is as shown below: <_config:extendedconfiguration> <_config:configgrouping name="GiftListPasswordEncryptionOptions"> <_config:property name= "EncryptionHelperImpl" value = "com.ibm.commerce.giftcenter.ext.ExtGiftListEncryptionHelperImpl" /> </_config:configgrouping> </_config:extendedconfiguration>
GiftCenterComponentHelper#getGiftListEncryptionHelper()}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copy right field.
|
static java.lang.String |
DEFAULT_CHAR_SET
The default character set used for encoding/decoding a string
|
static java.lang.String |
NAME
The name of this class
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateSalt()
This method generates the salt to be used for creating passwords.
|
boolean |
isMatchingCipherText(byte[] originalPassword,
java.lang.String salt,
java.lang.String password,
boolean matchByOneWayHash)
Determines if a given plain text matches encrypted text.
|
byte[] |
performOneWayHashEncryption(java.lang.String password,
java.lang.String salt)
This method performs one way hash on a given password using the salt provided.
|
byte[] |
performReversibleEncryption(java.lang.String password,
java.lang.String salt)
Performs reversible encryption on the password.
|
java.lang.String |
reverseEncryptedPassword(byte[] password,
java.lang.String salt)
Decrypt a given password.
|
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String DEFAULT_CHAR_SET
java.lang.String generateSalt() throws ECException
ECException
byte[] performOneWayHashEncryption(java.lang.String password, java.lang.String salt) throws ECException
password
- salt
- ECException
boolean isMatchingCipherText(byte[] originalPassword, java.lang.String salt, java.lang.String password, boolean matchByOneWayHash) throws ECException
originalPassword
- the encrypted textsalt
- the salt used for encryption or decryption of the cipher textpassword
- the plaintext password used for comparisonmatchByOneWayHash
- boolean to indicate if one way hash encryption is to be used.ECException
byte[] performReversibleEncryption(java.lang.String password, java.lang.String salt) throws ECException
password
- the plain text passwordsalt
- The salt to be used for the encryptionECException
java.lang.String reverseEncryptedPassword(byte[] password, java.lang.String salt)
password
- the password to be decryptedsalt
- The salt to be used while decrypting.