Class StringBase64CheckoutComApplePayCertificateAndKeyProvider
java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.session.StringBase64CheckoutComApplePayCertificateAndKeyProvider
- All Implemented Interfaces:
CheckoutComApplePayCertificateAndKeyProvider
public class StringBase64CheckoutComApplePayCertificateAndKeyProvider
extends Object
implements CheckoutComApplePayCertificateAndKeyProvider
The implementation for
CheckoutComApplePayCertificateAndKeyProvider that expects private
key and certificate to be base64 encoded string.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionStringBase64CheckoutComApplePayCertificateAndKeyProvider(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
-
StringBase64CheckoutComApplePayCertificateAndKeyProvider
public StringBase64CheckoutComApplePayCertificateAndKeyProvider(CheckoutComApplePayConfigurationProperties applePayConfigurationProperties)
-
-
Method Details
-
getCertificateInputStream
public InputStream getCertificateInputStream(@Nullable String applicationId, @Nullable String tenantId) Description copied from interface:CheckoutComApplePayCertificateAndKeyProviderGet the input stream to read the Apple Pay certificate.- Specified by:
getCertificateInputStreamin 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:CheckoutComApplePayCertificateAndKeyProviderGet the input stream to read the Apple Pay private key.- Specified by:
getPrivateKeyInputStreamin interfaceCheckoutComApplePayCertificateAndKeyProvider- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the input stream to read the Apple Pay private key
-
getCertAndKeyFormat
- Specified by:
getCertAndKeyFormatin interfaceCheckoutComApplePayCertificateAndKeyProvider- Returns:
- the format of the certificate and key contents that are returned in the
CheckoutComApplePayCertificateAndKeyProvider.getCertificateInputStream(String, String)andCheckoutComApplePayCertificateAndKeyProvider.getPrivateKeyInputStream(String, String)methods.
-
getApplePayConfigurationProperties
-