public class TokenGeneratorFactory extends Object
| Constructor and Description |
|---|
TokenGeneratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TokenGenerator |
getAuthToken(MerchantConfig merchantConfig,
String requestBody,
String reqVerb,
String reqTarget,
String date,
boolean isResponseMLEForApi)
Creates and returns an authentication token generator based on merchant configuration.
|
public static TokenGenerator getAuthToken(MerchantConfig merchantConfig, String requestBody, String reqVerb, String reqTarget, String date, boolean isResponseMLEForApi) throws ConfigException
merchantConfig - the merchant configuration containing authentication detailsrequestBody - the request payload bodyreqVerb - the HTTP request method (GET, POST, PUT, etc.)reqTarget - the request target URL pathdate - the date string for the requestConfigException - if some value is missing or wrong for merchantCopyright © 2026. All rights reserved.