@Component(value="sec_TokenRevoker")
public class TokenRevoker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationEventPublisher |
applicationEventPublisher |
protected static org.slf4j.Logger |
log |
protected TokenMasker |
tokenMasker |
protected org.springframework.security.oauth2.provider.token.TokenStore |
tokenStore |
Constructor and Description |
---|
TokenRevoker() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIfTokenIsIssuedToClient(org.springframework.security.core.Authentication clientAuth,
org.springframework.security.oauth2.provider.OAuth2Authentication authToRevoke) |
java.lang.String |
revokeAccessToken(java.lang.String token) |
java.lang.String |
revokeAccessToken(java.lang.String token,
org.springframework.security.core.Authentication clientAuth) |
protected java.lang.String |
revokeAccessToken(java.lang.String token,
org.springframework.security.core.Authentication clientAuth,
TokenRevocationInitiator revocationInitiator) |
java.lang.String |
revokeRefreshToken(java.lang.String tokenValue,
org.springframework.security.core.Authentication clientAuth) |
protected static final org.slf4j.Logger log
@Autowired protected org.springframework.security.oauth2.provider.token.TokenStore tokenStore
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
@Autowired protected TokenMasker tokenMasker
@Nullable public java.lang.String revokeAccessToken(java.lang.String token, org.springframework.security.core.Authentication clientAuth)
@Nullable public java.lang.String revokeAccessToken(java.lang.String token)
@Nullable protected java.lang.String revokeAccessToken(java.lang.String token, @Nullable org.springframework.security.core.Authentication clientAuth, TokenRevocationInitiator revocationInitiator)
@Nullable public java.lang.String revokeRefreshToken(java.lang.String tokenValue, org.springframework.security.core.Authentication clientAuth)
protected void checkIfTokenIsIssuedToClient(org.springframework.security.core.Authentication clientAuth, org.springframework.security.oauth2.provider.OAuth2Authentication authToRevoke)