Class ConfigAuthProvider
java.lang.Object
net.anotheria.portalkit.adminapi.api.auth.provider.ConfigAuthProvider
- All Implemented Interfaces:
AuthProvider
Auth provider that uses JSON config to perform authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String login, String password) Performs user authentication by login in password.Returns type of auth provider
-
Constructor Details
-
ConfigAuthProvider
protected ConfigAuthProvider(boolean unitTests) -
ConfigAuthProvider
public ConfigAuthProvider()
-
-
Method Details
-
authenticate
Description copied from interface:AuthProviderPerforms user authentication by login in password. If credentials are invalid, throws an exception. If credentials are valid, then nothing.- Specified by:
authenticatein interfaceAuthProvider- Parameters:
login- loginpassword- password- Throws:
AdminAuthenticationProviderException- in case of invalid credentials.
-
getProviderType
Description copied from interface:AuthProviderReturns type of auth provider- Specified by:
getProviderTypein interfaceAuthProvider- Returns:
AuthProviderType
-