Skip to content

Class CapabilityPolicyDecision

Namespace: Cephalon.Engine.Trust
Assembly: Cephalon.Engine.dll

Describes the evaluated trust decision for a single capability.

public sealed record CapabilityPolicyDecision : IEquatable<CapabilityPolicyDecision>

objectCapabilityPolicyDecision

IEquatable<CapabilityPolicyDecision>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

CapabilityPolicyDecision(string, string, string?, CapabilityAccess, bool, bool, string)

Section titled “ CapabilityPolicyDecision(string, string, string?, CapabilityAccess, bool, bool, string)”

Describes the evaluated trust decision for a single capability.

public CapabilityPolicyDecision(string CapabilityKey, string SourceModuleId, string? SourcePackageId, CapabilityAccess Access, bool SourceTrusted, bool IsAllowed, string Reason)

CapabilityKey string

The capability key that was evaluated.

SourceModuleId string

The module that contributed the capability.

SourcePackageId string?

The package that contributed the capability when one is known.

Access CapabilityAccess

The effective access mode resolved from policy.

SourceTrusted bool

Whether the contributing source is trusted.

IsAllowed bool

Whether the capability is allowed under the resolved policy.

Reason string

The human-readable reason for the decision.

The effective access mode resolved from policy.

public CapabilityAccess Access { get; init; }

CapabilityAccess

The capability key that was evaluated.

public string CapabilityKey { get; init; }

string

Whether the capability is allowed under the resolved policy.

public bool IsAllowed { get; init; }

bool

The human-readable reason for the decision.

public string Reason { get; init; }

string

The module that contributed the capability.

public string SourceModuleId { get; init; }

string

The package that contributed the capability when one is known.

public string? SourcePackageId { get; init; }

string?

Whether the contributing source is trusted.

public bool SourceTrusted { get; init; }

bool