<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.X509.Store.X509AttrCertStoreSelector

A selector for attribute certificates from configurable criteria.

The attribute certificate which must be matched.

public DateTime? AttributeCertificateValid { get; set; }

The criteria for validity

public AttributeCertificateHolder Holder { get; set; }

The holder.

public AttributeCertificateIssuer Issuer { get; set; }

The issuer.

public BigInteger SerialNumber { get; set; }

The serial number.

public void AddTargetGroup(GeneralName group)

Adds a target group criterion for the attribute certificate to the target information extension criteria. The X509V2AttributeCertificate must contain at least one of the specified target groups.

public void AddTargetGroup(byte[] name)

Adds a target group criterion for the attribute certificate to the target information extension criteria. The X509V2AttributeCertificate must contain at least one of the specified target names.

public void AddTargetName(GeneralName name)

Adds a target name criterion for the attribute certificate to the target information extension criteria. The X509V2AttributeCertificate must contain at least one of the specified target names.

public void AddTargetName(byte[] name)

Adds a target name criterion for the attribute certificate to the target information extension criteria. The X509V2AttributeCertificate must contain at least one of the specified target names.

public object Clone()

Enumerate the target groups.

Enumerate the target names.

public bool Match(X509V2AttributeCertificate attrCert)

Decides if the given attribute certificate should be selected.

public void SetTargetGroups(IEnumerable<object> names)

Adds a collection with target groups criteria. If null is given, any will do.

public void SetTargetNames(IEnumerable<object> names)

Adds a collection with target names criteria. If null is given, any will do.