Class ApplicationTokensApi

java.lang.Object
com.okta.sdk.resource.api.ApplicationTokensApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T16:46:27.777599-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class ApplicationTokensApi extends Object
  • Constructor Details

    • ApplicationTokensApi

      public ApplicationTokensApi()
    • ApplicationTokensApi

      public ApplicationTokensApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 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)
      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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<OAuth2Token>
      Throws:
      ApiException - if fails to make API call
    • revokeOAuth2TokenForApplication

      public void revokeOAuth2TokenForApplication(String appId, String tokenId) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • revokeOAuth2TokensForApplication

      public void revokeOAuth2TokensForApplication(String appId) throws ApiException
      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 ApiException
      Revoke 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()