Interface TokenResources


  • public interface TokenResources
    • Method Detail

      • getAccessToken

        void getAccessToken()
                     throws java.lang.NoSuchMethodException
        Obtain a new token.
        Throws:
        java.lang.NoSuchMethodException - method implemented in OAuthFlow
      • revokeAccessToken

        void revokeAccessToken()
                        throws OAuthTokenException,
                               com.smartsheet.api.internal.json.JSONSerializerException,
                               com.smartsheet.api.internal.http.HttpClientException,
                               java.net.URISyntaxException,
                               InvalidRequestException,
                               SmartsheetException
        Revoke access token.

        Exceptions: - IllegalArgumentException : if url is null or empty - InvalidTokenRequestException : if the token request is invalid - InvalidOAuthClientException : if the client information is invalid - InvalidOAuthGrantException : if the authorization code or refresh token is invalid or expired, the redirect_uri does not match, or the hash value does not match the client secret and/or code - UnsupportedOAuthGrantTypeException : if the grant type is invalid - OAuthTokenException : if any other error occurred during the operation

        Throws:
        OAuthTokenException - the o auth token exception
        com.smartsheet.api.internal.json.JSONSerializerException - the JSON serializer exception
        com.smartsheet.api.internal.http.HttpClientException - the http client exception
        java.net.URISyntaxException - the URI syntax exception
        InvalidRequestException - the invalid request exception
        SmartsheetException
      • refreshAccessToken

        void refreshAccessToken()
                         throws java.lang.NoSuchMethodException
        Refresh token.
        Throws:
        java.lang.NoSuchMethodException - method implemented in OAuthFlow