Class SignedPackageVerifierSettings
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
boolallowIllegal
boolallowUntrusted
boolallowIgnoreTimestamp
boolallowMultipleTimestamps
boolallowNoTimestamp
boolallowUnknownRevocation
boolreportUnknownRevocation
boolverificationTarget
VerificationTargetsignaturePlacement
SignaturePlacementrepositoryCountersignatureVerificationBehavior
SignatureVerificationBehaviorrevocationMode
RevocationMode
Properties
AllowIgnoreTimestamp
Allow ignoring timestamp.
public bool AllowIgnoreTimestamp { get; }
Property Value
AllowIllegal
Allow packages with signatures that do not conform to the specification.
public bool AllowIllegal { get; }
Property Value
AllowMultipleTimestamps
Allow more than one timestamp.
public bool AllowMultipleTimestamps { get; }
Property Value
AllowNoTimestamp
Allow no timestamp.
public bool AllowNoTimestamp { get; }
Property Value
AllowUnknownRevocation
Treat unknown revocation status as a warning instead of an error during verification.
public bool AllowUnknownRevocation { get; }
Property Value
AllowUnsigned
Allow packages that do not contain signatures.
public bool AllowUnsigned { get; }
Property Value
AllowUntrusted
Allow packages that have not been explicitly trusted by the consumer.
public bool AllowUntrusted { get; }
Property Value
ReportUnknownRevocation
Report unknown revocation status.
public bool ReportUnknownRevocation { get; }
Property Value
RepositoryCountersignatureVerificationBehavior
Gets the repository countersignature verification behavior.
public SignatureVerificationBehavior RepositoryCountersignatureVerificationBehavior { get; }
Property Value
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
VerificationTarget
Gets the verification target(s).
public VerificationTarget VerificationTarget { get; }
Property Value
Methods
GetAcceptModeDefaultPolicy(IEnvironmentVariableReader)
The accept mode policy.
public static SignedPackageVerifierSettings GetAcceptModeDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)
Parameters
environmentVariableReader
IEnvironmentVariableReaderAn NuGet.Common.IEnvironmentVariableReader instance or
null
for the default environment variable reader.
Returns
GetDefault(IEnvironmentVariableReader)
Default settings.
public static SignedPackageVerifierSettings GetDefault(IEnvironmentVariableReader environmentVariableReader = null)
Parameters
environmentVariableReader
IEnvironmentVariableReaderAn NuGet.Common.IEnvironmentVariableReader instance or
null
for the default environment variable reader.
Returns
GetRequireModeDefaultPolicy(IEnvironmentVariableReader)
The require mode policy.
public static SignedPackageVerifierSettings GetRequireModeDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)
Parameters
environmentVariableReader
IEnvironmentVariableReaderAn NuGet.Common.IEnvironmentVariableReader instance or
null
for the default environment variable reader.
Returns
GetVerifyCommandDefaultPolicy(IEnvironmentVariableReader)
Default policy for nuget.exe verify --signatures command.
public static SignedPackageVerifierSettings GetVerifyCommandDefaultPolicy(IEnvironmentVariableReader environmentVariableReader = null)
Parameters
environmentVariableReader
IEnvironmentVariableReaderAn NuGet.Common.IEnvironmentVariableReader instance or
null
for the default environment variable reader.