public class RemoteOAuthValidator extends Object implements OAuth2TokenValidator
| Constructor and Description |
|---|
RemoteOAuthValidator(String hostURL,
String adminUsername,
String adminPassword,
Properties properties) |
| 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 RemoteOAuthValidator(String hostURL, String adminUsername, String adminPassword, Properties properties)
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.