public final class PaymentMethodTokenSender extends Object
This implementation supports only versions ECv1 and ECv2.
PaymentMethodTokenSender sender = new PaymentMethodTokenSender.Builder()
.senderId(senderId)
.senderSigningKey(senderPrivateKey)
.recipientId(recipientId)
.recipientPublicKey(recipientPublicKey)
.build();
String plaintext = "blah";
String ciphertext = sender.seal(plaintext);
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentMethodTokenSender.Builder
Builder for
PaymentMethodTokenSender. |
| Modifier and Type | Method and Description |
|---|---|
String |
seal(String message)
Seals the input message according to the Payment Method Token specification.
|
public String seal(String message) throws GeneralSecurityException
GeneralSecurityException