Class AuthorizationServerClaimsApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class AuthorizationServerClaimsApi extends Object
  • Constructor Details

    • AuthorizationServerClaimsApi

      public AuthorizationServerClaimsApi()
    • AuthorizationServerClaimsApi

      public AuthorizationServerClaimsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createOAuth2Claim

      public OAuth2Claim createOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim) throws ApiException
      Create a custom token claim Creates a custom token Claim for a custom authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      oAuth2Claim - (required)
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • createOAuth2Claim

      public OAuth2Claim createOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim, Map<String,String> additionalHeaders) throws ApiException
      Create a custom token claim Creates a custom token Claim for a custom authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      oAuth2Claim - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • deleteOAuth2Claim

      public void deleteOAuth2Claim(String authServerId, String claimId) throws ApiException
      Delete a custom token claim Deletes a custom token Claim specified by the `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      Throws:
      ApiException - if fails to make API call
    • deleteOAuth2Claim

      public void deleteOAuth2Claim(String authServerId, String claimId, Map<String,String> additionalHeaders) throws ApiException
      Delete a custom token claim Deletes a custom token Claim specified by the `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getOAuth2Claim

      public OAuth2Claim getOAuth2Claim(String authServerId, String claimId) throws ApiException
      Retrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • getOAuth2Claim

      public OAuth2Claim getOAuth2Claim(String authServerId, String claimId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • listOAuth2Claims

      public List<OAuth2Claim> listOAuth2Claims(String authServerId) throws ApiException
      List all custom token claims Lists all custom token Claims defined for a specified custom authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Returns:
      List<OAuth2Claim>
      Throws:
      ApiException - if fails to make API call
    • listOAuth2Claims

      public List<OAuth2Claim> listOAuth2Claims(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      List all custom token claims Lists all custom token Claims defined for a specified custom authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<OAuth2Claim>
      Throws:
      ApiException - if fails to make API call
    • listOAuth2ClaimsPaged

      public Iterable<OAuth2Claim> listOAuth2ClaimsPaged(String authServerId)
      List all custom token claims (Paginated) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Returns:
      Iterable<OAuth2Claim> lazy iterable over all pages
    • listOAuth2ClaimsPaged

      public Iterable<OAuth2Claim> listOAuth2ClaimsPaged(String authServerId, Map<String,String> additionalHeaders)
      List all custom token claims (Paginated with additional headers) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<OAuth2Claim> lazy iterable over all pages
    • replaceOAuth2Claim

      public OAuth2Claim replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim) throws ApiException
      Replace a custom token claim Replaces a custom token Claim specified by the `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      oAuth2Claim - (required)
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • replaceOAuth2Claim

      public OAuth2Claim replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim, Map<String,String> additionalHeaders) throws ApiException
      Replace a custom token claim Replaces a custom token Claim specified by the `claimId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      claimId - `id` of Claim (required)
      oAuth2Claim - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      OAuth2Claim
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()