public class OAuth extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION_HEADER_NAME |
static String |
EMPTY_STRING |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAuthorizationHeader(URI uri,
String method,
String payload,
Charset charset,
String consumerKey,
PrivateKey signingKey)
Creates a Mastercard API compliant OAuth Authorization header
|
public static final String AUTHORIZATION_HEADER_NAME
public static final String EMPTY_STRING
public static String getAuthorizationHeader(URI uri, String method, String payload, Charset charset, String consumerKey, PrivateKey signingKey)
uri - Target URI for this requestmethod - HTTP method of the requestpayload - Payload (nullable)charset - Charset encoding of the requestconsumerKey - Consumer key set up in a Mastercard Developer Portal projectsigningKey - The private key that will be used for signing the request that corresponds to the consumerKeyCopyright © 2021. All rights reserved.