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()
返回从中检索
Certificates和
CRLs的
Collection。
|
String |
toString()
返回一个描述参数的格式化字符串。
|
public CollectionCertStoreParameters(Collection<?> collection)
CollectionCertStoreParameters将允许证书和CRL是从指定的
Collection检索实例。如果指定的
Collection包含一个对象,不是一个
Certificate或
CRL,对象将被收集
CertStore忽视。
是的Collection 不复制。相反,使用一个参考。这允许调用者随后添加或删除从Collection Certificates或CRLs,从而改变组Certificates或CRLs可收集CertStore。收集CertStore不会修改的内容Collection。
如果Collection将被修改,一个线程,而另一个线程调用一个集合CertStore已与这Collection初始化的方法,Collection必须快速失败迭代器。
collection -
Collection的
Certificates和
CRLs
null
collection
NullPointerException
public CollectionCertStoreParameters()
CollectionCertStoreParameters实例(一个空的和不可改变的
Collection)。
public Collection<?> getCollection()
Certificates和
CRLs的
Collection。这是
不副本的
Collection,它是一个参考。这允许调用者随后添加或删除从
Collection
Certificates或
CRLs。
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.