Stay organized with collections
Save and categorize content based on your preferences.
CertSelector
public
interface
CertSelector
implements
Cloneable
java.security.cert.CertSelector
|
Known indirect subclasses
X509CertSelector |
A CertSelector that selects X509Certificates that
match all specified criteria.
|
|
A selector that defines a set of criteria for selecting
Certificate
s. Classes that implement this interface
are often used to specify which Certificate
s 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.
Summary
Public methods |
abstract
Object
|
clone()
Makes a copy of this CertSelector .
|
abstract
boolean
|
match(Certificate cert)
Decides whether a Certificate should be selected.
|
Public methods
clone
public abstract Object clone ()
Makes a copy of this CertSelector
. Changes to the
copy will not affect the original and vice versa.
Returns |
Object |
a copy of this CertSelector |
match
public abstract boolean match (Certificate cert)
Decides whether a Certificate
should be selected.
Parameters |
cert |
Certificate : the Certificate to be checked |
Returns |
boolean |
true if the Certificate
should be selected, false otherwise |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CertSelector\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nCertSelector\n============\n\n\n`\npublic\n\n\ninterface\nCertSelector\n`\n\n\n`\n\n\nimplements\n\n`[Cloneable](/reference/java/lang/Cloneable)`\n\n\n`\n\n|---------------------------------|\n| java.security.cert.CertSelector |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [X509CertSelector](/reference/java/security/cert/X509CertSelector) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------| | [X509CertSelector](/reference/java/security/cert/X509CertSelector) | A `CertSelector` that selects `X509Certificates` that match all specified criteria. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA selector that defines a set of criteria for selecting\n`Certificate`s. Classes that implement this interface\nare often used to specify which `Certificate`s should\nbe retrieved from a `CertStore`.\n\n\n**Concurrent Access**\n\n\nUnless otherwise specified, the methods defined in this interface are not\nthread-safe. Multiple threads that need to access a single\nobject concurrently should synchronize amongst themselves and\nprovide the necessary locking. Multiple threads each manipulating\nseparate objects need not synchronize. \n**See also:**\n\n- [Certificate](/reference/java/security/cert/Certificate)\n- [CertStore](/reference/java/security/cert/CertStore)\n- [CertStore.getCertificates(CertSelector)](/reference/java/security/cert/CertStore#getCertificates(java.security.cert.CertSelector))\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/security/cert/CertSelector#clone())`() ` Makes a copy of this `CertSelector`. |\n| ` abstract boolean` | ` `[match](/reference/java/security/cert/CertSelector#match(java.security.cert.Certificate))`(`[Certificate](/reference/java/security/cert/Certificate)` cert) ` Decides whether a `Certificate` should be selected. |\n\nPublic methods\n--------------\n\n### clone\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Object clone ()\n```\n\nMakes a copy of this `CertSelector`. Changes to the\ncopy will not affect the original and vice versa.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|--------------------------------------|\n| [Object](/reference/java/lang/Object) | a copy of this `CertSelector` \u003cbr /\u003e |\n\n### match\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean match (Certificate cert)\n```\n\nDecides whether a `Certificate` should be selected.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|-------------------------------------------------------|\n| `cert` | `Certificate`: the `Certificate` to be checked \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------------------------------------------------------------------------|\n| `boolean` | `true` if the `Certificate` should be selected, `false` otherwise \u003cbr /\u003e |"]]