JavaTM 2 Platform
Standard Ed. 6

java.security.cert
類別 CollectionCertStoreParameters

java.lang.Object
  繼承者 java.security.cert.CollectionCertStoreParameters
所有已實作的介面:
Cloneable, CertStoreParameters

public class CollectionCertStoreParameters
extends Object
implements CertStoreParameters

用作 Collection CertStore 演算法輸入的參數。

此類別用於為 Collection CertStore 演算法的實作提供必需的配置參數。此類別中所包括的唯一參數是 Collection,CertStore 將從中獲取證書和 CRL。

共時存取

除非另行指定,否則此類別中所定義的方法不是執行緒安全的。需要共時存取單個物件的多個執行緒應該在它們之間實作同步並提供所需的鎖定。對於每個執行緒都操作一個不同物件的多個執行緒而言,無需實作同步。

從以下版本開始:
1.4
另請參見:
Collection, CertStore

建構子摘要
CollectionCertStoreParameters()
          創建具有預設參數值(一個空的並且不可變的 Collection)的 CollectionCertStoreParameters 的實例
CollectionCertStoreParameters(Collection<?> collection)
          創建 CollectionCertStoreParameters 的一個實例,它允許從指定的 Collection 中獲取證書和 CRL。
 
方法摘要
 Object clone()
          返回此物件的副本。
 Collection<?> getCollection()
          返回從中獲取 Certificate 和 CRL 的 Collection。
 String toString()
          返回描述該參數的格式化字元串。
 
從類別 java.lang.Object 繼承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

建構子詳細資訊

CollectionCertStoreParameters

public CollectionCertStoreParameters(Collection<?> collection)
創建 CollectionCertStoreParameters 的一個實例,它允許從指定的 Collection 中獲取證書和 CRL。如果指定的 Collection 套件含不是 Certificate 或 CRL 的物件,則該 Collection CertStore 將忽略該物件。

該 Collection 不是複製的。相反,使用的是一個參考。這就允許調用方隨後從 Collection 中添加或移除 Certificates 或 CRL,從而更改 CertStore 可用的 Certificates 或 CRL 集。Collection CertStore 不會修改該 Collection 的內容。

如果某個執行緒修改此 Collection 的同時,另一個執行緒正在調用已使用此 Collection 初始化的 Collection CertStore 方法,則該 Collection 必須具有快速失敗的迭代器。

參數:
collection - Certificate 和 CRL 的 Collection
拋出:
NullPointerException - 如果 collection 為 null

CollectionCertStoreParameters

public CollectionCertStoreParameters()
創建具有預設參數值(一個空的並且不可變的 Collection)的 CollectionCertStoreParameters 的實例

方法詳細資訊

getCollection

public Collection<?> getCollection()
返回從中獲取 Certificate 和 CRL 的 Collection。這不是該 Collection 的副本,它是一個參考。這就允許調用方隨後從該 Collection 中添加或移除 Certificates 或 CRL。

返回:
Collection(不會為 null)

clone

public Object clone()
返回此物件的副本。注意,僅複製對該 Collection 參考,而不複製內容。

指定者:
介面 CertStoreParameters 中的 clone
覆寫:
類別 Object 中的 clone
返回:
副本
另請參見:
Cloneable

toString

public String toString()
返回描述該參數的格式化字元串。

覆寫:
類別 Object 中的 toString
返回:
描述該參數的格式化字元串

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。