Class ValidationRequest

java.lang.Object
com.cedarpolicy.model.ValidationRequest

public final class ValidationRequest extends Object
Information passed to Cedar for validation.
  • Constructor Details

    • ValidationRequest

      public ValidationRequest(Schema schema, Map<String,String> policySet)
      Construct a validation request.
      Parameters:
      schema - Schema for the request
      policySet - Map of Policy ID to policy.
    • ValidationRequest

      public ValidationRequest(Schema schema, Set<Policy> policySet)
  • Method Details

    • getSchema

      public Schema getSchema()
      Get the schema.
      Returns:
      The schema.
    • getPolicySet

      public Map<String,String> getPolicySet()
      Get the policy set.
      Returns:
      Map of policy ID to policy.
    • equals

      public boolean equals(Object o)
      Test equality.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hash.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Get readable string representation.
      Overrides:
      toString in class Object