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
OAuth2TokenValidator
validateToken
in interface OAuth2TokenValidator
accessToken
- which need to be validated.resource
- which need to be validated.OAuthTokenValidationException
Copyright © 2017 WSO2. All rights reserved.