|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.NamingSecurityException
javax.naming.AuthenticationException
public class AuthenticationException
當存取命名或目錄服務發生驗證錯誤時,拋出此異常。驗證錯誤可能在(舉例來說)使用者程序提供的證書無效或者其他原因導致對需要命名/目錄服務的使用者進行驗證失敗時發生。
如果程序想要單獨處理此異常,它應該在試圖捕獲 NamingException 之前顯式捕獲 AuthenticationException。在捕獲 AuthenticationException 之後,通過使用適當的證書更新已解析上下文的環境屬性,該程序可以重新嘗試進行驗證。
應用於 NamingException 的同步和序列化問題在這裡可以直接應用。
| 欄位摘要 |
|---|
| 從類別 javax.naming.NamingException 繼承的欄位 |
|---|
remainingName, resolvedName, resolvedObj, rootException |
| 建構子摘要 | |
|---|---|
AuthenticationException()
建構一個新的 AuthenticationException 實例。 |
|
AuthenticationException(String explanation)
使用所提供的解釋建構一個新的 AuthenticationException 實例。 |
|
| 方法摘要 |
|---|
| 從類別 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 AuthenticationException(String explanation)
explanation - 一個可能為 null 的字元串,包含有關此異常的附加詳細資訊。Throwable.getMessage()public AuthenticationException()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。