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.

java.security.cert.CertSelector

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( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.