Package com.adyen.checkout.cse
Object CardEncrypter
-
- All Implemented Interfaces:
public class CardEncrypterAllows the encryption of card data to be sent to Adyen's APIs. Use this class with the custom card integration.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CardEncrypterINSTANCE
-
Method Summary
Modifier and Type Method Description final EncryptedCardencryptFields(UnencryptedCard unencryptedCard, String publicKey)Encrypts the available card data from UnencryptedCard into individual encrypted blocks. final Stringencrypt(UnencryptedCard unencryptedCard, String publicKey)Encrypts all the card data present in UnencryptedCard into a single block of content. final StringencryptBin(String bin, String publicKey)Encrypts the BIN of the card to be used in the Bin Lookup endpoint. -
-
Method Detail
-
encryptFields
final EncryptedCard encryptFields(UnencryptedCard unencryptedCard, String publicKey)
Encrypts the available card data from UnencryptedCard into individual encrypted blocks.
- Parameters:
unencryptedCard- The card data to be encrypted.publicKey- The key to be used for encryption.- Returns:
An EncryptedCard object with each encrypted field.
-
encrypt
final String encrypt(UnencryptedCard unencryptedCard, String publicKey)
Encrypts all the card data present in UnencryptedCard into a single block of content.
- Parameters:
unencryptedCard- The card data to be encrypted.publicKey- The key to be used for encryption.- Returns:
The encrypted card data String.
-
encryptBin
final String encryptBin(String bin, String publicKey)
Encrypts the BIN of the card to be used in the Bin Lookup endpoint.
- Parameters:
bin- The BIN value to be encrypted.publicKey- The key to be used for encryption.- Returns:
The encrypted bin String.
-
-
-
-