Package com.smartsheet.api
Interface TokenResources
-
public interface TokenResources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
getAccessToken()
Obtain a new token.void
refreshAccessToken()
Refresh token.void
revokeAccessToken()
Revoke access token.
-
-
-
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 exceptioncom.smartsheet.api.internal.json.JSONSerializerException
- the JSON serializer exceptioncom.smartsheet.api.internal.http.HttpClientException
- the http client exceptionjava.net.URISyntaxException
- the URI syntax exceptionInvalidRequestException
- the invalid request exceptionSmartsheetException
-
refreshAccessToken
void refreshAccessToken() throws java.lang.NoSuchMethodException
Refresh token.- Throws:
java.lang.NoSuchMethodException
- method implemented in OAuthFlow
-
-