JavaTM 2 Platform
Standard Ed. 5.0

java.security.cert
クラス CollectionCertStoreParameters

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
関連項目:
Collection, CertStore

コンストラクタの概要
CollectionCertStoreParameters()
          デフォルトのパラメータ値付きの CollectionCertStoreParameters のインスタンス (空で不変の Collection) を作成します。
CollectionCertStoreParameters(Collection<?> collection)
          指定した Collection から証明書と CRL が取得できるような CollectionCertStoreParameters のインスタンスを作成します。
 
メソッドの概要
 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)
指定した Collection から証明書と CRL が取得できるような CollectionCertStoreParameters のインスタンスを作成します。指定された Collection に Certificate や CRL が含まれない場合、該当する Collection は CertStore によって無視されます。

Collection は複製されず、代わりに参照を使用します。参照を使用することで、呼び出し側が Certificates や CRL を Collection に対して連続して追加や削除ができるため、利用可能な Certificates や CRL のセットを Collection CertStore に変えることができます。Collection CertStore では、Collection の内容を変更しません。

Collection で初期化された Collection CertStore のメソッドをあるスレッドが呼び出しているときに、その 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 の参照だけが複製され、内容は複製されません。

定義:
インタフェース CertStoreParameters 内の clone
オーバーライド:
クラス Object 内の clone
戻り値:
コピー
関連項目:
Cloneable

toString

public String toString()
パラメータを説明する書式付き文字列を返します。

オーバーライド:
クラス Object 内の toString
戻り値:
パラメータを説明する書式付き文字列

JavaTM 2 Platform
Standard Ed. 5.0

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java 2 SDK SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。