Package com.okta.sdk.resource.api
Class ApplicationTokensApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationTokensApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class ApplicationTokensApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOAuth2TokenForApplication
(String appId, String tokenId, String expand) Retrieve an Application Token Retrieves a refresh token for the specified appgetOAuth2TokenForApplication
(String appId, String tokenId, String expand, Map<String, String> additionalHeaders) Retrieve an Application Token Retrieves a refresh token for the specified appprotected static com.fasterxml.jackson.databind.ObjectMapper
listOAuth2TokensForApplication
(String appId, String expand, String after, Integer limit) List all Application Refresh Tokens Lists all refresh tokens for an app > **Note:** The results are [paginated](/#pagination) according to the `limit` parameter.listOAuth2TokensForApplication
(String appId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) List all Application Refresh Tokens Lists all refresh tokens for an app > **Note:** The results are [paginated](/#pagination) according to the `limit` parameter.void
revokeOAuth2TokenForApplication
(String appId, String tokenId) Revoke an Application Token Revokes the specified token for the specified appvoid
Revoke an Application Token Revokes the specified token for the specified appvoid
Revoke all Application Tokens Revokes all OAuth 2.0 refresh tokens for the specified app.void
revokeOAuth2TokensForApplication
(String appId, Map<String, String> additionalHeaders) Revoke all Application Tokens Revokes all OAuth 2.0 refresh tokens for the specified app.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationTokensApi
public ApplicationTokensApi() -
ApplicationTokensApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getOAuth2TokenForApplication
public OAuth2RefreshToken getOAuth2TokenForApplication(String appId, String tokenId, String expand) throws ApiException Retrieve an Application Token Retrieves a refresh token for the specified app- Parameters:
appId
- Application ID (required)tokenId
- `id` of Token (required)expand
- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)- Returns:
- OAuth2RefreshToken
- Throws:
ApiException
- if fails to make API call
-
getOAuth2TokenForApplication
public OAuth2RefreshToken getOAuth2TokenForApplication(String appId, String tokenId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an Application Token Retrieves a refresh token for the specified app- Parameters:
appId
- Application ID (required)tokenId
- `id` of Token (required)expand
- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2RefreshToken
- Throws:
ApiException
- if fails to make API call
-
listOAuth2TokensForApplication
public List<OAuth2RefreshToken> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit) throws ApiException List all Application Refresh Tokens Lists all refresh tokens for an app > **Note:** The results are [paginated](/#pagination) according to the `limit` parameter. > If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it).- Parameters:
appId
- Application ID (required)expand
- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)after
- Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2TokensForApplication
public List<OAuth2RefreshToken> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all Application Refresh Tokens Lists all refresh tokens for an app > **Note:** The results are [paginated](/#pagination) according to the `limit` parameter. > If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it).- Parameters:
appId
- Application ID (required)expand
- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)after
- Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokenForApplication
Revoke an Application Token Revokes the specified token for the specified app- Parameters:
appId
- Application ID (required)tokenId
- `id` of Token (required)- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokenForApplication
public void revokeOAuth2TokenForApplication(String appId, String tokenId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke an Application Token Revokes the specified token for the specified app- Parameters:
appId
- Application ID (required)tokenId
- `id` of Token (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokensForApplication
Revoke all Application Tokens Revokes all OAuth 2.0 refresh tokens for the specified app. Any access tokens issued with these refresh tokens are also revoked, but access tokens issued without a refresh token aren't affected.- Parameters:
appId
- Application ID (required)- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokensForApplication
public void revokeOAuth2TokensForApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke all Application Tokens Revokes all OAuth 2.0 refresh tokens for the specified app. Any access tokens issued with these refresh tokens are also revoked, but access tokens issued without a refresh token aren't affected.- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-