public class OpaqueTokenUtil extends Object
| Constructor and Description |
|---|
OpaqueTokenUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.identity.oauth2.model.AccessTokenDO |
findRefreshToken(String refreshToken)
Find opaque refresh token from database.
|
static void |
revokeTokens(List<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> accessTokens) |
static org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO |
validateOpaqueRefreshToken(String token,
String consumerKey)
Validate opaque refresh token from revocation request and return the validation data object.
|
static void |
validateTokenConsent(org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO validationBean)
Validate Token Consent for Opaque tokens.
|
public static org.wso2.carbon.identity.oauth2.model.AccessTokenDO findRefreshToken(String refreshToken) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
refreshToken - Refresh tokenorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs while retrieving the refresh token.public static org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO validateOpaqueRefreshToken(String token, String consumerKey) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
token - Refresh TokenconsumerKey - Consumer Keyorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - if an error occurs while validating the refresh token.public static void validateTokenConsent(org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO validationBean)
throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
validationBean - RefreshTokenValidationDataDOorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionpublic static void revokeTokens(List<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> accessTokens) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
org.wso2.carbon.identity.oauth2.IdentityOAuth2ExceptionCopyright © 2024 WSO2. All rights reserved.