Class OAuthTokenStorage

java.lang.Object
io.meeds.oauth2.server.storage.OAuthTokenStorage
All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService

@Component public class OAuthTokenStorage extends Object implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
  • Constructor Details

    • OAuthTokenStorage

      public OAuthTokenStorage()
  • Method Details

    • save

      public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
      Specified by:
      save in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
      Specified by:
      remove in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    • findById

      public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id)
      Specified by:
      findById in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    • findByToken

      public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType)
      Specified by:
      findByToken in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    • findByUserAndClientId

      public List<OAuthAccessToken> findByUserAndClientId(String username, String clientId)
    • findByUser

      public List<OAuthAccessToken> findByUser(String username)
    • findByClientId

      public List<OAuthAccessToken> findByClientId(String clientId)
    • deleteByUserAndClientId

      public void deleteByUserAndClientId(String username, String clientId)
    • deleteByClientId

      public void deleteByClientId(String clientId)
    • deleteByUser

      public void deleteByUser(String username)
    • cleanExpiredTokens

      public int cleanExpiredTokens()