Class PackageTrustDecision
Namespace: Cephalon.Engine.Trust
Assembly: Cephalon.Engine.dll
Describes the trust outcome for a package after package metadata, signature verification, and host trust rules have been evaluated.
public sealed record PackageTrustDecision : IEquatable<PackageTrustDecision>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<PackageTrustDecision>
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”PackageTrustDecision(string, string, string, string?, string?, string?, string?, IReadOnlyList<PackageSignatureTrustDecision>, bool, string, bool, string)
Section titled “ PackageTrustDecision(string, string, string, string?, string?, string?, string?, IReadOnlyList<PackageSignatureTrustDecision>, bool, string, bool, string)”Describes the trust outcome for a package after package metadata, signature verification, and host trust rules have been evaluated.
public PackageTrustDecision(string PackageId, string AssemblyName, string Path, string? PublisherId, string? SignatureKeyId, string? SignatureFingerprint, string? SignatureCertificateThumbprint, IReadOnlyList<PackageSignatureTrustDecision> Signatures, bool IsSignatureVerified, string SignatureVerificationReason, bool IsTrusted, string Reason)Parameters
Section titled “Parameters”PackageId string
The stable package identifier.
AssemblyName string
The resolved assembly name for the package.
Path string
The resolved assembly path used for the package load.
PublisherId string?
The declared publisher identifier, when available.
SignatureKeyId string?
The primary signature key identifier, when available.
SignatureFingerprint string?
The primary signature fingerprint, when available.
SignatureCertificateThumbprint string?
The primary signing certificate thumbprint used during verification, when certificate-backed trust was used.
Signatures IReadOnlyList<PackageSignatureTrustDecision>
The per-signer trust and verification details declared by the package.
IsSignatureVerified bool
Whether at least one declared signature verified successfully.
SignatureVerificationReason string
The aggregate signature verification outcome summary.
IsTrusted bool
Whether the package is trusted by the active runtime trust policy.
Reason string
The reason the package was trusted or rejected.
Properties
Section titled “Properties”AssemblyName
Section titled “ AssemblyName”The resolved assembly name for the package.
public string AssemblyName { get; init; }Property Value
Section titled “Property Value”IsSignatureVerified
Section titled “ IsSignatureVerified”Whether at least one declared signature verified successfully.
public bool IsSignatureVerified { get; init; }Property Value
Section titled “Property Value”IsTrusted
Section titled “ IsTrusted”Whether the package is trusted by the active runtime trust policy.
public bool IsTrusted { get; init; }Property Value
Section titled “Property Value”PackageId
Section titled “ PackageId”The stable package identifier.
public string PackageId { get; init; }Property Value
Section titled “Property Value”The resolved assembly path used for the package load.
public string Path { get; init; }Property Value
Section titled “Property Value”PublisherId
Section titled “ PublisherId”The declared publisher identifier, when available.
public string? PublisherId { get; init; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”The reason the package was trusted or rejected.
public string Reason { get; init; }Property Value
Section titled “Property Value”SignatureCertificateThumbprint
Section titled “ SignatureCertificateThumbprint”The primary signing certificate thumbprint used during verification, when certificate-backed trust was used.
public string? SignatureCertificateThumbprint { get; init; }Property Value
Section titled “Property Value”SignatureFingerprint
Section titled “ SignatureFingerprint”The primary signature fingerprint, when available.
public string? SignatureFingerprint { get; init; }Property Value
Section titled “Property Value”SignatureKeyId
Section titled “ SignatureKeyId”The primary signature key identifier, when available.
public string? SignatureKeyId { get; init; }Property Value
Section titled “Property Value”SignatureVerificationReason
Section titled “ SignatureVerificationReason”The aggregate signature verification outcome summary.
public string SignatureVerificationReason { get; init; }Property Value
Section titled “Property Value”Signatures
Section titled “ Signatures”The per-signer trust and verification details declared by the package.
public IReadOnlyList<PackageSignatureTrustDecision> Signatures { get; init; }