JavaTM 2 Platform
Standard Ed. 6

javax.security.sasl
类 AuthenticationException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 javax.security.sasl.SaslException
                  继承者 javax.security.sasl.AuthenticationException
所有已实现的接口:
Serializable

public class AuthenticationException
extends SaslException

此异常由 SASL 机制实现抛出,指示由于和验证有关的原因(如无效的标识、口令 或密钥),SASL 交换已失败。

注意,不出现 AuthenticationException 并不意味着失败不是由验证错误所导致的。如果 SASL 机制实现无法确定失败的类型,或者不想泄漏失败的类型(例如由于安全的原因),那么它可以抛出更通用的 SaslException 代替 AuthenticationException。

从以下版本开始:
1.5
另请参见:
序列化表格

构造方法摘要
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
 

构造方法详细信息

AuthenticationException

public AuthenticationException()
构造一个新的 AuthenticationException 实例。根异常和详细消息为 null。


AuthenticationException

public AuthenticationException(String detail)
构造带详细消息的新 AuthenticationException 实例。根异常为 null。

参数:
detail - 包含异常细节的字符串,可能为 null。
另请参见:
Throwable.getMessage()

AuthenticationException

public AuthenticationException(String detail,
                               Throwable ex)
构造带详细消息和根异常的新 AuthenticationException 实例。

参数:
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