@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class ApplicationTokensApi extends Object
Constructor and Description |
---|
ApplicationTokensApi() |
ApplicationTokensApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
OAuth2Token |
getOAuth2TokenForApplication(String appId,
String tokenId,
String expand)
Retrieve an OAuth 2.0 Token
Retrieves a token for the specified application
|
OAuth2Token |
getOAuth2TokenForApplication(String appId,
String tokenId,
String expand,
Map<String,String> additionalHeaders)
Retrieve an OAuth 2.0 Token
Retrieves a token for the specified application
|
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
List<OAuth2Token> |
listOAuth2TokensForApplication(String appId,
String expand,
String after,
Integer limit)
List all OAuth 2.0 Tokens
Lists all tokens for the application
|
List<OAuth2Token> |
listOAuth2TokensForApplication(String appId,
String expand,
String after,
Integer limit,
Map<String,String> additionalHeaders)
List all OAuth 2.0 Tokens
Lists all tokens for the application
|
void |
revokeOAuth2TokenForApplication(String appId,
String tokenId)
Revoke an OAuth 2.0 Token
Revokes the specified token for the specified application
|
void |
revokeOAuth2TokenForApplication(String appId,
String tokenId,
Map<String,String> additionalHeaders)
Revoke an OAuth 2.0 Token
Revokes the specified token for the specified application
|
void |
revokeOAuth2TokensForApplication(String appId)
Revoke all OAuth 2.0 Tokens
Revokes all tokens for the specified application
|
void |
revokeOAuth2TokensForApplication(String appId,
Map<String,String> additionalHeaders)
Revoke all OAuth 2.0 Tokens
Revokes all tokens for the specified application
|
void |
setApiClient(ApiClient apiClient) |
public ApplicationTokensApi()
public ApplicationTokensApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public OAuth2Token getOAuth2TokenForApplication(String appId, String tokenId, String expand) throws ApiException
appId
- ID of the Application (required)tokenId
- `id` of Token (required)expand
- (optional)ApiException
- if fails to make API callpublic OAuth2Token getOAuth2TokenForApplication(String appId, String tokenId, String expand, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)tokenId
- `id` of Token (required)expand
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<OAuth2Token> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit) throws ApiException
appId
- ID of the Application (required)expand
- (optional)after
- (optional)limit
- (optional, default to 20)ApiException
- if fails to make API callpublic List<OAuth2Token> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)expand
- (optional)after
- (optional)limit
- (optional, default to 20)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeOAuth2TokenForApplication(String appId, String tokenId) throws ApiException
appId
- ID of the Application (required)tokenId
- `id` of Token (required)ApiException
- if fails to make API callpublic void revokeOAuth2TokenForApplication(String appId, String tokenId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)tokenId
- `id` of Token (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeOAuth2TokensForApplication(String appId) throws ApiException
appId
- ID of the Application (required)ApiException
- if fails to make API callpublic void revokeOAuth2TokensForApplication(String appId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.