Package waffle.spring

Class WindowsAuthenticationToken

java.lang.Object
waffle.spring.WindowsAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication

public class WindowsAuthenticationToken extends Object implements org.springframework.security.core.Authentication
A Windows authentication token.
See Also:
  • Field Details

    • DEFAULT_GRANTED_AUTHORITY_FACTORY

      public static final GrantedAuthorityFactory DEFAULT_GRANTED_AUTHORITY_FACTORY
      The GrantedAuthorityFactory that is used by default if a custom one is not specified. This default GrantedAuthorityFactory is a FqnGrantedAuthorityFactory with prefix "ROLE_" and will convert the fqn to uppercase
    • DEFAULT_GRANTED_AUTHORITY

      public static final org.springframework.security.core.GrantedAuthority DEFAULT_GRANTED_AUTHORITY
      The GrantedAuthority that will be added to every WindowsAuthenticationToken, unless another (or null) is specified.
  • Constructor Details

  • Method Details

    • getAuthorities

      public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.Authentication
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean authenticated)
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
    • getName

      public String getName()
      Specified by:
      getName in interface Principal