Class AuthenticationChain
java.lang.Object
com.logicaldoc.core.security.authentication.AbstractAuthenticator
com.logicaldoc.core.security.authentication.AuthenticationChain
- All Implemented Interfaces:
com.logicaldoc.core.security.authentication.Authenticator
public class AuthenticationChain
extends com.logicaldoc.core.security.authentication.AbstractAuthenticator
This authentication component implements a chain of possible authentication
sources that will be invoked sequentially. This implementation checks license
validity.
- Since:
- 4.5
- Author:
- Marco Meschieri
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal com.logicaldoc.core.security.User
authenticate
(String username, String password) final com.logicaldoc.core.security.User
authenticate
(String username, String password, String key, com.logicaldoc.core.security.Client client) boolean
canAuthenticateUser
(String user) static String
boolean
com.logicaldoc.core.security.User
Methods inherited from class com.logicaldoc.core.security.authentication.AbstractAuthenticator
authenticate
-
Constructor Details
-
AuthenticationChain
public AuthenticationChain()
-
-
Method Details
-
getSessionId
-
authenticate
public final com.logicaldoc.core.security.User authenticate(String username, String password) throws com.logicaldoc.core.security.authentication.AuthenticationException - Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
-
authenticate
public final com.logicaldoc.core.security.User authenticate(String username, String password, String key, com.logicaldoc.core.security.Client client) throws com.logicaldoc.core.security.authentication.AuthenticationException - Specified by:
authenticate
in interfacecom.logicaldoc.core.security.authentication.Authenticator
- Overrides:
authenticate
in classcom.logicaldoc.core.security.authentication.AbstractAuthenticator
- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
-
pickUser
-
canAuthenticateUser
- Specified by:
canAuthenticateUser
in interfacecom.logicaldoc.core.security.authentication.Authenticator
- Overrides:
canAuthenticateUser
in classcom.logicaldoc.core.security.authentication.AbstractAuthenticator
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacecom.logicaldoc.core.security.authentication.Authenticator
- Overrides:
isEnabled
in classcom.logicaldoc.core.security.authentication.AbstractAuthenticator
-