Class TrustedOriginApi

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

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

    • TrustedOriginApi

      public TrustedOriginApi()
    • TrustedOriginApi

      public TrustedOriginApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • activateTrustedOrigin

      public TrustedOrigin activateTrustedOrigin(String trustedOriginId) throws ApiException
      Activate a Trusted Origin Activates a trusted origin
      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 ApiException
      Activate a Trusted Origin Activates 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
    • createTrustedOrigin

      public TrustedOrigin createTrustedOrigin(TrustedOrigin trustedOrigin) throws ApiException
      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(TrustedOrigin trustedOrigin, Map<String,String> additionalHeaders) throws ApiException
      Create 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

      public TrustedOrigin deactivateTrustedOrigin(String trustedOriginId) throws ApiException
      Deactivate a Trusted Origin Deactivates a trusted origin
      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 ApiException
      Deactivate a Trusted Origin Deactivates 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
    • deleteTrustedOrigin

      public void deleteTrustedOrigin(String trustedOriginId) throws ApiException
      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 ApiException
      Delete 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

      public TrustedOrigin getTrustedOrigin(String trustedOriginId) throws ApiException
      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 ApiException
      Retrieve 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 - (optional)
      filter - (optional)
      after - (optional)
      limit - (optional, default to -1)
      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 ApiException
      List all Trusted Origins Lists all trusted origins
      Parameters:
      q - (optional)
      filter - (optional)
      after - (optional)
      limit - (optional, default to -1)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<TrustedOrigin>
      Throws:
      ApiException - if fails to make API call
    • 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 ApiException
      Replace 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()