Package com.okta.sdk.helper
Class PolicyApiHelper<T extends Policy>
java.lang.Object
com.okta.sdk.resource.api.PolicyApi
com.okta.sdk.helper.PolicyApiHelper<T>
Helper class that enables working with sub-typed
Policy
references.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Policy>
TcreatePolicyOfType
(Class<T> classType, Policy policy, Boolean activate) <T extends PolicyRule>
TcreatePolicyRuleOfType
(Class<T> classType, String policyId, PolicyRule policyRule) Methods inherited from class com.okta.sdk.resource.api.PolicyApi
activatePolicy, activatePolicy, activatePolicyRule, activatePolicyRule, clonePolicy, clonePolicy, createPolicy, createPolicy, createPolicyRule, createPolicyRule, deactivatePolicy, deactivatePolicy, deactivatePolicyRule, deactivatePolicyRule, deletePolicy, deletePolicy, deletePolicyResourceMapping, deletePolicyResourceMapping, deletePolicyRule, deletePolicyRule, getApiClient, getObjectMapper, getPolicy, getPolicy, getPolicyMapping, getPolicyMapping, getPolicyRule, getPolicyRule, listPolicies, listPolicies, listPolicyApps, listPolicyApps, listPolicyMappings, listPolicyMappings, listPolicyRules, listPolicyRules, mapResourceToPolicy, mapResourceToPolicy, replacePolicy, replacePolicy, replacePolicyRule, replacePolicyRule, setApiClient
-
Constructor Details
-
PolicyApiHelper
-
PolicyApiHelper
-
-
Method Details
-
createPolicyOfType
public <T extends Policy> T createPolicyOfType(Class<T> classType, Policy policy, Boolean activate) throws ApiException - Throws:
ApiException
-
createPolicyRuleOfType
public <T extends PolicyRule> T createPolicyRuleOfType(Class<T> classType, String policyId, PolicyRule policyRule) throws ApiException - Throws:
ApiException
-