Class ApplicationPoliciesApi

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

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

    • ApplicationPoliciesApi

      public ApplicationPoliciesApi()
    • ApplicationPoliciesApi

      public ApplicationPoliciesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • assignApplicationPolicy

      public void assignApplicationPolicy(String appId, String policyId) throws ApiException
      Assign an application to a Policy Assigns an application to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`. If the application was previously assigned to another policy, this operation replaces that assignment with the updated policy identified by `policyId`. > **Note:** When you [merge duplicate authentication policies](https://help.okta.com/okta_help.htm?type=oie&id=ext-merge-auth-policies), the policy and mapping CRUD operations may be unavailable during the consolidation. When the consolidation is complete, you receive an email.
      Parameters:
      appId - ID of the Application (required)
      policyId - `id` of the Policy (required)
      Throws:
      ApiException - if fails to make API call
    • assignApplicationPolicy

      public void assignApplicationPolicy(String appId, String policyId, Map<String,String> additionalHeaders) throws ApiException
      Assign an application to a Policy Assigns an application to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`. If the application was previously assigned to another policy, this operation replaces that assignment with the updated policy identified by `policyId`. > **Note:** When you [merge duplicate authentication policies](https://help.okta.com/okta_help.htm?type=oie&id=ext-merge-auth-policies), the policy and mapping CRUD operations may be unavailable during the consolidation. When the consolidation is complete, you receive an email.
      Parameters:
      appId - ID of the Application (required)
      policyId - `id` of the Policy (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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