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-01-30T09:30:33.152574-06:00[America/Chicago]")
public class ApplicationTokensApi
extends Object
-
Constructor Summary
Constructors -
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.ObjectMapperlistOAuth2TokensForApplication(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 applicationvoidrevokeOAuth2TokenForApplication(String appId, String tokenId) Revoke an OAuth 2.0 Token Revokes the specified token for the specified applicationvoidRevoke an OAuth 2.0 Token Revokes the specified token for the specified applicationvoidRevoke all OAuth 2.0 Tokens Revokes all tokens for the specified applicationvoidrevokeOAuth2TokensForApplication(String appId, Map<String, String> additionalHeaders) Revoke all OAuth 2.0 Tokens Revokes all tokens for the specified applicationvoidsetApiClient(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()
-