Table of Contents

Class RekorClient

Namespace
Sigstore.Rekor
Assembly
Sigstore.dll

Rekor transparency log client using the v1 REST API.

public sealed class RekorClient : IRekorClient
Inheritance
RekorClient
Implements
Inherited Members

Constructors

RekorClient(HttpClient, Uri, string)

Creates a Rekor client.

public RekorClient(HttpClient httpClient, Uri baseUrl, string hashedRekordVersion = "0.0.1")

Parameters

httpClient HttpClient
baseUrl Uri
hashedRekordVersion string

Fields

HttpClientName

Named HttpClient key used for DI registration.

public const string HttpClientName = "Sigstore.Rekor"

Field Value

string

Methods

AddDsseEntryAsync(byte[], X509Certificate2, CancellationToken)

Uploads a DSSE entry to Rekor and returns the TransparencyLogEntry containing an inclusion promise (SET).

public Task<TransparencyLogEntry> AddDsseEntryAsync(byte[] envelopeJson, X509Certificate2 leafCert, CancellationToken cancellationToken)

Parameters

envelopeJson byte[]
leafCert X509Certificate2
cancellationToken CancellationToken

Returns

Task<TransparencyLogEntry>

AddHashedRekordEntryAsync(byte[], byte[], X509Certificate2, CancellationToken)

Uploads a hashedrekord entry to Rekor and returns the TransparencyLogEntry containing an inclusion promise (SET).

public Task<TransparencyLogEntry> AddHashedRekordEntryAsync(byte[] artifactDigest, byte[] signature, X509Certificate2 leafCert, CancellationToken cancellationToken)

Parameters

artifactDigest byte[]
signature byte[]
leafCert X509Certificate2
cancellationToken CancellationToken

Returns

Task<TransparencyLogEntry>