public class SignatureGenerator
extends java.lang.Object
| Constructor and Description |
|---|
SignatureGenerator(MerchantConfig merchantConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRequestTarget(java.lang.String requestType) |
java.lang.String |
signatureGeneration() |
public SignatureGenerator(MerchantConfig merchantConfig) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, ConfigException
merchantConfig-contains - all information of merchant.java.security.InvalidKeyException - - if key is not valid.java.security.NoSuchAlgorithmException - - if algorithm is not available.ConfigExceptionpublic java.lang.String signatureGeneration()
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException - - if algorithm is not available.java.security.InvalidKeyException - - if key is not valid.public java.lang.String getRequestTarget(java.lang.String requestType)
requestType - - GET/PUT/POSTCopyright © 2021. All Rights Reserved.