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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithm
(String applicationId, String tenantId) getRequestShaPhrase
(String applicationId, String tenantId) getResponseShaPhrase
(String applicationId, String tenantId) void
setAlgorithm
(String algorithm) The algorithm is used to generate the hash of the signature.void
setRequestShaPhrase
(String requestShaPhrase) A secret phrase used to secure the signature for the request.void
setResponseShaPhrase
(String responseShaPhrase) A secret phrase used to secure the signature for the response.Methods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
APSSignatureConfigurationProperties
public APSSignatureConfigurationProperties()
-
-
Method Details
-
getRequestShaPhrase
-
getResponseShaPhrase
-
getAlgorithm
-
setRequestShaPhrase
A secret phrase used to secure the signature for the request. -
setResponseShaPhrase
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
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".
-