public class InMemoryTokenProvider extends Object implements org.wso2.carbon.identity.oauth.tokenprocessor.TokenProvider
| Constructor and Description |
|---|
InMemoryTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.identity.oauth2.model.AccessTokenDO |
getVerifiedAccessToken(String token,
boolean includeExpired)
Retrieves and verifies JWT access token based on the JWT claims with an option to include expired tokens
as valid in the verification process.
|
org.wso2.carbon.identity.oauth2.model.AccessTokenDO |
getVerifiedRefreshToken(String refreshToken)
Validates the refresh token to check whether it is active and returns the validation data in an AccessTokenDO.
|
org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO |
getVerifiedRefreshToken(String refreshToken,
String consumerKey)
Retrieves and verifies a refresh token.
|
public org.wso2.carbon.identity.oauth2.model.AccessTokenDO getVerifiedAccessToken(String token, boolean includeExpired) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
getVerifiedAccessToken in interface org.wso2.carbon.identity.oauth.tokenprocessor.TokenProvidertoken - The access token JWT to retrieve and verify.includeExpired - A boolean flag indicating whether to include expired tokens in the verification.
Set to true to include expired tokens, false to exclude them.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If there is an error during the access token retrieval or verification process.public org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO getVerifiedRefreshToken(String refreshToken, String consumerKey) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
getVerifiedRefreshToken in interface org.wso2.carbon.identity.oauth.tokenprocessor.TokenProviderrefreshToken - The refresh token to retrieve and verifyconsumerKey - Consumer keyorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If there is an error during the access token retrieval or verification process.public org.wso2.carbon.identity.oauth2.model.AccessTokenDO getVerifiedRefreshToken(String refreshToken) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
getVerifiedRefreshToken in interface org.wso2.carbon.identity.oauth.tokenprocessor.TokenProviderrefreshToken - The refresh token to validateorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If there is an error during the refresh token validation process.Copyright © 2024 WSO2. All rights reserved.