com.elasticpath.commons.util.security
Interface CreditCardEncrypter

All Superinterfaces:
StringEncrypter
All Known Implementing Classes:
CreditCardEncrypterImpl

public interface CreditCardEncrypter
extends StringEncrypter

Interface for encrypting and decrypting strings.


Field Summary
 
Fields inherited from interface com.elasticpath.commons.util.security.StringEncrypter
ENCRYPTION_KEY, ERROR_ENCRYPTION_KEY_IS_NULL, ERROR_ENCRYPTION_KEY_TOO_SHORT, MINIMUM_KEY_LENGTH
 
Method Summary
 java.lang.String decryptAndMask(java.lang.String encryptedCreditCardNumber)
          Decrypts and masks a credit card number.
 
Methods inherited from interface com.elasticpath.commons.util.security.StringEncrypter
decrypt, encrypt
 

Method Detail

decryptAndMask

java.lang.String decryptAndMask(java.lang.String encryptedCreditCardNumber)
Decrypts and masks a credit card number.

Parameters:
encryptedCreditCardNumber - - the number to decrypt and mask
Returns:
the decrypted and masked credit card number.