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