|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.NamingSecurityException
javax.naming.AuthenticationNotSupportedException
public class AuthenticationNotSupportedException
當所請求驗證的特定 flavor 不受支持時,拋出此異常。例如,如果程序試圖使用強驗證,但目錄/命名服務只支持簡單驗證,則將拋出此異常。驗證特定 flavor 的標識是特定於提供者和伺服器的。它可以使用特定的驗證方案指定,比如那些使用 SASL 標識的方案,或者一般驗證說明符(比如 "simple" 和 "strong")。
如果程序想要單獨處理此異常,它應該在試圖捕獲 NamingException 之前顯式捕獲 AuthenticationNotSupportedException。在捕獲 AuthenticationNotSupportedException 之後,通過相應地更新已解析上下文的環境屬性,該程序可以使用不同的驗證 flavor 重新嘗試進行驗證。
應用於 NamingException 的同步和序列化問題在這裡可以直接應用。
| 欄位摘要 |
|---|
| 從類別 javax.naming.NamingException 繼承的欄位 |
|---|
remainingName, resolvedName, resolvedObj, rootException |
| 建構子摘要 | |
|---|---|
AuthenticationNotSupportedException()
建構一個新的 AuthenticationNotSupportedException 實例,將解釋和所有名稱解析欄位初始化為 null。 |
|
AuthenticationNotSupportedException(String explanation)
使用解釋建構一個新的 AuthenticationNotSupportedException 實例。 |
|
| 方法摘要 |
|---|
| 從類別 java.lang.Throwable 繼承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public AuthenticationNotSupportedException(String explanation)
explanation - 一個可能為 null 的字元串,包含有關此異常的附加詳細資訊。Throwable.getMessage()public AuthenticationNotSupportedException()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。