public class LocalOAuthValidator extends Object implements OAuth2TokenValidator
| Constructor and Description |
|---|
LocalOAuthValidator() |
| Modifier and Type | Method and Description |
|---|---|
OAuthValidationResponse |
validateToken(String accessToken,
String resource)
This method gets a string accessToken and validates it and generate the OAuthValidationResponse
containing the validity and user details if valid.
|
public OAuthValidationResponse validateToken(String accessToken, String resource) throws OAuthTokenValidationException
OAuth2TokenValidatorvalidateToken in interface OAuth2TokenValidatoraccessToken - which need to be validated.resource - which need to be validated.OAuthTokenValidationExceptionCopyright © 2017 WSO2. All rights reserved.