1 instantiation of TrustedSignerAllowListEntry
NuGet.Packaging (1)
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
172return new TrustedSignerAllowListEntry(Target, Placement, Certificate.Fingerprint, Certificate.HashAlgorithm, Certificate.AllowUntrustedRoot, Owners?.ToList());
9 references to TrustedSignerAllowListEntry
NuGet.Packaging (9)
Signing\TrustedSigners\TrustedSignersProvider.cs (3)
65public static IReadOnlyList<TrustedSignerAllowListEntry> GetAllowListEntries(ISettings settings, ILogger logger) 80return Enumerable.Empty<TrustedSignerAllowListEntry>().ToList(); 170public TrustedSignerAllowListEntry ToAllowListEntry()
Signing\Verification\AllowListVerificationProvider.cs (3)
87if (ShouldVerifyOwners(certificateHashEntry as TrustedSignerAllowListEntry, signature as IRepositorySignature, out var allowedOwners, out var actualOwners)) 114if (ShouldVerifyOwners(certificateHashEntry as TrustedSignerAllowListEntry, repositoryCountersignature.Value, out var allowedOwners, out var actualOwners)) 134private static bool ShouldVerifyOwners(TrustedSignerAllowListEntry? entry, IRepositorySignature? repoSignature, [NotNullWhen(returnValue: true)] out IReadOnlyList<string>? allowedOwners, [NotNullWhen(returnValue: true)] out IReadOnlyList<string>? actualOwners)
Signing\Verification\ClientPolicyContext.cs (2)
26public IReadOnlyCollection<TrustedSignerAllowListEntry> AllowList { get; } 28internal ClientPolicyContext(SignatureValidationMode policy, IReadOnlyCollection<TrustedSignerAllowListEntry> allowList)
Signing\Verification\TrustedSignerAllowListEntry.cs (1)
38if (base.Equals(obj) && obj is TrustedSignerAllowListEntry trustedSigner)