public interface OAuthDAO
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessTokenInfo(AccessTokenData accessTokenData)
Add access token related information
|
void |
addAuthCodeInfo(String authCode,
String clientId,
String scope,
URI redirectUri)
Add Authorization code related information
|
Optional<Optional<String>> |
getRedirectUri(String clientId)
Get pre-registered redirectUri of a client
|
String |
getScopeForAuthCode(String authCode,
String clientId,
URI redirectUri)
Get scope for matching persisted Authorization code information
|
boolean |
isClientCredentialsValid(String clientId,
String clientSecret)
Check if client Id/secret credentials are valid
|
Optional<Optional<String>> getRedirectUri(String clientId) throws OAuthDAOException
clientId - Client Id of clientOAuthDAOException - if a DAO Error is encounteredvoid addAuthCodeInfo(String authCode, String clientId, String scope, @Nullable URI redirectUri) throws OAuthDAOException
authCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriOAuthDAOException - if a DAO Error is encountered@CheckForNull String getScopeForAuthCode(String authCode, String clientId, @Nullable URI redirectUri) throws OAuthDAOException
authCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriOAuthDAOException - if a DAO Error is encounteredboolean isClientCredentialsValid(String clientId, String clientSecret) throws OAuthDAOException
clientId - Client Id of clientclientSecret - Client Secret of clientOAuthDAOException - if a DAO Error is encounteredvoid addAccessTokenInfo(AccessTokenData accessTokenData) throws OAuthDAOException
accessTokenData - Access token related dataOAuthDAOException - if a DAO Error is encounteredCopyright © 2018 WSO2. All rights reserved.