public interface Signer
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
byte[] requestPayload,
java.lang.String queryParameters)
Generates the mAuth headers from the provided HTTP request data for Mauth V2(and V1) protocol
NOTE: mAuth headers are time sensitive.
|
java.util.Map<java.lang.String,java.lang.String> |
generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
java.io.InputStream requestPayload,
java.lang.String queryParameters)
Generates the mAuth headers from the provided HTTP request data for Mauth V2 or V1 protocol
NOTE: mAuth headers are time sensitive.
|
java.util.Map<java.lang.String,java.lang.String> |
generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
java.lang.String requestPayload)
Deprecated.
This is used for Mauth V1 protocol only, replaced by
generateRequestHeaders(String, String, byte[], String) for Mauth V2 protocol |
@Deprecated
java.util.Map<java.lang.String,java.lang.String> generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
java.lang.String requestPayload)
throws com.mdsol.mauth.exceptions.MAuthSigningException
generateRequestHeaders(String, String, byte[], String) for Mauth V2 protocolhttpVerb - The HTTP verb of the request, e.g. GET, POST, etc.requestPath - The path of the request, not including protocol, host or query parameters.requestPayload - The payload of the requestcom.mdsol.mauth.exceptions.MAuthSigningException - when request cannot be signedjava.util.Map<java.lang.String,java.lang.String> generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
byte[] requestPayload,
java.lang.String queryParameters)
throws com.mdsol.mauth.exceptions.MAuthSigningException
httpVerb - The HTTP verb of the request, e.g. GET, POST, etc.requestPath - The path of the request, not including protocol, host or query parameters.requestPayload - The payload of the requestqueryParameters - The query parameters (URL-encoded)com.mdsol.mauth.exceptions.MAuthSigningException - when request cannot be signedjava.util.Map<java.lang.String,java.lang.String> generateRequestHeaders(java.lang.String httpVerb,
java.lang.String requestPath,
java.io.InputStream requestPayload,
java.lang.String queryParameters)
throws com.mdsol.mauth.exceptions.MAuthSigningException
httpVerb - The HTTP verb of the request, e.g. GET, POST, etc.requestPath - The path of the request, not including protocol, host or query parameters.requestPayload - The payload of the requestqueryParameters - The query parameters (URL-encoded)com.mdsol.mauth.exceptions.MAuthSigningException - when request cannot be signed