CedarJson

data class CedarJson(val value: String) : ContextDefinition

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

Example: {"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }

Constructors

Link copied to clipboard
constructor(value: String)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this ContextDefinition as a ContextMap and retrieves its kotlin.collections.Map value. Throws an exception if the ContextDefinition is not a ContextMap.

Link copied to clipboard

Casts this ContextDefinition as a ContextMap and retrieves its kotlin.collections.Map value. Returns null if the ContextDefinition is not a ContextMap.