public class CertPathValidatorException extends GeneralSecurityException
CertPathValidatorException ではラップしている例外をサポートしています。getCause メソッドは、この例外がスローされる原因となったスロー可能オブジェクトを返します (存在する場合)。
CertPathValidatorException には、例外がスローされたときに検査中だった証明書パスと、例外がスローされる原因となった証明書パスの証明書のインデックス、障害の原因となった理由も含まれます。この情報を取得するには、getCertPath、getIndex、および getReason メソッドを使用します。
並行アクセス
特に断らないかぎり、このクラスで定義されているメソッドはスレッドセーフではありません。単一のオブジェクトに並行アクセスする必要のある複数スレッドは、スレッド間で同期をとり、必要に応じてロックする必要があります。複数のスレッドがそれぞれ個別のオブジェクトを処理する場合、それらのスレッドは同期する必要はありません。
CertPathValidator, 直列化された形式| 修飾子と型 | クラスと説明 |
|---|---|
static class |
CertPathValidatorException.BasicReason
BasicReason は、任意のタイプの証明書パスが無効になる可能性がある潜在的な理由を列挙します。
|
static interface |
CertPathValidatorException.Reason
検査アルゴリズムが失敗した理由です。
|
| コンストラクタと説明 |
|---|
CertPathValidatorException()
詳細メッセージを持たない
CertPathValidatorException を作成します。 |
CertPathValidatorException(String msg)
指定された詳細メッセージを持つ
CertPathValidatorException を作成します。 |
CertPathValidatorException(String msg, Throwable cause)
指定した詳細メッセージと原因を持つ
CertPathValidatorException を作成します。 |
CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index)
指定した詳細メッセージ、原因、証明書パス、およびインデックスを持つ
CertPathValidatorException を作成します。 |
CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index, CertPathValidatorException.Reason reason)
指定した詳細メッセージ、原因、証明書パス、インデックス、および理由を持つ
CertPathValidatorException を作成します。 |
CertPathValidatorException(Throwable cause)
指定したスロー可能なオブジェクトをラップする
CertPathValidatorException を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
CertPath |
getCertPath()
例外がスローされたときに検査中だった証明書パスを返します。
|
int |
getIndex()
スローされた例外の原因となった証明書パスの証明書のインデックスを返します。
|
CertPathValidatorException.Reason |
getReason()
検証が失敗した理由を返します。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CertPathValidatorException()
CertPathValidatorException を作成します。public CertPathValidatorException(String msg)
CertPathValidatorException を作成します。詳細メッセージとは、この例外を記述する String です。msg - 詳細メッセージpublic CertPathValidatorException(Throwable cause)
CertPathValidatorException を作成します。これによりどんな例外でも、デバッグ時に役立つラップされた例外の情報を保持しながら、CertPathValidatorException に変換できます。詳細メッセージは (cause==null ? null : cause.toString() ) に設定されます (通常、原因となったクラスと詳細メッセージを含みます)。cause - 原因 (あとで getCause() メソッドで取得できるように保存される)。(null 値が許可されており、原因が存在しないか不明であることを示す。)public CertPathValidatorException(String msg, Throwable cause)
CertPathValidatorException を作成します。msg - 詳細メッセージcause - 原因 (あとで getCause() メソッドで取得できるように保存される)。(null 値が許可されており、原因が存在しないか不明であることを示す。)public CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index)
CertPathValidatorException を作成します。msg - 詳細メッセージ。存在しない場合は nullcause - 原因。存在しない場合は nullcertPath - エラーが検出されたときに検査中だった証明書パスindex - エラーの原因となった証明書パスの証明書のインデックス。妥当でない場合は -1。CertPath の証明書リストは 0 から始まることに注意してください。IndexOutOfBoundsException - インデックスが範囲外の場合 (index < -1 || (certPath != null && index >= certPath.getCertificates().size())IllegalArgumentException - certPath が null であり、かつ index が -1 でない場合public CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index, CertPathValidatorException.Reason reason)
CertPathValidatorException を作成します。msg - 詳細メッセージ。存在しない場合は nullcause - 原因。存在しない場合は nullcertPath - エラーが検出されたときに検査中だった証明書パスindex - エラーの原因となった証明書パスの証明書のインデックス。妥当でない場合は -1。CertPath の証明書リストは 0 から始まることに注意してください。reason - 検証が失敗した理由IndexOutOfBoundsException - インデックスが範囲外の場合 (index < -1 || (certPath != null && index >= certPath.getCertificates().size())IllegalArgumentException - certPath が null であり、かつ index が -1 でない場合NullPointerException - reason が null である場合public CertPath getCertPath()
CertPath。指定されていない場合は nullpublic int getIndex()
CertPath の証明書リストは 0 から始まることに注意してください。インデックスが設定されていない場合は、-1 が返されます。public CertPathValidatorException.Reason getReason()
getIndex() によって返される証明書のインデックスに関連付けられます。BasicReason.UNSPECIFIED バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.