Package x.oauth
Interface DBManager
- All Known Implementing Classes:
SkyLogicDataManager
public interface DBManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteScope(String scopeName) Deletes an oauth20 scope.findAccessToken(String accessToken) Loads an access token record from DB by passed accessTokenfindAccessTokenByRefreshToken(String refreshToken, String clientId) Loads an access token record from DB by passed refreshTokenfindAuthCode(String authCode, String redirectUri) Loads an auth code record from DB by passed authCode and redirect uri.findClientCredentials(String clientId) Loads a client credentials from DB by passed clientId.Loads a scope from DB by its name.getAccessTokenByUserIdAndClientApp(String userId, String clientId) Returns a list of all active access tokens for a user and a client application.Lists all client applications stored in the DB.Lists all registered scopes.voidremoveAccessToken(String accessToken) Remove an access token.voidstoreAccessToken(AccessToken accessToken) Stores access tokens in the DB.voidstoreAuthCode(AuthCode authCode) Stores auth codes in the DB.voidstoreClientCredentials(ClientCredentials clientCreds) Stores client credentials in the DB.booleanstoreScope(Scope scope) Stores OAuth20 scope in the DB.voidupdateAccessTokenValidStatus(String accessToken, boolean valid) Updates access token status.voidupdateAuthCodeValidStatus(String authCode, boolean valid) Updates auth code valid status.booleanupdateClientApp(String clientId, String scope, String description, Long status, String applicationDetails) Updates client application scope, description, status and details.booleanvalidClient(String clientId, String clientSecret) Validates passed clientId and clientSecret.
-
Method Details
-
validClient
Validates passed clientId and clientSecret. -
storeClientCredentials
Stores client credentials in the DB. -
storeAuthCode
Stores auth codes in the DB. -
updateAuthCodeValidStatus
Updates auth code valid status. -
storeAccessToken
Stores access tokens in the DB. -
findAccessTokenByRefreshToken
Loads an access token record from DB by passed refreshToken -
updateAccessTokenValidStatus
Updates access token status. -
findAccessToken
Loads an access token record from DB by passed accessToken -
findAuthCode
Loads an auth code record from DB by passed authCode and redirect uri. -
findClientCredentials
Loads a client credentials from DB by passed clientId. -
storeScope
Stores OAuth20 scope in the DB. -
getAllScopes
Lists all registered scopes. -
findScope
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
Deletes an oauth20 scope. -
getAccessTokenByUserIdAndClientApp
Returns a list of all active access tokens for a user and a client application. -
removeAccessToken
Remove an access token.
-