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.AbstractAuthenticatorThis 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
Constructors Constructor Description AuthenticationChain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.logicaldoc.core.security.Userauthenticate(String username, String password)com.logicaldoc.core.security.Userauthenticate(String username, String password, String key, com.logicaldoc.core.security.Client client)booleancanAuthenticateUser(String user)static StringgetSessionId()booleanisEnabled()com.logicaldoc.core.security.UserpickUser(String username)
-
-
-
Method Detail
-
getSessionId
public static String 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:
authenticatein interfacecom.logicaldoc.core.security.authentication.Authenticator- Overrides:
authenticatein classcom.logicaldoc.core.security.authentication.AbstractAuthenticator- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
-
pickUser
public com.logicaldoc.core.security.User pickUser(String username)
-
canAuthenticateUser
public boolean canAuthenticateUser(String user)
- Specified by:
canAuthenticateUserin interfacecom.logicaldoc.core.security.authentication.Authenticator- Overrides:
canAuthenticateUserin classcom.logicaldoc.core.security.authentication.AbstractAuthenticator
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacecom.logicaldoc.core.security.authentication.Authenticator- Overrides:
isEnabledin classcom.logicaldoc.core.security.authentication.AbstractAuthenticator
-
-