CedarJson

data class CedarJson(val value: String) : EntitiesDefinition

A Cedar JSON string representation of the entities needed to successfully evaluate an authorization request.

Example: {"cedarJson": "[{\"uid\":{\"type\":\"Photo\",\"id\":\"VacationPhoto94.jpg\"},\"attrs\":{\"accessLevel\":\"public\"},\"parents\":[]}]"}

Constructors

Link copied to clipboard
constructor(value: String)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

Casts this EntitiesDefinition as a CedarJson and retrieves its kotlin.String value. Throws an exception if the EntitiesDefinition is not a CedarJson.

Link copied to clipboard

Casts this EntitiesDefinition as a CedarJson and retrieves its kotlin.String value. Returns null if the EntitiesDefinition is not a CedarJson.

Link copied to clipboard

Casts this EntitiesDefinition as a EntityList and retrieves its kotlin.collections.List value. Throws an exception if the EntitiesDefinition is not a EntityList.

Link copied to clipboard

Casts this EntitiesDefinition as a EntityList and retrieves its kotlin.collections.List value. Returns null if the EntitiesDefinition is not a EntityList.