Package com.smartsheet.api
Interface TokenResources
-
public interface TokenResources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgetAccessToken()Obtain a new token.voidrefreshAccessToken()Refresh token.voidrevokeAccessToken()Revoke access token.
-
-
-
Method Detail
-
getAccessToken
void getAccessToken() throws java.lang.NoSuchMethodExceptionObtain 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, SmartsheetExceptionRevoke 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.NoSuchMethodExceptionRefresh token.- Throws:
java.lang.NoSuchMethodException- method implemented in OAuthFlow
-
-