- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- javax.naming.NamingException
- 
- javax.naming.NamingSecurityException
- 
- javax.naming.AuthenticationNotSupportedException
 
 
 
 
 
- 
- すべての実装されたインタフェース:
- Serializable
 
 public class AuthenticationNotSupportedException extends NamingSecurityException この例外は、要求された認証の特定のフレーバがサポートされていない場合にスローされます。 たとえば、プログラムで強い認証を使用しようとしているのに単純な認証しかサポートされていない場合に、この例外がスローされます。 認証の特定のフレーバのIDは、プロバイダおよびサーバーに固有です。 SASLを使用して識別される認証スキームなどの特定の認証スキーム、またはジェネリック認証指示子(simple、strongなど)を使用して指定されます。この例外を特別にプログラムで処理する場合は、NamingExceptionをキャッチする前にAuthenticationNotSupportedExceptionを明示的にキャッチする必要があります。 AuthenticationNotSupportedExceptionをキャッチすると、それによってすでに解決されたコンテキストの環境プロパティを更新することで、異なる認証フレーバを使用してプログラムで認証が再試行されます。NamingExceptionに適用される同期および直列化は、ここで直接適用されます。 - 導入されたバージョン:
- 1.3
- 関連項目:
- 直列化された形式
 
- 
- 
フィールドのサマリー- 
クラス javax.naming.NamingExceptionで宣言されたフィールドremainingName, resolvedName, resolvedObj, rootException
 
- 
 - 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 AuthenticationNotSupportedException()すべての名前解決フィールドと説明をnullに初期化して、AuthenticationNotSupportedExceptionの新しいインスタンスを構築します。AuthenticationNotSupportedException(String explanation)説明を使用して、AuthenticationNotSupportedExceptionの新しいインスタンスを構築します。
 - 
メソッドのサマリー- 
クラス javax.naming.NamingExceptionで宣言されたメソッドappendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 - 
クラス java.lang.Throwableで宣言されたメソッドaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
コンストラクタの詳細- 
AuthenticationNotSupportedExceptionpublic AuthenticationNotSupportedException(String explanation) 説明を使用して、AuthenticationNotSupportedExceptionの新しいインスタンスを構築します。 ほかのフィールドのデフォルトはすべてnullになります。- パラメータ:
- explanation- この例外に関する追加の詳細情報を含むnullの可能性がある文字列。
- 関連項目:
- Throwable.getMessage()
 
 - 
AuthenticationNotSupportedExceptionpublic AuthenticationNotSupportedException() すべての名前解決フィールドと説明をnullに初期化して、AuthenticationNotSupportedExceptionの新しいインスタンスを構築します。
 
- 
 
-