public class AuthorizationApi extends Object
| Constructor and Description |
|---|
AuthorizationApi() |
AuthorizationApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
AccessToken |
getToken(String grantType,
String clientId,
String clientSecret,
String refreshToken,
String username,
String password)
Get tokens
finAPI implements the OAuth 2.0 Standard for authorizing applications and users within applications.
|
com.squareup.okhttp.Call |
getTokenAsync(String grantType,
String clientId,
String clientSecret,
String refreshToken,
String username,
String password,
ApiCallback<AccessToken> callback)
Get tokens (asynchronously)
finAPI implements the OAuth 2.0 Standard for authorizing applications and users within applications.
|
com.squareup.okhttp.Call |
getTokenCall(String grantType,
String clientId,
String clientSecret,
String refreshToken,
String username,
String password,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getToken
|
ApiResponse<AccessToken> |
getTokenWithHttpInfo(String grantType,
String clientId,
String clientSecret,
String refreshToken,
String username,
String password)
Get tokens
finAPI implements the OAuth 2.0 Standard for authorizing applications and users within applications.
|
void |
revokeToken(String token,
String tokenTypeHint)
Revoke a token
An additional endpoint for the OAuth 2.0 Standard, which allows clients to notify finAPI that a previously obtained refresh_token or access_token is no longer required.
|
com.squareup.okhttp.Call |
revokeTokenAsync(String token,
String tokenTypeHint,
ApiCallback<Void> callback)
Revoke a token (asynchronously)
An additional endpoint for the OAuth 2.0 Standard, which allows clients to notify finAPI that a previously obtained refresh_token or access_token is no longer required.
|
com.squareup.okhttp.Call |
revokeTokenCall(String token,
String tokenTypeHint,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for revokeToken
|
ApiResponse<Void> |
revokeTokenWithHttpInfo(String token,
String tokenTypeHint)
Revoke a token
An additional endpoint for the OAuth 2.0 Standard, which allows clients to notify finAPI that a previously obtained refresh_token or access_token is no longer required.
|
void |
setApiClient(ApiClient apiClient) |
public AuthorizationApi()
public AuthorizationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getTokenCall(String grantType, String clientId, String clientSecret, String refreshToken, String username, String password, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
grantType - Determines the required type of authorization:password - authorize a user; client_credentials - authorize a client;refresh_token - refresh a user's access_token. (required)clientId - Client identifier (required)clientSecret - Client secret (required)refreshToken - Refresh token. Required for grant_type=refresh_token only. (optional)username - User identifier. Required for grant_type=password only. (optional)password - User password. Required for grant_type=password only. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic AccessToken getToken(String grantType, String clientId, String clientSecret, String refreshToken, String username, String password) throws ApiException
grantType - Determines the required type of authorization:password - authorize a user; client_credentials - authorize a client;refresh_token - refresh a user's access_token. (required)clientId - Client identifier (required)clientSecret - Client secret (required)refreshToken - Refresh token. Required for grant_type=refresh_token only. (optional)username - User identifier. Required for grant_type=password only. (optional)password - User password. Required for grant_type=password only. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AccessToken> getTokenWithHttpInfo(String grantType, String clientId, String clientSecret, String refreshToken, String username, String password) throws ApiException
grantType - Determines the required type of authorization:password - authorize a user; client_credentials - authorize a client;refresh_token - refresh a user's access_token. (required)clientId - Client identifier (required)clientSecret - Client secret (required)refreshToken - Refresh token. Required for grant_type=refresh_token only. (optional)username - User identifier. Required for grant_type=password only. (optional)password - User password. Required for grant_type=password only. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getTokenAsync(String grantType, String clientId, String clientSecret, String refreshToken, String username, String password, ApiCallback<AccessToken> callback) throws ApiException
grantType - Determines the required type of authorization:password - authorize a user; client_credentials - authorize a client;refresh_token - refresh a user's access_token. (required)clientId - Client identifier (required)clientSecret - Client secret (required)refreshToken - Refresh token. Required for grant_type=refresh_token only. (optional)username - User identifier. Required for grant_type=password only. (optional)password - User password. Required for grant_type=password only. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call revokeTokenCall(String token, String tokenTypeHint, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
token - The token that the client wants to get revoked (required)tokenTypeHint - A hint about the type of the token submitted for revocation (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void revokeToken(String token, String tokenTypeHint) throws ApiException
token - The token that the client wants to get revoked (required)tokenTypeHint - A hint about the type of the token submitted for revocation (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> revokeTokenWithHttpInfo(String token, String tokenTypeHint) throws ApiException
token - The token that the client wants to get revoked (required)tokenTypeHint - A hint about the type of the token submitted for revocation (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call revokeTokenAsync(String token, String tokenTypeHint, ApiCallback<Void> callback) throws ApiException
token - The token that the client wants to get revoked (required)tokenTypeHint - A hint about the type of the token submitted for revocation (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2018. All rights reserved.