Package com.okta.sdk.resource.policy
Interface Policy
-
- All Superinterfaces:
Deletable
,ExtensibleResource
,java.util.Map<java.lang.String,java.lang.Object>
,PropertyRetriever
,Resource
- All Known Subinterfaces:
AccessPolicy
,IdentityProviderPolicy
,OAuthAuthorizationPolicy
,OktaSignOnPolicy
,PasswordPolicy
,ProfileEnrollmentPolicy
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00") public interface Policy extends ExtensibleResource, Deletable
Policy
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Policy.StatusEnum
Enum status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate()
Activates a policy.PolicyRule
createRule(PolicyRule policyRule)
Creates a policy rule.void
deactivate()
Deactivates a policy.void
delete()
Removes a policy.PolicyRuleConditions
getConditions()
java.util.Date
getCreated()
java.lang.String
getDescription()
java.util.Map<java.lang.String,java.lang.Object>
getEmbedded()
java.lang.String
getId()
java.util.Date
getLastUpdated()
java.util.Map<java.lang.String,java.lang.Object>
getLinks()
java.lang.String
getName()
PolicyRule
getPolicyRule(java.lang.String ruleId)
Gets a policy rule.java.lang.Integer
getPriority()
Policy.StatusEnum
getStatus()
java.lang.Boolean
getSystem()
PolicyType
getType()
PolicyRuleList
listPolicyRules()
Enumerates all policy rules.Policy
setConditions(PolicyRuleConditions conditions)
Policy
setDescription(java.lang.String description)
Policy
setName(java.lang.String name)
Policy
setPriority(java.lang.Integer priority)
Policy
setStatus(Policy.StatusEnum status)
Policy
setSystem(java.lang.Boolean system)
Policy
setType(PolicyType type)
Policy
update()
Updates a policy.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface com.okta.sdk.resource.PropertyRetriever
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
-
Methods inherited from interface com.okta.sdk.resource.Resource
getResourceHref, setResourceHref
-
-
-
-
Method Detail
-
getEmbedded
java.util.Map<java.lang.String,java.lang.Object> getEmbedded()
-
getLinks
java.util.Map<java.lang.String,java.lang.Object> getLinks()
-
getConditions
PolicyRuleConditions getConditions()
-
setConditions
Policy setConditions(PolicyRuleConditions conditions)
-
getCreated
java.util.Date getCreated()
-
getDescription
java.lang.String getDescription()
-
setDescription
Policy setDescription(java.lang.String description)
-
getId
java.lang.String getId()
-
getLastUpdated
java.util.Date getLastUpdated()
-
getName
java.lang.String getName()
-
setName
Policy setName(java.lang.String name)
-
getPriority
java.lang.Integer getPriority()
-
setPriority
Policy setPriority(java.lang.Integer priority)
-
getStatus
Policy.StatusEnum getStatus()
-
setStatus
Policy setStatus(Policy.StatusEnum status)
-
getSystem
java.lang.Boolean getSystem()
-
setSystem
Policy setSystem(java.lang.Boolean system)
-
getType
PolicyType getType()
-
setType
Policy setType(PolicyType type)
-
createRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/rules") PolicyRule createRule(PolicyRule policyRule)
Creates a policy rule.- Parameters:
policyRule
- (required)- Returns:
- PolicyRule
-
deactivate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate") void deactivate()
Deactivates a policy.
-
update
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="PUT - /api/v1/policies/{policyId}") Policy update()
Updates a policy.- Returns:
- Policy
-
delete
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="DELETE - /api/v1/policies/{policyId}") void delete()
Removes a policy.
-
activate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/activate") void activate()
Activates a policy.
-
listPolicyRules
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="GET - /api/v1/policies/{policyId}/rules") PolicyRuleList listPolicyRules()
Enumerates all policy rules.- Returns:
- PolicyRuleList
-
getPolicyRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}") PolicyRule getPolicyRule(java.lang.String ruleId)
Gets a policy rule.- Parameters:
ruleId
- (required)- Returns:
- PolicyRule
-
-