@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-02-10T11:07:35.698-06:00[America/Chicago]") @Component(value="org.openapitools.client.api.ApiTokenApi") 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
|
PagedList |
getApiTokenWithPaginationInfo(String apiTokenId)
Retrieve an API Token's Metadata
Retrieves the metadata for an active API token by id
|
List<ApiToken> |
listApiTokens(String after,
Integer limit,
String q)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
PagedList |
listApiTokensWithPaginationInfo(String after,
Integer limit,
String q)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
void |
revokeApiToken(String apiTokenId)
Revoke an API Token
Revoke an API token by id
|
void |
revokeCurrentApiToken()
Revoke the Current API Token
Revokes the API token provided in the Authorization header
|
void |
setApiClient(ApiClient apiClient) |
public ApiTokenApi()
@Autowired public ApiTokenApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public ApiToken getApiToken(String apiTokenId) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
apiTokenId
- id of the API Token (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList getApiTokenWithPaginationInfo(String apiTokenId) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
apiTokenId
- id of the API Token (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic List<ApiToken> listApiTokens(String after, Integer limit, String q) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
429 - Too Many Requests
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)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList listApiTokensWithPaginationInfo(String after, Integer limit, String q) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
429 - Too Many Requests
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)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void revokeApiToken(String apiTokenId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
apiTokenId
- id of the API Token (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void revokeCurrentApiToken() throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
429 - Too Many Requests
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APICopyright © 2017–2023 Okta. All rights reserved.