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-03-29T16:47:02.065887-05:00[America/Chicago]",
comments="Generator version: 7.4.0")
public class ApplicationTokensApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOAuth2TokenForApplication
(String appId, String tokenId, String expand) Retrieve an OAuth 2.0 Token Retrieves a token for the specified applicationgetOAuth2TokenForApplication
(String appId, String tokenId, String expand, Map<String, String> additionalHeaders) Retrieve an OAuth 2.0 Token Retrieves a token for the specified applicationprotected static com.fasterxml.jackson.databind.ObjectMapper
listOAuth2TokensForApplication
(String appId, String expand, String after, Integer limit) List all OAuth 2.0 Tokens Lists all tokens for the applicationlistOAuth2TokensForApplication
(String appId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) List all OAuth 2.0 Tokens Lists all tokens for the applicationvoid
revokeOAuth2TokenForApplication
(String appId, String tokenId) Revoke an OAuth 2.0 Token Revokes the specified token for the specified applicationvoid
Revoke an OAuth 2.0 Token Revokes the specified token for the specified applicationvoid
Revoke all OAuth 2.0 Tokens Revokes all tokens for the specified applicationvoid
revokeOAuth2TokensForApplication
(String appId, Map<String, String> additionalHeaders) Revoke all OAuth 2.0 Tokens Revokes all tokens for the specified applicationvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationTokensApi
public ApplicationTokensApi() -
ApplicationTokensApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getOAuth2TokenForApplication
public OAuth2Token getOAuth2TokenForApplication(String appId, String tokenId, String expand) throws ApiException Retrieve an OAuth 2.0 Token Retrieves a token for the specified application- Parameters:
appId
- ID of the Application (required)tokenId
- `id` of Token (required)expand
- (optional)- Returns:
- OAuth2Token
- Throws:
ApiException
- if fails to make API call
-
getOAuth2TokenForApplication
public OAuth2Token getOAuth2TokenForApplication(String appId, String tokenId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an OAuth 2.0 Token Retrieves a token for the specified application- Parameters:
appId
- ID of the Application (required)tokenId
- `id` of Token (required)expand
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2Token
- Throws:
ApiException
- if fails to make API call
-
listOAuth2TokensForApplication
public List<OAuth2Token> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit) throws ApiException List all OAuth 2.0 Tokens Lists all tokens for the application- Parameters:
appId
- ID of the Application (required)expand
- (optional)after
- (optional)limit
- (optional, default to 20)- Returns:
- List<OAuth2Token>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2TokensForApplication
public List<OAuth2Token> listOAuth2TokensForApplication(String appId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all OAuth 2.0 Tokens Lists all tokens for the application- Parameters:
appId
- ID of the Application (required)expand
- (optional)after
- (optional)limit
- (optional, default to 20)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2Token>
- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokenForApplication
Revoke an OAuth 2.0 Token Revokes the specified token for the specified application- Parameters:
appId
- ID of the Application (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 OAuth 2.0 Token Revokes the specified token for the specified application- Parameters:
appId
- ID of the Application (required)tokenId
- `id` of Token (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokensForApplication
Revoke all OAuth 2.0 Tokens Revokes all tokens for the specified application- Parameters:
appId
- ID of the Application (required)- Throws:
ApiException
- if fails to make API call
-
revokeOAuth2TokensForApplication
public void revokeOAuth2TokensForApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke all OAuth 2.0 Tokens Revokes all tokens for the specified application- Parameters:
appId
- ID of the Application (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-