public interface ClientDAO
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthCodeInfo(String authCode,
String clientId,
String scope,
URI redirectUri)
Add Authorization code related information
|
Optional<Optional<String>> |
getRedirectUri(String clientId)
Get public information related to a client including the clientId and redirectUri
|
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 ClientDAOException
clientId - Client Id of clientClientDAOException - if a DOA Error is encounteredvoid addAuthCodeInfo(String authCode, String clientId, String scope, @Nullable URI redirectUri) throws ClientDAOException
authCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriClientDAOException - if a DOA Error is encountered@CheckForNull String getScopeForAuthCode(String authCode, String clientId, @Nullable URI redirectUri) throws ClientDAOException
authCode - Generated Authorization CodeclientId - Client Id of clientredirectUri - Redirect UriClientDAOException - if a DOA Error is encounteredboolean isClientCredentialsValid(String clientId, String clientSecret) throws ClientDAOException
clientId - Client Id of clientclientSecret - Client Secret of clientClientDAOExceptionCopyright © 2017 WSO2. All rights reserved.