Package com.okta.sdk.resource.api
Class TrustedOriginApi
java.lang.Object
com.okta.sdk.resource.api.TrustedOriginApi
@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 TrustedOriginApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateTrustedOrigin(String trustedOriginId) Activate a trusted origin Activates a trusted origin.activateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) Activate a trusted origin Activates a trusted origin.createTrustedOrigin(TrustedOriginWrite trustedOrigin) Create a trusted origin Creates a trusted origincreateTrustedOrigin(TrustedOriginWrite trustedOrigin, Map<String, String> additionalHeaders) Create a trusted origin Creates a trusted origindeactivateTrustedOrigin(String trustedOriginId) Deactivate a trusted origin Deactivates a trusted origin.deactivateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) Deactivate a trusted origin Deactivates a trusted origin.voiddeleteTrustedOrigin(String trustedOriginId) Delete a trusted origin Deletes a trusted originvoiddeleteTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) Delete a trusted origin Deletes a trusted originprotected static com.fasterxml.jackson.databind.ObjectMappergetTrustedOrigin(String trustedOriginId) Retrieve a trusted origin Retrieves a trusted origingetTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) Retrieve a trusted origin Retrieves a trusted originlistTrustedOrigins(String q, String filter, String after, Integer limit) List all trusted origins Lists all trusted originslistTrustedOrigins(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) List all trusted origins Lists all trusted originslistTrustedOriginsPaged(String q, String filter, String after, Integer limit) List all trusted origins (Paginated) Lists all trusted origins This method returns a lazy, paginated iterable that automatically handles pagination.listTrustedOriginsPaged(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) List all trusted origins (Paginated with additional headers) Lists all trusted origins This method returns a lazy, paginated iterable that automatically handles pagination.replaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin) Replace a trusted origin Replaces a trusted originreplaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin, Map<String, String> additionalHeaders) Replace a trusted origin Replaces a trusted originvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
TrustedOriginApi
public TrustedOriginApi() -
TrustedOriginApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateTrustedOrigin
Activate a trusted origin Activates a trusted origin. Sets the `status` to `ACTIVE`.- Parameters:
trustedOriginId- `id` of the trusted origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
activateTrustedOrigin
public TrustedOrigin activateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a trusted origin Activates a trusted origin. Sets the `status` to `ACTIVE`.- Parameters:
trustedOriginId- `id` of the trusted origin (required)additionalHeaders- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
createTrustedOrigin
Create a trusted origin Creates a trusted origin- Parameters:
trustedOrigin- (required)- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
createTrustedOrigin
public TrustedOrigin createTrustedOrigin(TrustedOriginWrite trustedOrigin, Map<String, String> additionalHeaders) throws ApiExceptionCreate a trusted origin Creates a trusted origin- Parameters:
trustedOrigin- (required)additionalHeaders- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
deactivateTrustedOrigin
Deactivate a trusted origin Deactivates a trusted origin. Sets the `status` to `INACTIVE`.- Parameters:
trustedOriginId- `id` of the trusted origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
deactivateTrustedOrigin
public TrustedOrigin deactivateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a trusted origin Deactivates a trusted origin. Sets the `status` to `INACTIVE`.- Parameters:
trustedOriginId- `id` of the trusted origin (required)additionalHeaders- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
deleteTrustedOrigin
Delete a trusted origin Deletes a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)- Throws:
ApiException- if fails to make API call
-
deleteTrustedOrigin
public void deleteTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a trusted origin Deletes a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getTrustedOrigin
Retrieve a trusted origin Retrieves a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
getTrustedOrigin
public TrustedOrigin getTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a trusted origin Retrieves a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)additionalHeaders- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
listTrustedOrigins
public List<TrustedOrigin> listTrustedOrigins(String q, String filter, String after, Integer limit) throws ApiException List all trusted origins Lists all trusted origins- Parameters:
q- A search string that prefix matches against the `name` and `origin` (optional)filter- [Filter](https://developer.okta.com/docs/api/#filter) trusted origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after- After cursor provided by a prior request (optional)limit- Specifies the number of results (optional, default to 20)- Returns:
- List<TrustedOrigin>
- Throws:
ApiException- if fails to make API call
-
listTrustedOrigins
public List<TrustedOrigin> listTrustedOrigins(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all trusted origins Lists all trusted origins- Parameters:
q- A search string that prefix matches against the `name` and `origin` (optional)filter- [Filter](https://developer.okta.com/docs/api/#filter) trusted origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after- After cursor provided by a prior request (optional)limit- Specifies the number of results (optional, default to 20)additionalHeaders- additionalHeaders for this call- Returns:
- List<TrustedOrigin>
- Throws:
ApiException- if fails to make API call
-
listTrustedOriginsPaged
public Iterable<TrustedOrigin> listTrustedOriginsPaged(String q, String filter, String after, Integer limit) List all trusted origins (Paginated) Lists all trusted origins 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:
q- A search string that prefix matches against the `name` and `origin` (optional)filter- [Filter](https://developer.okta.com/docs/api/#filter) trusted origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after- After cursor provided by a prior request (optional)limit- Specifies the number of results (optional, default to 20)- Returns:
- Iterable<TrustedOrigin> lazy iterable over all pages
-
listTrustedOriginsPaged
public Iterable<TrustedOrigin> listTrustedOriginsPaged(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) List all trusted origins (Paginated with additional headers) Lists all trusted origins This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
q- A search string that prefix matches against the `name` and `origin` (optional)filter- [Filter](https://developer.okta.com/docs/api/#filter) trusted origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after- After cursor provided by a prior request (optional)limit- Specifies the number of results (optional, default to 20)additionalHeaders- additional headers for this call- Returns:
- Iterable<TrustedOrigin> lazy iterable over all pages
-
replaceTrustedOrigin
public TrustedOrigin replaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin) throws ApiException Replace a trusted origin Replaces a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)trustedOrigin- (required)- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
replaceTrustedOrigin
public TrustedOrigin replaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin, Map<String, String> additionalHeaders) throws ApiExceptionReplace a trusted origin Replaces a trusted origin- Parameters:
trustedOriginId- `id` of the trusted origin (required)trustedOrigin- (required)additionalHeaders- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-