Class CaptchaApi

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

@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 CaptchaApi extends Object
  • Constructor Details

    • CaptchaApi

      public CaptchaApi()
    • CaptchaApi

      public CaptchaApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createCaptchaInstance

      public CAPTCHAInstance createCaptchaInstance(CAPTCHAInstance instance) throws ApiException
      Create a CAPTCHA instance Creates a new CAPTCHA instance. Currently, an org can only configure a single CAPTCHA instance.
      Parameters:
      instance - (required)
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • createCaptchaInstance

      public CAPTCHAInstance createCaptchaInstance(CAPTCHAInstance instance, Map<String,String> additionalHeaders) throws ApiException
      Create a CAPTCHA instance Creates a new CAPTCHA instance. Currently, an org can only configure a single CAPTCHA instance.
      Parameters:
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • deleteCaptchaInstance

      public void deleteCaptchaInstance(String captchaId) throws ApiException
      Delete a CAPTCHA instance Deletes a specified CAPTCHA instance > **Note:** If your CAPTCHA instance is still associated with your org, the request fails. You must first update your Org-wide CAPTCHA settings to remove the CAPTCHA instance.
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      Throws:
      ApiException - if fails to make API call
    • deleteCaptchaInstance

      public void deleteCaptchaInstance(String captchaId, Map<String,String> additionalHeaders) throws ApiException
      Delete a CAPTCHA instance Deletes a specified CAPTCHA instance > **Note:** If your CAPTCHA instance is still associated with your org, the request fails. You must first update your Org-wide CAPTCHA settings to remove the CAPTCHA instance.
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • deleteOrgCaptchaSettings

      public void deleteOrgCaptchaSettings() throws ApiException
      Delete the org-wide CAPTCHA settings Deletes the CAPTCHA settings object for your organization
      Throws:
      ApiException - if fails to make API call
    • deleteOrgCaptchaSettings

      public void deleteOrgCaptchaSettings(Map<String,String> additionalHeaders) throws ApiException
      Delete the org-wide CAPTCHA settings Deletes the CAPTCHA settings object for your organization
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getCaptchaInstance

      public CAPTCHAInstance getCaptchaInstance(String captchaId) throws ApiException
      Retrieve a CAPTCHA instance Retrieves the properties of a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • getCaptchaInstance

      public CAPTCHAInstance getCaptchaInstance(String captchaId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a CAPTCHA instance Retrieves the properties of a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • getOrgCaptchaSettings

      public OrgCAPTCHASettings getOrgCaptchaSettings() throws ApiException
      Retrieve the org-wide CAPTCHA settings Retrieves the CAPTCHA settings object for your organization > **Note**: If the current organization hasn't configured CAPTCHA Settings, the request returns an empty object.
      Returns:
      OrgCAPTCHASettings
      Throws:
      ApiException - if fails to make API call
    • getOrgCaptchaSettings

      public OrgCAPTCHASettings getOrgCaptchaSettings(Map<String,String> additionalHeaders) throws ApiException
      Retrieve the org-wide CAPTCHA settings Retrieves the CAPTCHA settings object for your organization > **Note**: If the current organization hasn't configured CAPTCHA Settings, the request returns an empty object.
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      OrgCAPTCHASettings
      Throws:
      ApiException - if fails to make API call
    • listCaptchaInstances

      public List<CAPTCHAInstance> listCaptchaInstances() throws ApiException
      List all CAPTCHA instances Lists all CAPTCHA instances with pagination support. A subset of CAPTCHA instances can be returned that match a supported filter expression or query.
      Returns:
      List<CAPTCHAInstance>
      Throws:
      ApiException - if fails to make API call
    • listCaptchaInstances

      public List<CAPTCHAInstance> listCaptchaInstances(Map<String,String> additionalHeaders) throws ApiException
      List all CAPTCHA instances Lists all CAPTCHA instances with pagination support. A subset of CAPTCHA instances can be returned that match a supported filter expression or query.
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<CAPTCHAInstance>
      Throws:
      ApiException - if fails to make API call
    • listCaptchaInstancesPaged

      public Iterable<CAPTCHAInstance> listCaptchaInstancesPaged()
      List all CAPTCHA instances (Paginated) Lists all CAPTCHA instances with pagination support. A subset of CAPTCHA instances can be returned that match a supported filter expression or query. 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.
      Returns:
      Iterable<CAPTCHAInstance> lazy iterable over all pages
    • listCaptchaInstancesPaged

      public Iterable<CAPTCHAInstance> listCaptchaInstancesPaged(Map<String,String> additionalHeaders)
      List all CAPTCHA instances (Paginated with additional headers) Lists all CAPTCHA instances with pagination support. A subset of CAPTCHA instances can be returned that match a supported filter expression or query. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<CAPTCHAInstance> lazy iterable over all pages
    • replaceCaptchaInstance

      public CAPTCHAInstance replaceCaptchaInstance(String captchaId, CAPTCHAInstance instance) throws ApiException
      Replace a CAPTCHA instance Replaces the properties for a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      instance - (required)
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • replaceCaptchaInstance

      public CAPTCHAInstance replaceCaptchaInstance(String captchaId, CAPTCHAInstance instance, Map<String,String> additionalHeaders) throws ApiException
      Replace a CAPTCHA instance Replaces the properties for a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • replacesOrgCaptchaSettings

      public OrgCAPTCHASettings replacesOrgCaptchaSettings(OrgCAPTCHASettings orgCAPTCHASettings) throws ApiException
      Replace the org-wide CAPTCHA settings Replaces the CAPTCHA settings object for your organization > **Note**: You can disable CAPTCHA for your organization by setting `captchaId` and `enabledPages` to `null`.
      Parameters:
      orgCAPTCHASettings - (required)
      Returns:
      OrgCAPTCHASettings
      Throws:
      ApiException - if fails to make API call
    • replacesOrgCaptchaSettings

      public OrgCAPTCHASettings replacesOrgCaptchaSettings(OrgCAPTCHASettings orgCAPTCHASettings, Map<String,String> additionalHeaders) throws ApiException
      Replace the org-wide CAPTCHA settings Replaces the CAPTCHA settings object for your organization > **Note**: You can disable CAPTCHA for your organization by setting `captchaId` and `enabledPages` to `null`.
      Parameters:
      orgCAPTCHASettings - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      OrgCAPTCHASettings
      Throws:
      ApiException - if fails to make API call
    • updateCaptchaInstance

      public CAPTCHAInstance updateCaptchaInstance(String captchaId, CAPTCHAInstance instance) throws ApiException
      Update a CAPTCHA instance Partially updates the properties of a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      instance - (required)
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • updateCaptchaInstance

      public CAPTCHAInstance updateCaptchaInstance(String captchaId, CAPTCHAInstance instance, Map<String,String> additionalHeaders) throws ApiException
      Update a CAPTCHA instance Partially updates the properties of a specified CAPTCHA instance
      Parameters:
      captchaId - The unique key used to identify your CAPTCHA instance (required)
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CAPTCHAInstance
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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