Table of Contents

Class CanonicalPayloadHash

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

Represents provider-neutral hash metadata for a canonical AsiBackbone payload.

public sealed class CanonicalPayloadHash
Inheritance
CanonicalPayloadHash
Inherited Members

Properties

ArtifactId

Gets the artifact identifier bound into the hashed payload.

public string ArtifactId { get; }

Property Value

string

ArtifactType

Gets the artifact type bound into the hashed payload.

public string ArtifactType { get; }

Property Value

string

CanonicalizationVersion

Gets the canonicalization version used before hashing.

public string CanonicalizationVersion { get; }

Property Value

string

HashAlgorithm

Gets the hash algorithm descriptor.

public string HashAlgorithm { get; }

Property Value

string

HashValue

Gets the lowercase hexadecimal hash value.

public string HashValue { get; }

Property Value

string

PayloadSchemaVersion

Gets the payload schema version bound into the hashed payload.

public string PayloadSchemaVersion { get; }

Property Value

string

Methods

Create(string, string, string, string, string, string)

Creates provider-neutral hash metadata.

public static CanonicalPayloadHash Create(string artifactType, string artifactId, string payloadSchemaVersion, string canonicalizationVersion, string hashAlgorithm, string hashValue)

Parameters

artifactType string
artifactId string
payloadSchemaVersion string
canonicalizationVersion string
hashAlgorithm string
hashValue string

Returns

CanonicalPayloadHash

ToSigningMetadata(IReadOnlyDictionary<string, string>?)

Creates signing metadata that carries the hash and canonical payload descriptors without implying that the artifact is signed.

public SigningMetadata ToSigningMetadata(IReadOnlyDictionary<string, string>? metadata = null)

Parameters

metadata IReadOnlyDictionary<string, string>

Returns

SigningMetadata