java.lang.Object
java.security.cert.CollectionCertStoreParameters
- すべての実装されたインタフェース:
Cloneable
,CertStoreParameters
public class CollectionCertStoreParameters extends Object implements CertStoreParameters
Collection
CertStore
アルゴリズムの入力で使用されるパラメータです。
このクラスは、Collection CertStore
アルゴリズムの実装に必要な構成パラメータを提供するために使用されます。 このクラスに含まれる唯一のパラメータは、CertStore
による証明書とCRLの取得元として使用されるCollection
です。
並行アクセス
特に断らないかぎり、このクラスで定義されているメソッドはスレッドセーフではありません。 単一のオブジェクトに並行アクセスする必要のある複数スレッドは、スレッド間で同期をとり、必要に応じてロックする必要があります。 複数のスレッドがそれぞれ個別のオブジェクトを処理する場合、それらのスレッドは同期する必要はありません。
- 導入されたバージョン:
- 1.4
- 関連項目:
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明デフォルトのパラメータ値付きのCollectionCertStoreParameters
のインスタンス(空で不変のCollection
)を作成します。CollectionCertStoreParameters
(Collection<?> collection) 指定したCollection
から証明書とCRLが取得できるようなCollectionCertStoreParameters
のインスタンスを作成します。 -
メソッドのサマリー
修飾子と型メソッド説明clone()
このオブジェクトの複製を返します。Collection<?>
Certificate
やCRL
が取得されるCollection
を返します。toString()
パラメータを説明する書式付き文字列を返します。
-
コンストラクタの詳細
-
CollectionCertStoreParameters
public CollectionCertStoreParameters(Collection<?> collection) 指定したCollection
から証明書とCRLが取得できるようなCollectionCertStoreParameters
のインスタンスを作成します。 指定されたCollection
にCertificate
やCRL
が含まれない場合、該当するオブジェクトはCollectionCertStore
によって無視されます。Collection
は複製されません。 代わりに、参照が使用されます。 参照を使用することで、呼出し側がCertificates
やCRL
をCollection
に対して連続して追加や削除ができるため、利用可能なCertificates
やCRL
のセットをCollectionCertStore
に変えることができます。 CollectionCertStore
では、Collection
の内容を変更しません。Collection
で初期化されたCollectionCertStore
のメソッドをあるスレッドが呼び出しているときに、そのCollection
が変更される場合、そのCollection
にはフェイルファスト・イテレータが必要です。- パラメータ:
collection
-Certificate
およびCRL
のCollection
- 例外:
NullPointerException
-collection
がnull
である場合
-
CollectionCertStoreParameters
public CollectionCertStoreParameters()デフォルトのパラメータ値付きのCollectionCertStoreParameters
のインスタンス(空で不変のCollection
)を作成します。
-
-
メソッドの詳細
-
getCollection
public Collection<?> getCollection()Certificate
やCRL
が取得されるCollection
を返します。 これはCollection
の複製ではなく、参照です。 参照を使用することで、呼出し側がCertificates
やCRL
をCollection
に対して連続して追加や削除ができます。- 戻り値:
Collection
。nullにはならない
-
clone
public Object clone()このオブジェクトの複製を返します。Collection
の参照だけが複製され、内容は複製されません。- 定義:
clone
、インタフェース:CertStoreParameters
- オーバーライド:
clone
、クラス:Object
- 戻り値:
- コピー
- 関連項目:
-
toString
public String toString()パラメータを説明する書式付き文字列を返します。
-