CertSelector (Java SE 13 & JDK 13 )
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
X509CertSelector
public interface CertSelector extends Cloneable
A selector that defines a set of criteria for selecting
Certificates. Classes that implement this interface
are often used to specify which Certificates should
be retrieved from a CertStore.
Concurrent Access
Unless otherwise specified, the methods defined in this interface are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
- Since:
- 1.4
- See Also:
Certificate,CertStore,CertStore.getCertificates(java.security.cert.CertSelector)
-
Method Summary
Modifier and Type Method Description Objectclone()Makes a copy of this
CertSelector.booleanmatch(Certificate cert)Decides whether a
Certificateshould be selected.
-
Method Details
-
match
Decides whether a
Certificateshould be selected.- Parameters:
cert- theCertificateto be checked- Returns:
trueif theCertificateshould be selected,falseotherwise
-
clone
Makes a copy of this
CertSelector. Changes to the copy will not affect the original and vice versa.- Returns:
- a copy of this
CertSelector
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.