public class RefreshGrantHandler extends Object implements GrantHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOWED_MINIMUM_VALIDITY_PERIOD_IN_MILI |
static String |
INVALID_GRANT_ERROR_CODE |
static com.nimbusds.oauth2.sdk.token.BearerTokenError |
MISSING_TOKEN |
| Constructor and Description |
|---|
RefreshGrantHandler() |
| Modifier and Type | Method and Description |
|---|---|
static long |
calculateValidityInMillis(long issuedTimeInMillis,
long validityPeriodMillis) |
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
|
void |
process(String authorization,
AccessTokenContext context,
Map<String,String> queryParameters)
validate and issue a token using refresh token grant
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckTokens, isAuthorizedClientpublic static final com.nimbusds.oauth2.sdk.token.BearerTokenError MISSING_TOKEN
public static final int ALLOWED_MINIMUM_VALIDITY_PERIOD_IN_MILI
public static final String INVALID_GRANT_ERROR_CODE
public 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)
GrantHandlerinit in interface GrantHandleruserNameMapper - Username mapper objectoauthDAO - OAuthDAO instanceuserStoreManager - user store manager instanceapplicationDAO - ApplicationDAO instancetokenDAO - TokenDAO instancepublic void process(String authorization, AccessTokenContext context, Map<String,String> queryParameters) throws org.wso2.carbon.auth.core.exception.AuthException
process in interface GrantHandlerauthorization - Authorization header client:secret as basic auth headercontext - AccessTokenContext object that stores context information during request processingqueryParameters - Map of query parameters sentorg.wso2.carbon.auth.core.exception.AuthException - throws if token issuing error occurredpublic static long calculateValidityInMillis(long issuedTimeInMillis,
long validityPeriodMillis)
Copyright © 2018 WSO2. All rights reserved.