Class APSSignatureConfigurationProperties

java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<APSSignatureConfigurationProperties>
com.broadleafcommerce.payment.service.signature.APSSignatureConfigurationProperties

@ConfigurationProperties("broadleaf.amazonpaymentservices.signature") public class APSSignatureConfigurationProperties extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<APSSignatureConfigurationProperties>
This class have the properties defined in application-{profile}.properties/.yml file. It reads the required properties that starts with key broadleaf.amazonpaymentservices.signature
Author:
Muhammad Salman Farooq
  • Constructor Details

    • APSSignatureConfigurationProperties

      public APSSignatureConfigurationProperties()
  • Method Details

    • getRequestShaPhrase

      public String getRequestShaPhrase(@Nullable String applicationId, @Nullable String tenantId)
    • getResponseShaPhrase

      public String getResponseShaPhrase(@Nullable String applicationId, @Nullable String tenantId)
    • getAlgorithm

      public String getAlgorithm(@Nullable String applicationId, @Nullable String tenantId)
    • setRequestShaPhrase

      public void setRequestShaPhrase(String requestShaPhrase)
      A secret phrase used to secure the signature for the request.
    • setResponseShaPhrase

      public void setResponseShaPhrase(String responseShaPhrase)
      A secret phrase used to secure the signature for the response. By verifying that the SHA phrase matches you can ensure that the response you receive is a genuine response sent from Amazon Payment Services. It reduces the risk that a cybercriminal intercepts or manipulates responses to interfere with payments or your ecommerce operations.
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      The algorithm is used to generate the hash of the signature. It can have one of the next values: "HmacSHA256", "HmacSHA512", "SHA-256" or "SHA-512".