Package com.okta.sdk.resource.api
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignApplicationPolicy
(String appId, String policyId) Assign an application to a Policy Assigns an application to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`.void
Assign an application to a Policy Assigns an application to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`.protected static com.fasterxml.jackson.databind.ObjectMapper
void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationPoliciesApi
public ApplicationPoliciesApi() -
ApplicationPoliciesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
assignApplicationPolicy
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 ApiExceptionAssign 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()
-