Class DefaultCheckoutComApplePayCertificateAndKeyProvider
java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.sesseion.DefaultCheckoutComApplePayCertificateAndKeyProvider
- All Implemented Interfaces:
CheckoutComApplePayCertificateAndKeyProvider
public class DefaultCheckoutComApplePayCertificateAndKeyProvider
extends Object
implements CheckoutComApplePayCertificateAndKeyProvider
The default implementation for
CheckoutComApplePayCertificateAndKeyProvider
. This uses
ClassPathResource
to get the certificate and private key from the class path resources.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorDescriptionDefaultCheckoutComApplePayCertificateAndKeyProvider
(CheckoutComApplePayConfigurationProperties applePayConfigurationProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetCertificateInputStream
(String applicationId, String tenantId) Get the input stream to read the Apple Pay certificate.getPrivateKeyInputStream
(String applicationId, String tenantId) Get the input stream to read the Apple Pay private key.
-
Constructor Details
-
DefaultCheckoutComApplePayCertificateAndKeyProvider
public DefaultCheckoutComApplePayCertificateAndKeyProvider(CheckoutComApplePayConfigurationProperties applePayConfigurationProperties)
-
-
Method Details
-
getCertificateInputStream
public InputStream getCertificateInputStream(@Nullable String applicationId, @Nullable String tenantId) Description copied from interface:CheckoutComApplePayCertificateAndKeyProvider
Get the input stream to read the Apple Pay certificate.- Specified by:
getCertificateInputStream
in interfaceCheckoutComApplePayCertificateAndKeyProvider
- Parameters:
applicationId
- the application idtenantId
- the tenant id- Returns:
- the input stream to read the Apple Pay certificate
-
getPrivateKeyInputStream
public InputStream getPrivateKeyInputStream(@Nullable String applicationId, @Nullable String tenantId) Description copied from interface:CheckoutComApplePayCertificateAndKeyProvider
Get the input stream to read the Apple Pay private key.- Specified by:
getPrivateKeyInputStream
in interfaceCheckoutComApplePayCertificateAndKeyProvider
- Parameters:
applicationId
- the application idtenantId
- the tenant id- Returns:
- the input stream to read the Apple Pay private key
-
getApplePayConfigurationProperties
-