|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
javax.security.sasl.SaslException
javax.security.sasl.AuthenticationException
public class AuthenticationException
此異常由 SASL 機制實作拋出,指示由於和驗證有關的原因(如無效的標識、口令 或密鑰),SASL 交換已失敗。
注意,不出現 AuthenticationException 並不意味著失敗不是由驗證錯誤所導致的。如果 SASL 機制實作無法確定失敗的型別,或者不想洩漏失敗的型別(例如由於安全的原因),那麼它可以拋出更通用的 SaslException 代替 AuthenticationException。
| 建構子摘要 | |
|---|---|
AuthenticationException()
建構一個新的 AuthenticationException 實例。 |
|
AuthenticationException(String detail)
建構帶詳細訊息的新 AuthenticationException 實例。 |
|
AuthenticationException(String detail,
Throwable ex)
建構帶詳細訊息和根異常的新 AuthenticationException 實例。 |
|
| 方法摘要 |
|---|
| 從類別 javax.security.sasl.SaslException 繼承的方法 |
|---|
getCause, initCause, toString |
| 從類別 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()
public AuthenticationException(String detail)
detail - 套件含異常細節的字元串,可能為 null。Throwable.getMessage()
public AuthenticationException(String detail,
Throwable ex)
detail - 套件含異常細節的字元串,可能為 null。ex - 導致此異常的根異常,可能為 null。Throwable.getMessage(),
SaslException.getCause()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。