Package africa.absa.inception.security
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.AbstractAuthenticationTokenThe AuthenticationToken class.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)Constructs a new AuthenticationToken.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCredentials()ObjectgetPrincipal()booleanisAuthenticated()-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, setAuthenticated, setDetails, toString
-
-
-
-
Method Detail
-
getCredentials
public Object getCredentials()
-
getPrincipal
public Object getPrincipal()
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication- Overrides:
isAuthenticatedin classorg.springframework.security.authentication.AbstractAuthenticationToken
-
-