public interface GrantHandler
| Modifier and Type | Method and Description |
|---|---|
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,
TokenDAO tokenDAO)
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,
TokenDAO tokenDAO)
userNameMapper - Username mapper objectoauthDAO - OAuthDAO instanceuserStoreManager - user store manager instanceapplicationDAO - ApplicationDAO instancetokenDAO - TokenDAO instancedefault boolean isAuthorizedClient(org.wso2.carbon.auth.client.registration.model.Application application,
String grantType)
Copyright © 2018 WSO2. All rights reserved.