Package com.mdsol.mauth
Interface Authenticator
-
- All Known Implementing Classes:
RequestAuthenticator
public interface Authenticator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticate(com.mdsol.mauth.MAuthRequest mAuthRequest)Performs the validation of an incoming HTTP request.
-
-
-
Method Detail
-
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.
-
-