public class OAuth2TokenRevocationAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation used for OAuth 2.0 Token Revocation.AbstractAuthenticationToken,
OAuth2TokenRevocationAuthenticationProvider,
Serialized Form| Constructor and Description |
|---|
OAuth2TokenRevocationAuthenticationToken(org.springframework.security.oauth2.core.OAuth2Token revokedToken,
org.springframework.security.core.Authentication clientPrincipal)
Constructs an
OAuth2TokenRevocationAuthenticationToken using the provided parameters. |
OAuth2TokenRevocationAuthenticationToken(java.lang.String token,
org.springframework.security.core.Authentication clientPrincipal,
java.lang.String tokenTypeHint)
Constructs an
OAuth2TokenRevocationAuthenticationToken using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCredentials() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getToken()
Returns the token.
|
java.lang.String |
getTokenTypeHint()
Returns the token type hint.
|
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic OAuth2TokenRevocationAuthenticationToken(java.lang.String token,
org.springframework.security.core.Authentication clientPrincipal,
@Nullable
java.lang.String tokenTypeHint)
OAuth2TokenRevocationAuthenticationToken using the provided parameters.token - the tokenclientPrincipal - the authenticated client principaltokenTypeHint - the token type hintpublic OAuth2TokenRevocationAuthenticationToken(org.springframework.security.oauth2.core.OAuth2Token revokedToken,
org.springframework.security.core.Authentication clientPrincipal)
OAuth2TokenRevocationAuthenticationToken using the provided parameters.revokedToken - the revoked tokenclientPrincipal - the authenticated client principalpublic java.lang.Object getPrincipal()
public java.lang.Object getCredentials()
public java.lang.String getToken()
@Nullable public java.lang.String getTokenTypeHint()