Package x.oauth

Interface DBManager

All Known Implementing Classes:
SkyLogicDataManager

public interface DBManager
  • Method Details

    • validClient

      boolean validClient(String clientId, String clientSecret)
      Validates passed clientId and clientSecret.
    • storeClientCredentials

      void storeClientCredentials(ClientCredentials clientCreds)
      Stores client credentials in the DB.
    • storeAuthCode

      void storeAuthCode(AuthCode authCode)
      Stores auth codes in the DB.
    • updateAuthCodeValidStatus

      void updateAuthCodeValidStatus(String authCode, boolean valid)
      Updates auth code valid status.
    • storeAccessToken

      void storeAccessToken(AccessToken accessToken)
      Stores access tokens in the DB.
    • findAccessTokenByRefreshToken

      AccessToken findAccessTokenByRefreshToken(String refreshToken, String clientId)
      Loads an access token record from DB by passed refreshToken
    • updateAccessTokenValidStatus

      void updateAccessTokenValidStatus(String accessToken, boolean valid)
      Updates access token status.
    • findAccessToken

      AccessToken findAccessToken(String accessToken)
      Loads an access token record from DB by passed accessToken
    • findAuthCode

      AuthCode findAuthCode(String authCode, String redirectUri)
      Loads an auth code record from DB by passed authCode and redirect uri.
    • findClientCredentials

      ClientCredentials findClientCredentials(String clientId)
      Loads a client credentials from DB by passed clientId.
    • storeScope

      boolean storeScope(Scope scope)
      Stores OAuth20 scope in the DB.
    • getAllScopes

      List<Scope> getAllScopes()
      Lists all registered scopes.
    • findScope

      Scope findScope(String scopeName)
      Loads a scope from DB by its name.
    • updateClientApp

      boolean updateClientApp(String clientId, String scope, String description, Long status, String applicationDetails)
      Updates client application scope, description, status and details.
    • getAllApplications

      List<ApplicationInfo> getAllApplications()
      Lists all client applications stored in the DB.
    • deleteScope

      boolean deleteScope(String scopeName)
      Deletes an oauth20 scope.
    • getAccessTokenByUserIdAndClientApp

      List<AccessToken> getAccessTokenByUserIdAndClientApp(String userId, String clientId)
      Returns a list of all active access tokens for a user and a client application.
    • removeAccessToken

      void removeAccessToken(String accessToken)
      Remove an access token.