@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-10-28T09:54:00.189-05:00[America/Chicago]")
@Component(value="org.openapitools.client.api.ApiTokenApi")
public class ApiTokenApi
extends java.lang.Object
Constructor and Description |
---|
ApiTokenApi() |
ApiTokenApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
ApiToken |
getApiToken(java.lang.String apiTokenId)
Retrieve an API Token's Metadata
Retrieves the metadata for an active API token by id
|
PagedList |
getApiTokenWithPaginationInfo(java.lang.String apiTokenId)
Retrieve an API Token's Metadata
Retrieves the metadata for an active API token by id
|
java.util.List<ApiToken> |
listApiTokens(java.lang.String after,
java.lang.Integer limit,
java.lang.String q)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
PagedList |
listApiTokensWithPaginationInfo(java.lang.String after,
java.lang.Integer limit,
java.lang.String q)
List all API Token Metadata
Lists all the metadata of the active API tokens
|
void |
revokeApiToken(java.lang.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(java.lang.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(java.lang.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 java.util.List<ApiToken> listApiTokens(java.lang.String after, java.lang.Integer limit, java.lang.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(java.lang.String after, java.lang.Integer limit, java.lang.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(java.lang.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-2022 Okta. All Rights Reserved.