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