Package io.jmix.securityoauth2.impl
Class TokenRevoker
java.lang.Object
io.jmix.securityoauth2.impl.TokenRevoker
Bean that is used for access token revocation
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationEventPublisher
protected static final org.slf4j.Logger
protected TokenMasker
protected org.springframework.security.oauth2.provider.token.TokenStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkIfTokenIsIssuedToClient
(org.springframework.security.core.Authentication clientAuth, org.springframework.security.oauth2.provider.OAuth2Authentication authToRevoke) revokeAccessToken
(String token) revokeAccessToken
(String token, org.springframework.security.core.Authentication clientAuth) protected String
revokeAccessToken
(String token, org.springframework.security.core.Authentication clientAuth, TokenRevocationInitiator revocationInitiator) revokeRefreshToken
(String tokenValue, org.springframework.security.core.Authentication clientAuth)
-
Field Details
-
log
protected static final org.slf4j.Logger log -
tokenStore
@Autowired protected org.springframework.security.oauth2.provider.token.TokenStore tokenStore -
applicationEventPublisher
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher -
tokenMasker
-
-
Constructor Details
-
TokenRevoker
public TokenRevoker()
-
-
Method Details
-
revokeAccessToken
-
revokeAccessToken
-
revokeAccessToken
@Nullable protected String revokeAccessToken(String token, @Nullable org.springframework.security.core.Authentication clientAuth, TokenRevocationInitiator revocationInitiator) -
revokeRefreshToken
-
checkIfTokenIsIssuedToClient
protected void checkIfTokenIsIssuedToClient(org.springframework.security.core.Authentication clientAuth, org.springframework.security.oauth2.provider.OAuth2Authentication authToRevoke)
-