public interface GrantHandler
| Modifier and Type | Method and Description |
|---|---|
default Optional<com.nimbusds.oauth2.sdk.AccessTokenResponse> |
checkTokens(OAuthDAO oauthDAO,
String authUser,
String grantType,
String clientId,
String scopes)
Check the previous generated token state
|
void |
init(org.wso2.carbon.auth.core.api.UserNameMapper userNameMapper,
OAuthDAO oauthDAO,
org.wso2.carbon.auth.user.mgt.UserStoreManager userStoreManager,
org.wso2.carbon.auth.client.registration.dao.ApplicationDAO applicationDAO)
Initialise the grant type implementations with DAO
|
default boolean |
isAuthorizedClient(org.wso2.carbon.auth.client.registration.model.Application application,
String grantType) |
void |
process(String authorization,
AccessTokenContext context,
Map<String,String> queryParameters)
Process grant type request to generate access token
|
void process(String authorization, AccessTokenContext context, Map<String,String> queryParameters) throws org.wso2.carbon.auth.core.exception.AuthException
authorization - Authorization headercontext - AccessTokenContext object that stores context information during request processingqueryParameters - Map of query parameters sentorg.wso2.carbon.auth.core.exception.AuthException - When an grantHandler Error Occurredvoid init(org.wso2.carbon.auth.core.api.UserNameMapper userNameMapper,
OAuthDAO oauthDAO,
org.wso2.carbon.auth.user.mgt.UserStoreManager userStoreManager,
org.wso2.carbon.auth.client.registration.dao.ApplicationDAO applicationDAO)
userNameMapper - Username mapper objectoauthDAO - OAuthDAO instanceuserStoreManager - user store manager instanceapplicationDAO - ApplicationDAO instancedefault boolean isAuthorizedClient(org.wso2.carbon.auth.client.registration.model.Application application,
String grantType)
default Optional<com.nimbusds.oauth2.sdk.AccessTokenResponse> checkTokens(OAuthDAO oauthDAO, String authUser, String grantType, String clientId, String scopes)
oauthDAO - oauth DAO instanceauthUser - authenticated usergrantType - requested grant typeclientId - requested consumer keyscopes - requested scopesCopyright © 2018 WSO2. All rights reserved.