Class DefaultAuthenticator
java.lang.Object
com.logicaldoc.core.security.authentication.AbstractAuthenticator
com.logicaldoc.core.security.authentication.DefaultAuthenticator
- All Implemented Interfaces:
- Authenticator
- Direct Known Subclasses:
- ApiKeyAuthenticator
This is the basic authentication mechanism, that searches for the user in the
 LogicalDOC database.
- Since:
- 4.5
- Author:
- Sebastian Wenzky
- 
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 key, Client client) Authenticates the user using the given credentials, if successful, the corresponding user is returned.This method does not authenticate the user but just retrieves his detailsvoidvalidateUser(User user) Perform some security validations on the user but does not check the password.Methods inherited from class com.logicaldoc.core.security.authentication.AbstractAuthenticatorauthenticate, canAuthenticateUser, isEnabled
- 
Constructor Details- 
DefaultAuthenticatorpublic DefaultAuthenticator()
 
- 
- 
Method Details- 
authenticateDescription copied from interface:AuthenticatorAuthenticates the user using the given credentials, if successful, the corresponding user is returned.- 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 key, 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- AbstractAuthenticator
- Parameters:
- username- the username
- password- the password
- key- Optional third authentication parameter
- client- Client informations
- Returns:
- The user, or null if the authentication was unsuccessful
- Throws:
- AuthenticationException
 
- 
pickUserDescription copied from interface:AuthenticatorThis method does not authenticate the user but just retrieves his details- Parameters:
- username- username of the user to find
- Returns:
- object representation of the user
- Throws:
- PersistenceException- Error in data layer
 
- 
validateUserPerform some security validations on the user but does not check the password.- Parameters:
- user- The user to validate
- Throws:
- AuthenticationException- I something did not pass
 
 
-