Table of Contents

Class CedarUtilities

Namespace
CedarDotNet
Assembly
CedarDotNet.dll

Additional Cedar utilities which aren't directly part of the FFI.

public static class CedarUtilities
Inheritance
CedarUtilities
Inherited Members

Methods

LoadPolicySet(string)

Loads a policy set from the given text.

public static IReadOnlyCollection<string> LoadPolicySet(string text)

Parameters

text string

The policies text.

Returns

IReadOnlyCollection<string>

The policy collection.

PolicyFormatJsonToText(string)

Converts a policy from JSON to text grammar.

public static string PolicyFormatJsonToText(string policyJson)

Parameters

policyJson string

The policy JSON.

Returns

string

The policy text.

PolicyFormatTextToJson(string)

Converts a policy from text to JSON grammar.

public static string PolicyFormatTextToJson(string policyText)

Parameters

policyText string

The policy text.

Returns

string

The policy JSON.