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
ArtifactType
Gets the artifact type bound into the hashed payload.
public string ArtifactType { get; }
Property Value
CanonicalizationVersion
Gets the canonicalization version used before hashing.
public string CanonicalizationVersion { get; }
Property Value
HashAlgorithm
Gets the hash algorithm descriptor.
public string HashAlgorithm { get; }
Property Value
HashValue
Gets the lowercase hexadecimal hash value.
public string HashValue { get; }
Property Value
PayloadSchemaVersion
Gets the payload schema version bound into the hashed payload.
public string PayloadSchemaVersion { get; }
Property Value
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
artifactTypestringartifactIdstringpayloadSchemaVersionstringcanonicalizationVersionstringhashAlgorithmstringhashValuestring
Returns
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
metadataIReadOnlyDictionary<string, string>