public class LoginAuthToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication object for identifying login token in LoginProcessingFilter.| Constructor and Description |
|---|
LoginAuthToken(Object principal,
Object credentials)
This constructor can be safely used by any code that wishes to create a
LoginAuthToken
, as the AbstractAuthenticationToken.isAuthenticated() will return false. |
LoginAuthToken(Object principal,
Object credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
This constructor should only be used by
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a trusted (i.e. |
| Modifier and Type | Method and Description |
|---|---|
void |
eraseCredentials() |
Object |
getCredentials() |
Object |
getPrincipal() |
void |
setAuthenticated(boolean isAuthenticated) |
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toStringpublic LoginAuthToken(Object principal, Object credentials)
LoginAuthToken
, as the AbstractAuthenticationToken.isAuthenticated() will return false.public LoginAuthToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a trusted (i.e.
AbstractAuthenticationToken.isAuthenticated() = true) authentication token.principal - credentials - authorities - public Object getCredentials()
public Object getPrincipal()
public void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationsetAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationTokenIllegalArgumentExceptionpublic void eraseCredentials()
eraseCredentials in interface org.springframework.security.core.CredentialsContainereraseCredentials in class org.springframework.security.authentication.AbstractAuthenticationTokenCopyright © 2018 Walmart, Inc.. All rights reserved.