Table of Contents

Class RepositoryPrimarySignature

Namespace
NuGet.Packaging.Signing
Assembly
Chocolatey.NuGet.Packaging.dll
public sealed class RepositoryPrimarySignature : PrimarySignature, IRepositorySignature, ISignature
Inheritance
RepositoryPrimarySignature
Implements
Inherited Members

Constructors

RepositoryPrimarySignature(SignedCms)

public RepositoryPrimarySignature(SignedCms signedCms)

Parameters

signedCms SignedCms

Properties

FriendlyName

public override string FriendlyName { get; }

Property Value

string

PackageOwners

public IReadOnlyList<string> PackageOwners { get; }

Property Value

IReadOnlyList<string>

V3ServiceIndexUrl

public Uri V3ServiceIndexUrl { get; }

Property Value

Uri

Methods

Verify(Timestamp, SignatureVerifySettings, HashAlgorithmName, X509Certificate2Collection)

Verify if the signature object meets the specification trust and validity requirements.

public override SignatureVerificationSummary Verify(Timestamp timestamp, SignatureVerifySettings settings, HashAlgorithmName fingerprintAlgorithm, X509Certificate2Collection certificateExtraStore)

Parameters

timestamp Timestamp

Timestamp for this signature, if signature is not timestamped it can be null.

settings SignatureVerifySettings
fingerprintAlgorithm HashAlgorithmName

Algorithm used to calculate and display the certificate's fingerprint.

certificateExtraStore X509Certificate2Collection

Collection of certificates to help the chain building engine as an extra store.

Returns

SignatureVerificationSummary

Status of trust for signature.

Remarks

This is only public for ease of testing