Class Policy

java.lang.Object
com.cedarpolicy.model.slice.Policy

public class Policy extends Object
Policies in the Cedar language.
  • Field Details

    • policySrc

      public final String policySrc
      Policy string.
    • policyID

      public final String policyID
      Policy ID.
  • Constructor Details

    • Policy

      public Policy(String policy, String policyID) throws NullPointerException
      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