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 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
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class org.springframework.security.authentication.AbstractAuthenticationToken
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class org.springframework.security.authentication.AbstractAuthenticationToken