Package com.cedarpolicy.model.schema
Class Schema
java.lang.Object
com.cedarpolicy.model.schema.Schema
Represent a schema.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Schema
Build a Schema from a string containing the JSON source for the model. This constructor will fail with an exception if the string does not parse as JSON, but it does not check that the parsed JSON object represents a valid schema.- Parameters:
schemaJson- List of EntityTypes.- Throws:
IOException- When any errors are encountered while parsing the authorization model json string into json node.
-
Schema
public Schema(com.fasterxml.jackson.databind.JsonNode schemaJson) Build a Schema from a json node. This does not check that the parsed JSON object represents a valid schema.- Parameters:
schemaJson- List of EntityTypes.
-
-
Method Details