public interface CertStoreParameters extends Cloneable
CertStore
参数。
该接口的目的是集团(提供类型安全)所有CertStore
参数规格。所有的CertStore
参数规格必须实现这个接口。
通常,一个CertStoreParameters
对象作为参数的一个方法,通过CertStore.getInstance
。的getInstance
方法返回一个CertStore
是用于检索Certificate
s和CRL
s。的CertStore
,返回与指定的参数初始化。所需的参数类型可能不同CertStore
s之间变化。
Object clone()
CertStoreParameters
。
“复制”的准确含义可能依赖于对象的类的CertStoreParameters
。一个典型的实现执行这个对象的“深度复制”,但这不是一个绝对的要求。一些实现可能会执行一些或所有对象的一些或全部的“浅拷贝”。
请注意,CertStore.getInstance
方法复制指定的CertStoreParameters
。一个clone
深拷贝的实现更安全、更强大,因为它可以防止对方破坏共享CertStore
随后修改初始化参数的内容。然而,clone
浅拷贝的实现是需要坚持一个参数包含在CertStoreParameters
参考应用程序更合适。例如,一个浅拷贝克隆允许应用程序立即释放一个特定的CertStore
初始化参数的资源,而不是等待垃圾收集机制。这应该是非常小心的,因为CertStore
仍可能被其他线程使用。
每个子类都应该说明该方法的精确行为,以便用户和开发人员知道该期望什么。
CertStoreParameters
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.