@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T17:07:26.321-05:00[America/Chicago]") public class ApiTokenApi extends Object
Constructor and Description |
---|
ApiTokenApi() |
ApiTokenApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
ApiToken |
getApiToken(String apiTokenId)
Retrieve an API Token's Metadata
Retrieves the metadata for an active API token by id
|
ApiToken |
getApiToken(String apiTokenId,
Map<String,String> additionalHeaders)
Retrieve an API Token's Metadata
Retrieves the metadata for an active API token by id
|
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
List<ApiToken> |
listApiTokens(String after,
Integer limit,
String q)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
List<ApiToken> |
listApiTokens(String after,
Integer limit,
String q,
Map<String,String> additionalHeaders)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
void |
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 |
revokeCurrentApiToken()
Revoke the Current API Token
Revokes the API token provided in the Authorization header
|
void |
revokeCurrentApiToken(Map<String,String> additionalHeaders)
Revoke the Current API Token
Revokes the API token provided in the Authorization header
|
void |
setApiClient(ApiClient apiClient) |
public ApiTokenApi()
public ApiTokenApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public ApiToken getApiToken(String apiTokenId) throws ApiException
apiTokenId
- id of the API Token (required)ApiException
- if fails to make API callpublic ApiToken getApiToken(String apiTokenId, Map<String,String> additionalHeaders) throws ApiException
apiTokenId
- id of the API Token (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<ApiToken> listApiTokens(String after, Integer limit, String q) throws ApiException
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return (optional, default to 20)q
- Finds a token that matches the name or clientName. (optional)ApiException
- if fails to make API callpublic List<ApiToken> listApiTokens(String after, Integer limit, String q, Map<String,String> additionalHeaders) throws ApiException
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return (optional, default to 20)q
- Finds a token that matches the name or clientName. (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeApiToken(String apiTokenId) throws ApiException
apiTokenId
- id of the API Token (required)ApiException
- if fails to make API callpublic void revokeApiToken(String apiTokenId, Map<String,String> additionalHeaders) throws ApiException
apiTokenId
- id of the API Token (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeCurrentApiToken() throws ApiException
ApiException
- if fails to make API callpublic void revokeCurrentApiToken(Map<String,String> additionalHeaders) throws ApiException
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.