Class VerificationPolicyContext
- Namespace
- AsiBackbone.Core.Signing
- Assembly
- AsiBackbone.Core.dll
Provides host expectations used while evaluating signature verification policy.
public sealed class VerificationPolicyContext
- Inheritance
-
VerificationPolicyContext
- Inherited Members
Remarks
The context is provider-neutral. It can carry expected key references, policy identifiers, and request metadata without resolving provider-specific keys in Core.
Properties
Default
Gets a context with no additional host expectations.
public static VerificationPolicyContext Default { get; }
Property Value
ExpectedKeyId
Gets the expected signing key identifier, when required by host policy.
public string? ExpectedKeyId { get; }
Property Value
ExpectedKeyVersion
Gets the expected signing key version, when required by host policy.
public string? ExpectedKeyVersion { get; }
Property Value
ExpectedPolicyHash
Gets the expected policy hash, when the signed metadata is expected to carry one.
public string? ExpectedPolicyHash { get; }
Property Value
ExpectedPolicyVersion
Gets the expected policy version, when the signed metadata is expected to carry one.
public string? ExpectedPolicyVersion { get; }
Property Value
HasMetadata
Gets a value indicating whether additional metadata is present.
public bool HasMetadata { get; }
Property Value
Metadata
Gets additional provider-neutral verification request metadata.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
Purpose
Gets the host-defined verification purpose.
public string? Purpose { get; }
Property Value
RequiredHashAlgorithm
Gets the required hash algorithm descriptor, when required by host policy.
public string? RequiredHashAlgorithm { get; }
Property Value
RequiredProvider
Gets the required signing provider descriptor, when required by host policy.
public string? RequiredProvider { get; }
Property Value
Methods
Create(string?, string?, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?)
Creates a provider-neutral verification policy context.
public static VerificationPolicyContext Create(string? purpose = null, string? expectedKeyId = null, string? expectedKeyVersion = null, string? expectedPolicyVersion = null, string? expectedPolicyHash = null, string? requiredProvider = null, string? requiredHashAlgorithm = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
purposestringexpectedKeyIdstringexpectedKeyVersionstringexpectedPolicyVersionstringexpectedPolicyHashstringrequiredProviderstringrequiredHashAlgorithmstringmetadataIReadOnlyDictionary<string, string>