Package com.okta.sdk.resource.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCaptchaInstance(CAPTCHAInstance instance) Create a CAPTCHA instance Creates a new CAPTCHA instance.createCaptchaInstance(CAPTCHAInstance instance, Map<String, String> additionalHeaders) Create a CAPTCHA instance Creates a new CAPTCHA instance.voiddeleteCaptchaInstance(String captchaId) Delete a CAPTCHA instance Deletes a specified CAPTCHA instance > **Note:** If your CAPTCHA instance is still associated with your org, the request fails.voiddeleteCaptchaInstance(String captchaId, Map<String, String> additionalHeaders) Delete a CAPTCHA instance Deletes a specified CAPTCHA instance > **Note:** If your CAPTCHA instance is still associated with your org, the request fails.voidDelete the org-wide CAPTCHA settings Deletes the CAPTCHA settings object for your organizationvoiddeleteOrgCaptchaSettings(Map<String, String> additionalHeaders) Delete the org-wide CAPTCHA settings Deletes the CAPTCHA settings object for your organizationgetCaptchaInstance(String captchaId) Retrieve a CAPTCHA instance Retrieves the properties of a specified CAPTCHA instancegetCaptchaInstance(String captchaId, Map<String, String> additionalHeaders) Retrieve a CAPTCHA instance Retrieves the properties of a specified CAPTCHA instanceprotected static com.fasterxml.jackson.databind.ObjectMapperRetrieve 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.getOrgCaptchaSettings(Map<String, String> additionalHeaders) 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.List all CAPTCHA instances Lists all CAPTCHA instances with pagination support.listCaptchaInstances(Map<String, String> additionalHeaders) List all CAPTCHA instances Lists all CAPTCHA instances with pagination support.List all CAPTCHA instances (Paginated) Lists all CAPTCHA instances with pagination support.listCaptchaInstancesPaged(Map<String, String> additionalHeaders) List all CAPTCHA instances (Paginated with additional headers) Lists all CAPTCHA instances with pagination support.replaceCaptchaInstance(String captchaId, CAPTCHAInstance instance) Replace a CAPTCHA instance Replaces the properties for a specified CAPTCHA instancereplaceCaptchaInstance(String captchaId, CAPTCHAInstance instance, Map<String, String> additionalHeaders) Replace a CAPTCHA instance Replaces the properties for a specified CAPTCHA instancereplacesOrgCaptchaSettings(OrgCAPTCHASettings orgCAPTCHASettings) 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`.replacesOrgCaptchaSettings(OrgCAPTCHASettings orgCAPTCHASettings, Map<String, String> additionalHeaders) 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`.voidsetApiClient(ApiClient apiClient) updateCaptchaInstance(String captchaId, CAPTCHAInstance instance) Update a CAPTCHA instance Partially updates the properties of a specified CAPTCHA instanceupdateCaptchaInstance(String captchaId, CAPTCHAInstance instance, Map<String, String> additionalHeaders) Update a CAPTCHA instance Partially updates the properties of a specified CAPTCHA instance
-
Constructor Details
-
CaptchaApi
public CaptchaApi() -
CaptchaApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createCaptchaInstance
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 ApiExceptionCreate 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
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 ApiExceptionDelete 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
Delete the org-wide CAPTCHA settings Deletes the CAPTCHA settings object for your organization- Throws:
ApiException- if fails to make API call
-
deleteOrgCaptchaSettings
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
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 ApiExceptionRetrieve 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
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 ApiExceptionRetrieve 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
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 ApiExceptionList 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
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
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 ApiExceptionReplace 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 ApiExceptionReplace 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 ApiExceptionUpdate 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()
-