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>Inheritance
Section titled “Inheritance”object ← CapabilityPolicyDecision
Implements
Section titled “Implements”IEquatable<CapabilityPolicyDecision>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Access
Section titled “ Access”The effective access mode resolved from policy.
public CapabilityAccess Access { get; init; }Property Value
Section titled “Property Value”CapabilityAccess
CapabilityKey
Section titled “ CapabilityKey”The capability key that was evaluated.
public string CapabilityKey { get; init; }Property Value
Section titled “Property Value”IsAllowed
Section titled “ IsAllowed”Whether the capability is allowed under the resolved policy.
public bool IsAllowed { get; init; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”The human-readable reason for the decision.
public string Reason { get; init; }Property Value
Section titled “Property Value”SourceModuleId
Section titled “ SourceModuleId”The module that contributed the capability.
public string SourceModuleId { get; init; }Property Value
Section titled “Property Value”SourcePackageId
Section titled “ SourcePackageId”The package that contributed the capability when one is known.
public string? SourcePackageId { get; init; }Property Value
Section titled “Property Value”SourceTrusted
Section titled “ SourceTrusted”Whether the contributing source is trusted.
public bool SourceTrusted { get; init; }