CertStoreParameters
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
A specification of CertStore
parameters.
The purpose of this interface is to group (and provide type safety for)
all CertStore
parameter specifications. All
CertStore
parameter specifications must implement this
interface.
Typically, a CertStoreParameters
object is passed as a parameter
to one of the CertStore.getInstance
methods.
The getInstance
method returns a CertStore
that
is used for retrieving Certificate
s and CRL
s. The
CertStore
that is returned is initialized with the specified
parameters. The type of parameters needed may vary between different types
of CertStore
s.
Public Method Summary
abstract
Object
|
clone()
Makes a copy of this CertStoreParameters .
|
Public Methods
public
abstract
Object
clone
()
Makes a copy of this CertStoreParameters
.
The precise meaning of "copy" may depend on the class of
the CertStoreParameters
object. A typical implementation
performs a "deep copy" of this object, but this is not an absolute
requirement. Some implementations may perform a "shallow copy" of some
or all of the fields of this object.
Note that the CertStore.getInstance
methods make a copy
of the specified CertStoreParameters
. A deep copy
implementation of clone
is safer and more robust, as it
prevents the caller from corrupting a shared CertStore
by
subsequently modifying the contents of its initialization parameters.
However, a shallow copy implementation of clone
is more
appropriate for applications that need to hold a reference to a
parameter contained in the CertStoreParameters
. For example,
a shallow copy clone allows an application to release the resources of
a particular CertStore
initialization parameter immediately,
rather than waiting for the garbage collection mechanism. This should
be done with the utmost care, since the CertStore
may still
be in use by other threads.
Each subclass should state the precise behavior of this method so
that users and developers know what to expect.
Returns
- a copy of this
CertStoreParameters
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["`CertStoreParameters` is an interface used to specify parameters for `CertStore` objects, which are used to retrieve certificates and CRLs."],["Different `CertStore` types may require different parameter types, ensuring type safety and organization."],["`CertStoreParameters` objects are typically passed to `CertStore.getInstance` to initialize a `CertStore` with specific parameters."],["The `clone` method allows for copying `CertStoreParameters`, with implementations potentially varying in deep vs.shallow copy behavior."],["Subclasses of `CertStoreParameters` like `CollectionCertStoreParameters` and `LDAPCertStoreParameters` offer specific functionalities for different CertStore types."]]],["`CertStoreParameters` is an interface for specifying parameters for `CertStore` objects, which are used to retrieve certificates and CRLs. Subclasses like `CollectionCertStoreParameters` and `LDAPCertStoreParameters` define specific parameter types. The `getInstance` method of `CertStore` uses these parameters to initialize a `CertStore`. The `clone` method creates a copy of these parameters; subclasses dictate the depth of the copy. A deep copy is safer to avoid corruption, while a shallow copy may be better for immediate resource release.\n"]]