public class FormLoginAuthenticationToken
extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
Authentication implementation that is designed for simple presentation of an OAuth2
clientId, username, and password.FormLoginAuthenticationFilter,
FormLoginAuthenticationProvider,
Serialized Form| Constructor and Description |
|---|
FormLoginAuthenticationToken(String clientId,
Object principal,
Object credentials)
This constructor can be safely used by any code that wishes to create a
OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return
false. |
FormLoginAuthenticationToken(String clientId,
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 |
|---|---|
String |
getClientId() |
eraseCredentials, getCredentials, getPrincipal, setAuthenticatedequals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toStringpublic FormLoginAuthenticationToken(String clientId, Object principal, Object credentials)
OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return
false.public FormLoginAuthenticationToken(String clientId, 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.clientId - principal - credentials - authorities - public String getClientId()
Copyright © 2021. All rights reserved.