Class LDAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
- com.logicaldoc.core.security.spring.LDAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class LDAuthenticationToken extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
A LogicalDOC aware authentication token- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
COOKIE_SID
static String
PARAM_SID
-
Constructor Summary
Constructors Constructor Description LDAuthenticationToken()
LDAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
LDAuthenticationToken(String username)
Constructor for the anonymous login
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSid()
boolean
isAnonymous()
void
setSid(String sid)
String
toString()
-
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
eraseCredentials, getCredentials, getPrincipal, setAuthenticated
-
-
-
-
Field Detail
-
COOKIE_SID
public static final String COOKIE_SID
- See Also:
- Constant Field Values
-
PARAM_SID
public static final String PARAM_SID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LDAuthenticationToken
public LDAuthenticationToken(String username)
Constructor for the anonymous login- Parameters:
username
- the username
-
LDAuthenticationToken
public LDAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
LDAuthenticationToken
public LDAuthenticationToken()
-
-