Package com.adyen.checkout.cse
Object GenericEncrypter
-
- All Implemented Interfaces:
public class GenericEncrypterAllows the encryption of any type of data to be sent to Adyen's APIs. Use this class with custom component integrations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static GenericEncrypterINSTANCE
-
Method Summary
Modifier and Type Method Description final StringencryptField(String fieldKeyToEncrypt, Object fieldValueToEncrypt, String publicKey)Encrypts a single field into a block of content. final StringencryptFields(String publicKey, Pair<String, Object> fieldsToEncrypt)Encrypts multiple fields into a single block of content. -
-
Method Detail
-
encryptField
final String encryptField(String fieldKeyToEncrypt, Object fieldValueToEncrypt, String publicKey)
Encrypts a single field into a block of content.
- Parameters:
fieldKeyToEncrypt- The key of the field to be encrypted.fieldValueToEncrypt- The value of the field to be encrypted.publicKey- The key to be used for encryption.- Returns:
The encrypted string.
-
-
-
-