Package com.mdsol.mauth
Class MAuthRequest
java.lang.Object
com.mdsol.mauth.MAuthRequest
Wrapper for an incoming MAuth request data necessary to authenticate it.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath) Deprecated.MAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters) Create a Mauth requestMAuthRequest(String authenticationHeaderValue, InputStream bodyInputStream, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters) Create a Mauth request -
Method Summary
Modifier and TypeMethodDescriptionbyte[]longvoidsetXmwsSignature(String xmwsSignature) voidsetXmwsTime(String xmwsTime)
-
Field Details
-
X_MWS_TIME_HEADER_NAME
- See Also:
-
X_MWS_AUTHENTICATION_HEADER_NAME
- See Also:
-
MCC_TIME_HEADER_NAME
- See Also:
-
MCC_AUTHENTICATION_HEADER_NAME
- See Also:
-
-
Constructor Details
-
MAuthRequest
@Deprecated public MAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath) Deprecated.This is used for Mauth V1 protocol, replaced byMAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters)for Mauth V2 protocolCreate a Mauth request- Parameters:
authenticationHeaderValue- the string value of Mauth authentication HeadermessagePayload- byte[] of request payloadhttpMethod- the string value of Http_VerbtimeHeaderValue- the string value of Mauth time HeaderresourcePath- resource_url_path (no host, port or query string; first "/" is included)
-
MAuthRequest
public MAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters) Create a Mauth request- Parameters:
authenticationHeaderValue- the string value of Mauth authentication HeadermessagePayload- byte[] of request payloadhttpMethod- the string value of Http_VerbtimeHeaderValue- the string value of Mauth time HeaderresourcePath- resource_url_path (no host, port or query string; first "/" is included)queryParameters- the string value of request parameters
-
MAuthRequest
public MAuthRequest(String authenticationHeaderValue, InputStream bodyInputStream, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters) Create a Mauth request- Parameters:
authenticationHeaderValue- the string value of Mauth authentication HeaderbodyInputStream- InputStream of request payloadhttpMethod- the string value of Http_VerbtimeHeaderValue- the string value of Mauth time HeaderresourcePath- resource_url_path (no host, port or query string; first "/" is included)queryParameters- the string value of request parameters
-
-
Method Details
-
getAppUUID
-
getRequestSignature
-
getMessagePayload
public byte[] getMessagePayload() -
getHttpMethod
-
getRequestTime
public long getRequestTime() -
getResourcePath
-
getQueryParameters
-
getXmwsSignature
-
setXmwsSignature
-
getXmwsTime
-
setXmwsTime
-
getMauthVersion
-
getBodyInputStream
-
MAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath, String queryParameters)for Mauth V2 protocol