Bouncy Castle Cryptography Library 1.81

org.bouncycastle.jcajce
Class PKIXCertStoreSelector

java.lang.Object
  extended byorg.bouncycastle.jcajce.PKIXCertStoreSelector
All Implemented Interfaces:
java.lang.Cloneable, Selector

public class PKIXCertStoreSelector
extends java.lang.Object
implements Selector

This class is a Selector implementation for certificates.

See Also:
Selector

Nested Class Summary
static class PKIXCertStoreSelector.Builder
           
 
Method Summary
 java.lang.Object clone()
           
 java.security.cert.Certificate getCertificate()
          Return the specific certificate this selector is designed to match.
static java.util.Collection getCertificates(PKIXCertStoreSelector selector, java.security.cert.CertStore certStore)
           
 boolean match(java.lang.Object cert)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCertificate

public java.security.cert.Certificate getCertificate()
Return the specific certificate this selector is designed to match.

Returns:
a specific certificate where the selector has been configured explicitly.

match

public boolean match(java.lang.Object cert)
Specified by:
match in interface Selector

clone

public java.lang.Object clone()
Specified by:
clone in interface Selector

getCertificates

public static java.util.Collection getCertificates(PKIXCertStoreSelector selector,
                                                   java.security.cert.CertStore certStore)
                                            throws java.security.cert.CertStoreException
Throws:
java.security.cert.CertStoreException

Bouncy Castle Cryptography Library 1.81