Class OAuthTokenService

java.lang.Object
io.meeds.oauth2.server.service.OAuthTokenService

@Service public class OAuthTokenService extends Object
  • Constructor Details

    • OAuthTokenService

      public OAuthTokenService()
  • Method Details

    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
    • findById

      public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id)
    • findByToken

      public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType)
    • getTokensByUserAndClient

      public List<OAuthAccessToken> getTokensByUserAndClient(String username, String clientId)
    • getTokensByUser

      public List<OAuthAccessToken> getTokensByUser(String username)
    • getTokensByClient

      public List<OAuthAccessToken> getTokensByClient(String clientId)
    • deleteTokensByUserAndClient

      public void deleteTokensByUserAndClient(String username, String clientId)
    • deleteTokensByClient

      public void deleteTokensByClient(String clientId)
    • deleteTokensByUser

      public void deleteTokensByUser(String username)
    • deleteTokenById

      public void deleteTokenById(String tokenId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • cleanExpiredTokens

      public int cleanExpiredTokens()