Class ApiKeyAuthenticator
java.lang.Object
com.logicaldoc.core.security.authentication.AbstractAuthenticator
com.logicaldoc.core.security.authentication.DefaultAuthenticator
com.logicaldoc.core.security.authentication.ApiKeyAuthenticator
- All Implemented Interfaces:
- Authenticator
This authenticator uses the API Key
- Since:
- 8.9.4
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionauthenticate(String username, String password) Authenticates the user using the given credentials, if successful, the corresponding user is returned.authenticate(String username, String password, String apikey, Client client) Authenticates the user using the given credentials, if successful, the corresponding user is returned.Methods inherited from class com.logicaldoc.core.security.authentication.DefaultAuthenticatorpickUser, validateUserMethods inherited from class com.logicaldoc.core.security.authentication.AbstractAuthenticatorauthenticate, canAuthenticateUser, isEnabled
- 
Constructor Details- 
ApiKeyAuthenticatorpublic ApiKeyAuthenticator()
 
- 
- 
Method Details- 
authenticateDescription copied from interface:AuthenticatorAuthenticates the user using the given credentials, if successful, the corresponding user is returned.- Specified by:
- authenticatein interface- Authenticator
- Overrides:
- authenticatein class- DefaultAuthenticator
- Parameters:
- username- the username
- password- the password
- Returns:
- The user, or null if the authentication was unsuccessful
- Throws:
- AuthenticationException
 
- 
authenticatepublic User authenticate(String username, String password, String apikey, Client client) throws AuthenticationException Description copied from interface:AuthenticatorAuthenticates the user using the given credentials, if successful, the corresponding user is returned.- Specified by:
- authenticatein interface- Authenticator
- Overrides:
- authenticatein class- DefaultAuthenticator
- Parameters:
- username- the username
- password- the password
- apikey- Optional third authentication parameter
- client- Client informations
- Returns:
- The user, or null if the authentication was unsuccessful
- Throws:
- AuthenticationException
 
 
-