public class CollectionCertStoreParameters extends Object implements CertStoreParameters
CertStore
算法的输入。
这个类是用来收藏的CertStore
算法的实现提供了必要的配置参数。包括在这一类的唯一参数是Collection
,CertStore
检索证书和CRL。
并发访问
除非另有说明,在这个类中定义的方法不是线程安全的。需要访问一个单一对象的多个线程同时应同步,并提供必要的锁。多线程每个操作单独的对象不需要同步。
Collection
,
CertStore
Constructor and Description |
---|
CollectionCertStoreParameters()
创建具有默认参数值的
CollectionCertStoreParameters 实例(一个空的和不可改变的
Collection )。
|
CollectionCertStoreParameters(Collection<?> collection)
创建
CollectionCertStoreParameters 将允许证书和CRL是从指定的
Collection 检索实例。
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
返回此对象的副本。
|
Collection<?> |
getCollection()
返回从中检索
Certificate s和
CRL s的
Collection 。
|
String |
toString()
返回一个描述参数的格式化字符串。
|
public CollectionCertStoreParameters(Collection<?> collection)
CollectionCertStoreParameters
将允许证书和CRL是从指定的
Collection
检索实例。如果指定的
Collection
包含一个对象,不是一个
Certificate
或
CRL
,对象将被收集
CertStore
忽视。
是的Collection
不复制。相反,使用一个参考。这允许调用者随后添加或删除从Collection
Certificates
或CRL
s,从而改变组Certificates
或CRL
s可收集CertStore
。收集CertStore
不会修改的内容Collection
。
如果Collection
将被修改,一个线程,而另一个线程调用一个集合CertStore
已与这Collection
初始化的方法,Collection
必须快速失败迭代器。
collection
-
Collection
的
Certificate
s和
CRL
s
null
collection
NullPointerException
public CollectionCertStoreParameters()
CollectionCertStoreParameters
实例(一个空的和不可改变的
Collection
)。
public Collection<?> getCollection()
Certificate
s和
CRL
s的
Collection
。这是
不副本的
Collection
,它是一个参考。这允许调用者随后添加或删除从
Collection
Certificates
或
CRL
s。
Collection
(不空)
public Object clone()
Collection
是复制,而不是内容。
clone
接口
CertStoreParameters
clone
方法重写,继承类
Object
Cloneable
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.