Package com.cedarpolicy.model.slice
Class Policy
java.lang.Object
com.cedarpolicy.model.slice.Policy
Policies in the Cedar language.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
policySrc
Policy string. -
policyID
Policy ID.
-
-
Constructor Details
-
Policy
Creates a Cedar policy object.- Parameters:
policy- String containing the source code of a Cedar policy in the Cedar policy language.policyID- The id of this policy. Must be unique. Note: We may flip the order of the arguments here for idiomatic reasons.- Throws:
NullPointerException
-
-
Method Details