Table of Contents

Class SignedPackageVerifierSettings

Namespace
NuGet.Packaging.Signing
Assembly
Chocolatey.NuGet.Packaging.dll

Feed settings used to verify packages.

public sealed class SignedPackageVerifierSettings
Inheritance
SignedPackageVerifierSettings
Inherited Members

Constructors

SignedPackageVerifierSettings(bool, bool, bool, bool, bool, bool, bool, bool, VerificationTarget, SignaturePlacement, SignatureVerificationBehavior, RevocationMode)

public SignedPackageVerifierSettings(bool allowUnsigned, bool allowIllegal, bool allowUntrusted, bool allowIgnoreTimestamp, bool allowMultipleTimestamps, bool allowNoTimestamp, bool allowUnknownRevocation, bool reportUnknownRevocation, VerificationTarget verificationTarget, SignaturePlacement signaturePlacement, SignatureVerificationBehavior repositoryCountersignatureVerificationBehavior, RevocationMode revocationMode)

Parameters

allowUnsigned bool
allowIllegal bool
allowUntrusted bool
allowIgnoreTimestamp bool
allowMultipleTimestamps bool
allowNoTimestamp bool
allowUnknownRevocation bool
reportUnknownRevocation bool
verificationTarget VerificationTarget
signaturePlacement SignaturePlacement
repositoryCountersignatureVerificationBehavior SignatureVerificationBehavior
revocationMode RevocationMode

Properties

AllowIgnoreTimestamp

Allow ignoring timestamp.

public bool AllowIgnoreTimestamp { get; }

Property Value

bool

AllowIllegal

Allow packages with signatures that do not conform to the specification.

public bool AllowIllegal { get; }

Property Value

bool

AllowMultipleTimestamps

Allow more than one timestamp.

public bool AllowMultipleTimestamps { get; }

Property Value

bool

AllowNoTimestamp

Allow no timestamp.

public bool AllowNoTimestamp { get; }

Property Value

bool

AllowUnknownRevocation

Treat unknown revocation status as a warning instead of an error during verification.

public bool AllowUnknownRevocation { get; }

Property Value

bool

AllowUnsigned

Allow packages that do not contain signatures.

public bool AllowUnsigned { get; }

Property Value

bool

AllowUntrusted

Allow packages that have not been explicitly trusted by the consumer.

public bool AllowUntrusted { get; }

Property Value

bool

ReportUnknownRevocation

Report unknown revocation status.

public bool ReportUnknownRevocation { get; }

Property Value

bool

RepositoryCountersignatureVerificationBehavior

Gets the repository countersignature verification behavior.

public SignatureVerificationBehavior RepositoryCountersignatureVerificationBehavior { get; }

Property Value

SignatureVerificationBehavior

RevocationMode

Gets how the revocation verification should be performed.

public RevocationMode RevocationMode { get; }

Property Value

RevocationMode

SignaturePlacement

Gets the placement of verification target(s).

public SignaturePlacement SignaturePlacement { get; }

Property Value

SignaturePlacement

VerificationTarget

Gets the verification target(s).

public VerificationTarget VerificationTarget { get; }

Property Value

VerificationTarget

Methods

GetAcceptModeDefaultPolicy(IEnvironmentVariableReader)

The accept mode policy.

public static SignedPackageVerifierSettings GetAcceptModeDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)

Parameters

environmentVariableReader IEnvironmentVariableReader

An NuGet.Common.IEnvironmentVariableReader instance or null for the default environment variable reader.

Returns

SignedPackageVerifierSettings

A SignedPackageVerifierSettings instance.

GetDefault(IEnvironmentVariableReader)

Default settings.

public static SignedPackageVerifierSettings GetDefault(IEnvironmentVariableReader environmentVariableReader = null)

Parameters

environmentVariableReader IEnvironmentVariableReader

An NuGet.Common.IEnvironmentVariableReader instance or null for the default environment variable reader.

Returns

SignedPackageVerifierSettings

A SignedPackageVerifierSettings instance.

GetRequireModeDefaultPolicy(IEnvironmentVariableReader)

The require mode policy.

public static SignedPackageVerifierSettings GetRequireModeDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)

Parameters

environmentVariableReader IEnvironmentVariableReader

An NuGet.Common.IEnvironmentVariableReader instance or null for the default environment variable reader.

Returns

SignedPackageVerifierSettings

A SignedPackageVerifierSettings instance.

GetVerifyCommandDefaultPolicy(IEnvironmentVariableReader)

Default policy for nuget.exe verify --signatures command.

public static SignedPackageVerifierSettings GetVerifyCommandDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)

Parameters

environmentVariableReader IEnvironmentVariableReader

An NuGet.Common.IEnvironmentVariableReader instance or null for the default environment variable reader.

Returns

SignedPackageVerifierSettings

A SignedPackageVerifierSettings instance.