Package com.okta.sdk.resource.api
Class ApiTokenApi
java.lang.Object
com.okta.sdk.resource.api.ApiTokenApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class ApiTokenApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApiToken
(String apiTokenId) Retrieve an API Token's Metadata Retrieves the metadata for an active API token by `apiTokenId`getApiToken
(String apiTokenId, Map<String, String> additionalHeaders) Retrieve an API Token's Metadata Retrieves the metadata for an active API token by `apiTokenId`protected static com.fasterxml.jackson.databind.ObjectMapper
List all API Token Metadata Lists all the metadata of the active API tokenslistApiTokens
(Map<String, String> additionalHeaders) List all API Token Metadata Lists all the metadata of the active API tokensvoid
revokeApiToken
(String apiTokenId) Revoke an API Token Revokes an API token by `apiTokenId`void
revokeApiToken
(String apiTokenId, Map<String, String> additionalHeaders) Revoke an API Token Revokes an API token by `apiTokenId`void
Revoke the Current API Token Revokes the API token provided in the Authorization headervoid
revokeCurrentApiToken
(Map<String, String> additionalHeaders) Revoke the Current API Token Revokes the API token provided in the Authorization headervoid
setApiClient
(ApiClient apiClient) upsertApiToken
(String apiTokenId, ApiTokenUpdate apiTokenUpdate) Upsert an API Token Network Condition Upserts an API Token Network Condition by `apiTokenId`upsertApiToken
(String apiTokenId, ApiTokenUpdate apiTokenUpdate, Map<String, String> additionalHeaders) Upsert an API Token Network Condition Upserts an API Token Network Condition by `apiTokenId`
-
Constructor Details
-
ApiTokenApi
public ApiTokenApi() -
ApiTokenApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getApiToken
Retrieve an API Token's Metadata Retrieves the metadata for an active API token by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)- Returns:
- ApiToken
- Throws:
ApiException
- if fails to make API call
-
getApiToken
public ApiToken getApiToken(String apiTokenId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an API Token's Metadata Retrieves the metadata for an active API token by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ApiToken
- Throws:
ApiException
- if fails to make API call
-
listApiTokens
List all API Token Metadata Lists all the metadata of the active API tokens- Returns:
- List<ApiToken>
- Throws:
ApiException
- if fails to make API call
-
listApiTokens
List all API Token Metadata Lists all the metadata of the active API tokens- Parameters:
additionalHeaders
- additionalHeaders for this call- Returns:
- List<ApiToken>
- Throws:
ApiException
- if fails to make API call
-
revokeApiToken
Revoke an API Token Revokes an API token by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)- Throws:
ApiException
- if fails to make API call
-
revokeApiToken
public void revokeApiToken(String apiTokenId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke an API Token Revokes an API token by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
revokeCurrentApiToken
Revoke the Current API Token Revokes the API token provided in the Authorization header- Throws:
ApiException
- if fails to make API call
-
revokeCurrentApiToken
Revoke the Current API Token Revokes the API token provided in the Authorization header- Parameters:
additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
upsertApiToken
public ApiToken upsertApiToken(String apiTokenId, ApiTokenUpdate apiTokenUpdate) throws ApiException Upsert an API Token Network Condition Upserts an API Token Network Condition by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)apiTokenUpdate
- (required)- Returns:
- ApiToken
- Throws:
ApiException
- if fails to make API call
-
upsertApiToken
public ApiToken upsertApiToken(String apiTokenId, ApiTokenUpdate apiTokenUpdate, Map<String, String> additionalHeaders) throws ApiExceptionUpsert an API Token Network Condition Upserts an API Token Network Condition by `apiTokenId`- Parameters:
apiTokenId
- id of the API Token (required)apiTokenUpdate
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ApiToken
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-