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
ArtifactId
Gets the artifact identifier that was verified or evaluated.
public string ArtifactId { get; }
Property Value
ArtifactType
Gets the artifact type that was verified or evaluated.
public string ArtifactType { get; }
Property Value
Category
Gets the provider-neutral verification category.
public SignatureVerificationCategory Category { get; }
Property Value
FailureCode
Gets the provider-neutral failure code, when verification did not succeed.
public string? FailureCode { get; }
Property Value
FailureMessage
Gets the provider-neutral failure message, when verification did not succeed.
public string? FailureMessage { get; }
Property Value
HashAlgorithm
Gets the hash algorithm expected for verification.
public string HashAlgorithm { get; }
Property Value
IsVerified
Gets a value indicating whether verification succeeded.
public bool IsVerified { get; }
Property Value
KeyId
Gets the signing key identifier, when supplied.
public string? KeyId { get; }
Property Value
KeyVersion
Gets the signing key version, when supplied.
public string? KeyVersion { get; }
Property Value
Provider
Gets the signing provider descriptor, when supplied.
public string? Provider { get; }
Property Value
SafeMetadata
Gets safe-to-log verification metadata. Signature values and secrets are never included.
public IReadOnlyDictionary<string, string> SafeMetadata { get; }
Property Value
ShouldAllow
Gets a value indicating whether the policy selected the allow action.
public bool ShouldAllow { get; }
Property Value
SignatureAlgorithm
Gets the signature algorithm descriptor, when supplied.
public string? SignatureAlgorithm { get; }
Property Value
SigningHash
Gets the signing hash expected for verification.
public string SigningHash { get; }
Property Value
Status
Gets the provider-neutral verification status.
public string Status { get; }
Property Value
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
artifactSignedGovernanceArtifact<TArtifact>verificationResultSignatureVerificationResultoptionsVerificationPolicyOptions
Returns
Type Parameters
TArtifact