public static class PaymentMethodTokenSender.Builder extends Object
PaymentMethodTokenSender.| Constructor and Description |
|---|
Builder() |
@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder protocolVersion(String val)
@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderId(String val)
@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder recipientId(String val)
@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderSigningKey(String val) throws GeneralSecurityException
It must be base64 encoded PKCS8 private key.
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderSigningKey(ECPrivateKey val) throws GeneralSecurityException
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderIntermediateSigningKey(String val) throws GeneralSecurityException
It must be base64 encoded PKCS8 private key.
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderIntermediateSigningKey(ECPrivateKey val) throws GeneralSecurityException
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder senderIntermediateCert(String val) throws GeneralSecurityException
This can be generated by SenderIntermediateCertFactory.
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder recipientPublicKey(String val) throws GeneralSecurityException
The public key is a base64 (no wrapping, padded) version of the key encoded in ASN.1 type SubjectPublicKeyInfo defined in the X.509 standard.
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder recipientPublicKey(ECPublicKey val) throws GeneralSecurityException
GeneralSecurityException@CanIgnoreReturnValue public PaymentMethodTokenSender.Builder rawUncompressedRecipientPublicKey(String val) throws GeneralSecurityException
The public key must be formatted as base64 encoded uncompressed point format. This format is described in more detail in "Public Key Cryptography For The Financial Services Industry: The Elliptic Curve Digital Signature Algorithm (ECDSA)", ANSI X9.62, 1998
GeneralSecurityExceptionpublic PaymentMethodTokenSender build() throws GeneralSecurityException
GeneralSecurityException