Table of Contents

Class VerificationPolicyOutcome

Namespace
AsiBackbone.Core.Signing
Assembly
AsiBackbone.Core.dll

Represents the host-facing outcome of signature verification policy evaluation.

public sealed class VerificationPolicyOutcome
Inheritance
VerificationPolicyOutcome
Inherited Members

Properties

Action

Gets the host-facing action selected by verification policy.

public VerificationPolicyAction Action { get; }

Property Value

VerificationPolicyAction

ArtifactId

Gets the artifact identifier that was verified or evaluated.

public string ArtifactId { get; }

Property Value

string

ArtifactType

Gets the artifact type that was verified or evaluated.

public string ArtifactType { get; }

Property Value

string

Category

Gets the provider-neutral verification category.

public SignatureVerificationCategory Category { get; }

Property Value

SignatureVerificationCategory

FailureCode

Gets the provider-neutral failure code, when verification did not succeed.

public string? FailureCode { get; }

Property Value

string

FailureMessage

Gets the provider-neutral failure message, when verification did not succeed.

public string? FailureMessage { get; }

Property Value

string

HashAlgorithm

Gets the hash algorithm expected for verification.

public string HashAlgorithm { get; }

Property Value

string

IsVerified

Gets a value indicating whether verification succeeded.

public bool IsVerified { get; }

Property Value

bool

KeyId

Gets the signing key identifier, when supplied.

public string? KeyId { get; }

Property Value

string

KeyVersion

Gets the signing key version, when supplied.

public string? KeyVersion { get; }

Property Value

string

Provider

Gets the signing provider descriptor, when supplied.

public string? Provider { get; }

Property Value

string

SafeMetadata

Gets safe-to-log verification metadata. Signature values and secrets are never included.

public IReadOnlyDictionary<string, string> SafeMetadata { get; }

Property Value

IReadOnlyDictionary<string, string>

ShouldAllow

Gets a value indicating whether the policy selected the allow action.

public bool ShouldAllow { get; }

Property Value

bool

SignatureAlgorithm

Gets the signature algorithm descriptor, when supplied.

public string? SignatureAlgorithm { get; }

Property Value

string

SigningHash

Gets the signing hash expected for verification.

public string SigningHash { get; }

Property Value

string

Status

Gets the provider-neutral verification status.

public string Status { get; }

Property Value

string

Methods

Create<TArtifact>(SignedGovernanceArtifact<TArtifact>, SignatureVerificationResult, VerificationPolicyOptions?)

Creates a verification policy outcome.

public static VerificationPolicyOutcome Create<TArtifact>(SignedGovernanceArtifact<TArtifact> artifact, SignatureVerificationResult verificationResult, VerificationPolicyOptions? options = null)

Parameters

artifact SignedGovernanceArtifact<TArtifact>
verificationResult SignatureVerificationResult
options VerificationPolicyOptions

Returns

VerificationPolicyOutcome

Type Parameters

TArtifact