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:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionLDAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) LDAuthenticationToken(String username) Constructor for the anonymous login
- 
Method SummaryMethods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationTokenauthenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticatedMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationTokengetAuthorities, getDetails, getName, isAuthenticated, setDetails
- 
Field Details- 
COOKIE_SID- See Also:
 
- 
PARAM_SID- See Also:
 
 
- 
- 
Constructor Details- 
LDAuthenticationTokenConstructor for the anonymous login- Parameters:
- username- the username
 
- 
LDAuthenticationTokenpublic LDAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) 
- 
LDAuthenticationTokenpublic LDAuthenticationToken()
 
- 
- 
Method Details- 
getSid
- 
setSid
- 
isAnonymouspublic boolean isAnonymous()
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-