public class RestOAuth2AccessTokenValidator extends Object implements OAuth2AccessTokenValidator
Constructor and Description |
---|
RestOAuth2AccessTokenValidator(JsonValue config,
Client httpClient)
Creates a new instance of the RestOAuth2AccessTokenValidator.
|
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getScope(JsonValue tokenInfo)
Gets the scopes for the access token.
|
Promise<AccessTokenValidationResponse,OAuth2Exception> |
validate(String accessToken)
Validates whether the given access token is valid, by referring to the OAuth2 Provider and gaining user
profile information as well.
|
public Promise<AccessTokenValidationResponse,OAuth2Exception> validate(String accessToken)
validate
in interface OAuth2AccessTokenValidator
accessToken
- The access token to validate.Copyright © 2025 Open Identity Platform Community. All rights reserved.