org.wso2.carbon.device.mgt.mobile.windows.api.common.authenticator

## Interface OAuth2TokenValidator

- All Known Implementing Classes:
    LocalOAuthValidator, RemoteOAuthValidator

      public interface OAuth2TokenValidator

  Declares the contract for OAuth2TokenValidator implementations.

- - ### Method Summary

    Methods
    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.

- - ### Method Detail

    - #### validateToken

          OAuthValidationResponse validateToken(String accessToken,
                                              String resource)
                                                throws OAuthTokenValidationException

      This method gets a string accessToken and validates it and generate the OAuthValidationResponse containing the validity and user details if valid.
      Parameters:
        `accessToken` - which need to be validated.
        `resource` - which need to be validated.
      Returns:
        OAuthValidationResponse with the validated results.
      Throws:
        `OAuthTokenValidationException`

Copyright © 2017 WSO2. All rights reserved.