Class X509CertStoreSelector

java.lang.Object
java.security.cert.X509CertSelector
org.bouncycastle.x509.X509CertStoreSelector
All Implemented Interfaces:
Cloneable, CertSelector, Selector

public class X509CertStoreSelector
extends X509CertSelector
implements Selector
This class is a Selector implementation for X.509 certificates.
See Also:
Selector, X509Store, org.bouncycastle.jce.provider.X509StoreCertCollection
  • Constructor Details

    • X509CertStoreSelector

      public X509CertStoreSelector()
  • Method Details

    • match

      public boolean match​(Object obj)
      Specified by:
      match in interface Selector
    • match

      public boolean match​(Certificate cert)
      Description copied from class: X509CertSelector
      Returns whether the specified certificate matches all the criteria collected in this instance.
      Specified by:
      match in interface CertSelector
      Overrides:
      match in class X509CertSelector
      Parameters:
      cert - the certificate to check.
      Returns:
      true if the certificate matches all the criteria, otherwise false.
    • clone

      public Object clone()
      Description copied from class: X509CertSelector
      Clones this X509CertSelector instance.
      Specified by:
      clone in interface CertSelector
      Specified by:
      clone in interface Selector
      Overrides:
      clone in class X509CertSelector
      Returns:
      the cloned instance.
    • getInstance

      public static X509CertStoreSelector getInstance​(X509CertSelector selector)
      Returns an instance of this from a X509CertSelector.
      Parameters:
      selector - A X509CertSelector instance.
      Returns:
      An instance of an X509CertStoreSelector.
      Throws:
      IllegalArgumentException - if selector is null or creation fails.