Class TokenRevoker

java.lang.Object
io.jmix.securityoauth2.impl.TokenRevoker

@Component("sec_TokenRevoker") public class TokenRevoker extends Object
Bean that is used for access token revocation
  • 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

      @Autowired protected TokenMasker tokenMasker
  • Constructor Details

    • TokenRevoker

      public TokenRevoker()
  • Method Details

    • revokeAccessToken

      @Nullable public String revokeAccessToken(String token, org.springframework.security.core.Authentication clientAuth)
    • revokeAccessToken

      @Nullable public String revokeAccessToken(String token)
    • revokeAccessToken

      @Nullable protected String revokeAccessToken(String token, @Nullable org.springframework.security.core.Authentication clientAuth, TokenRevocationInitiator revocationInitiator)
    • revokeRefreshToken

      @Nullable public String revokeRefreshToken(String tokenValue, org.springframework.security.core.Authentication clientAuth)
    • checkIfTokenIsIssuedToClient

      protected void checkIfTokenIsIssuedToClient(org.springframework.security.core.Authentication clientAuth, org.springframework.security.oauth2.provider.OAuth2Authentication authToRevoke)