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-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class ApplicationPoliciesApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignApplicationPolicy
(String appId, String policyId) Assign an Authentication Policy Assigns an app to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`.void
Assign an Authentication Policy Assigns an app 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 Authentication Policy Assigns an app to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`. If the app 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 with merged results.- Parameters:
appId
- Application ID (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 Authentication Policy Assigns an app to an [authentication policy](/openapi/okta-management/management/tag/Policy/), identified by `policyId`. If the app 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 with merged results.- Parameters:
appId
- Application ID (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()
-