public class CollectionCertStoreParameters
extends Object implements CertStoreParameters
| java.lang.Object | |
| java.security.cert.CollectionCertStoreParameters | |
用作Collection CertStore算法输入的参数。
该类用于为Collection CertStore算法的实现提供必要的配置参数。 此类中包含的唯一参数是Collection ,其中CertStore将从中检索证书和CRL。
并发访问
除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应该自己同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。
也可以看看:
Public constructors |
|
|---|---|
CollectionCertStoreParameters(Collection<?> collection) 创建一个 |
|
CollectionCertStoreParameters() 使用默认参数值(一个空的和不可变的 |
|
公共方法(Public methods) |
|
|---|---|
Object |
clone() 返回此对象的副本。 |
Collection<?> |
getCollection() 返回 |
String |
toString() 返回描述参数的格式化字符串。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
java.security.cert.CertStoreParameters
|
|
CollectionCertStoreParameters (Collection<?> collection)
创建一个CollectionCertStoreParameters的实例,该实例将允许从指定的Collection检索证书和CRL。 如果指定的Collection包含的对象不是Certificate或CRL ,该对象将被Collection CertStore忽略。
Collection 未被复制。 而是使用参考。 这允许调用方随后添加或删除Certificates或者CRL从S Collection ,从而改变了一套Certificates或者CRL可供系列S CertStore 。 收集CertStore不会修改的内容Collection 。
如果 Collection将由一个线程修改,而另一个线程正在调用已使用此 Collection初始化的Collection CertStore的方法,则 Collection必须具有fail-fast迭代器。
| 参数(Parameters) | |
|---|---|
collection |
Collection: a Collection of Certificates and CRLs |
| 抛出异常(Throws) | |
|---|---|
NullPointerException |
if collection is null |
CollectionCertStoreParameters ()
使用默认参数值(一个空的和不可变的 Collection )创建一个 CollectionCertStoreParameters的实例。
Object clone ()
返回此对象的副本。 请注意,只复制对Collection的引用, Collection复制内容。
| 返回(Returns) | |
|---|---|
Object |
the copy |
Collection<?> getCollection ()
返回Collection ,其中检索Certificate和CRL 。 这不是 Collection的副本,它是一个参考。 这允许调用方随后添加或删除Certificates或者CRL从S Collection 。
| 返回(Returns) | |
|---|---|
Collection<?> |
the Collection (never null) |
String toString ()
返回描述参数的格式化字符串。
| 返回(Returns) | |
|---|---|
String |
a formatted string describing the parameters |