Package io.moov.sdk.models.components
Class LinkApplePaymentData
- java.lang.Object
-
- io.moov.sdk.models.components.LinkApplePaymentData
-
public class LinkApplePaymentData extends java.lang.ObjectLinkApplePaymentDataContains the encrypted payment data.
Refer to [Apple's documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttoken/1916115-paymentdata) for more information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinkApplePaymentData.Builder
-
Constructor Summary
Constructors Constructor Description LinkApplePaymentData(java.lang.String version, java.lang.String data, java.lang.String signature, ApplePayHeader header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkApplePaymentData.Builderbuilder()java.lang.Stringdata()The encrypted, base64-encoded payment data.booleanequals(java.lang.Object o)inthashCode()ApplePayHeaderheader()Information needed to decrypt Apple Pay payment data.java.lang.Stringsignature()A base64 encoded signature of the payment and header data.java.lang.StringtoString()java.lang.Stringversion()Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").LinkApplePaymentDatawithData(java.lang.String data)The encrypted, base64-encoded payment data.LinkApplePaymentDatawithHeader(ApplePayHeader header)Information needed to decrypt Apple Pay payment data.LinkApplePaymentDatawithSignature(java.lang.String signature)A base64 encoded signature of the payment and header data.LinkApplePaymentDatawithVersion(java.lang.String version)Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").
-
-
-
Constructor Detail
-
LinkApplePaymentData
public LinkApplePaymentData(java.lang.String version, java.lang.String data, java.lang.String signature, ApplePayHeader header)
-
-
Method Detail
-
version
public java.lang.String version()
Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").
-
data
public java.lang.String data()
The encrypted, base64-encoded payment data.
-
signature
public java.lang.String signature()
A base64 encoded signature of the payment and header data.
-
header
public ApplePayHeader header()
Information needed to decrypt Apple Pay payment data.Refer to [Apple's documentation](https://developer.apple.com/documentation/passkit/payment-token-format-reference#Header-keys-and-values) for more information.
-
builder
public static final LinkApplePaymentData.Builder builder()
-
withVersion
public LinkApplePaymentData withVersion(java.lang.String version)
Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").
-
withData
public LinkApplePaymentData withData(java.lang.String data)
The encrypted, base64-encoded payment data.
-
withSignature
public LinkApplePaymentData withSignature(java.lang.String signature)
A base64 encoded signature of the payment and header data.
-
withHeader
public LinkApplePaymentData withHeader(ApplePayHeader header)
Information needed to decrypt Apple Pay payment data.Refer to [Apple's documentation](https://developer.apple.com/documentation/passkit/payment-token-format-reference#Header-keys-and-values) for more information.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-