Class AuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
africa.absa.inception.security.AuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class AuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
The AuthenticationToken class.
Author:
Marcus Portmann
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)
    Constructs a new AuthenticationToken.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    boolean
     

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

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, setAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • AuthenticationToken

      public AuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)
      Constructs a new AuthenticationToken.
      Parameters:
      userDetails - the user details
  • Method Details

    • getCredentials

      public Object getCredentials()
    • getPrincipal

      public Object getPrincipal()
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
      Overrides:
      isAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationToken