Interface Authenticator

All Known Implementing Classes:
RequestAuthenticator

public interface Authenticator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authenticate(com.mdsol.mauth.MAuthRequest mAuthRequest)
    Performs the validation of an incoming HTTP request.
  • Method Details

    • authenticate

      boolean authenticate(com.mdsol.mauth.MAuthRequest mAuthRequest)
      Performs the validation of an incoming HTTP request. The validation process consists of recreating the mAuth hashed signature from the request data and comparing it to the decrypted hash signature from the mAuth header. mauth_client will authenticate with the highest protocol version present and if authentication fails will fallback to lower protocol versions (if provided)
      Parameters:
      mAuthRequest - Data from the incoming HTTP request necessary to perform the validation.
      Returns:
      True or false indicating if the request is valid or not with respect to mAuth.