| 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
|
public Optional<Optional<String>> getRedirectUri(String clientId) throws OAuthDAOException
OAuthDAOgetRedirectUri in interface OAuthDAOclientId - Client Id of clientOAuthDAOException - if a DAO Error is encounteredpublic void addAuthCodeInfo(String authCode, String clientId, String scope, URI redirectUri) throws OAuthDAOException
OAuthDAOaddAuthCodeInfo in interface OAuthDAOauthCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriOAuthDAOException - if a DAO Error is encountered@CheckForNull public String getScopeForAuthCode(String authCode, String clientId, @Nullable URI redirectUri) throws OAuthDAOException
OAuthDAOgetScopeForAuthCode in interface OAuthDAOauthCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriOAuthDAOException - if a DAO Error is encounteredpublic boolean isClientCredentialsValid(String clientId, String clientSecret) throws OAuthDAOException
OAuthDAOisClientCredentialsValid in interface OAuthDAOclientId - Client Id of clientclientSecret - Client Secret of clientOAuthDAOException - if a DAO Error is encounteredpublic void addAccessTokenInfo(AccessTokenData accessTokenData) throws OAuthDAOException
OAuthDAOaddAccessTokenInfo in interface OAuthDAOaccessTokenData - Access token related dataOAuthDAOException - if a DAO Error is encounteredCopyright © 2018 WSO2. All rights reserved.