public class OAuth2TokenRevocationAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation used for OAuth 2.0 Token Revocation.AbstractAuthenticationToken,
OAuth2TokenRevocationAuthenticationProvider,
序列化表格| 构造器和说明 |
|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
getCredentials() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getToken()
Returns the token.
|
java.lang.String |
getTokenTypeHint()
Returns the token type hint.
|
public 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()