Class MAuthRequest

java.lang.Object
com.mdsol.mauth.MAuthRequest

public class MAuthRequest extends Object
Wrapper for an incoming MAuth request data necessary to authenticate it.
  • Field Details

  • Constructor Details

    • MAuthRequest

      @Deprecated public MAuthRequest(String authenticationHeaderValue, byte[] messagePayload, String httpMethod, String timeHeaderValue, String resourcePath)
      Create a Mauth request
      Parameters:
      authenticationHeaderValue - the string value of Mauth authentication Header
      messagePayload - byte[] of request payload
      httpMethod - the string value of Http_Verb
      timeHeaderValue - the string value of Mauth time Header
      resourcePath - 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 Header
      messagePayload - byte[] of request payload
      httpMethod - the string value of Http_Verb
      timeHeaderValue - the string value of Mauth time Header
      resourcePath - 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 Header
      bodyInputStream - InputStream of request payload
      httpMethod - the string value of Http_Verb
      timeHeaderValue - the string value of Mauth time Header
      resourcePath - resource_url_path (no host, port or query string; first "/" is included)
      queryParameters - the string value of request parameters
  • Method Details

    • getAppUUID

      public UUID getAppUUID()
    • getRequestSignature

      public String getRequestSignature()
    • getMessagePayload

      public byte[] getMessagePayload()
    • getHttpMethod

      public String getHttpMethod()
    • getRequestTime

      public long getRequestTime()
    • getResourcePath

      public String getResourcePath()
    • getQueryParameters

      public String getQueryParameters()
    • getXmwsSignature

      public String getXmwsSignature()
    • setXmwsSignature

      public void setXmwsSignature(String xmwsSignature)
    • getXmwsTime

      public String getXmwsTime()
    • setXmwsTime

      public void setXmwsTime(String xmwsTime)
    • getMauthVersion

      public MAuthVersion getMauthVersion()
    • getBodyInputStream

      public InputStream getBodyInputStream()