Name
CertSelector
Synopsis
This interface
defines an API for determining whether a
Certificate meets some criteria. Implementations
are used to specify critera by which a certificate or certificates
should be selected from a CertStore object. The
match( )
method should examine the Certificate it is passed
and return true if it
“matches” based on whatever
criteria the implementation defines. See
X509CertSelector for an implementation that works
with X.509 certificates. See CRLSelector for a
similar interface for use when selecting CRL
objects from a CertStore.
Figure 14-59. java.security.cert.CertSelector
public interface CertSelector extends Cloneable { // Public Instance Methods Object clone( ); boolean match(java.security.cert.Certificate cert); }
Implementations
X509CertSelector
Passed To
CertStore.getCertificates( ),
CertStoreSpi.engineGetCertificates( ),
PKIXBuilderParameters.PKIXBuilderParameters( ),
PKIXParameters.setTargetCertConstraints( )
Returned By
PKIXParameters.getTargetCertConstraints( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access