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

      • 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