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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    LDAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
    Constructor for the anonymous login
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    void
     
     

    Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    eraseCredentials, getCredentials, getPrincipal, setAuthenticated

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Principal

    implies
  • Field Details

  • Constructor Details

    • 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()
  • Method Details

    • getSid

      public String getSid()
    • setSid

      public void setSid(String sid)
    • isAnonymous

      public boolean isAnonymous()
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class org.springframework.security.authentication.AbstractAuthenticationToken