public class AuthenticationException extends SaslException
注意,一个authenticationexception的缺乏并不意味着失败不是由于身份验证错误。SASL机制的实施可能会把更一般的saslexception代替authenticationexception无法确定故障的性质,或者不想公开的失败,自然为例,由于安全原因。
Constructor and Description |
---|
AuthenticationException()
构建一个新的实例
AuthenticationException 。
|
AuthenticationException(String detail)
构建
AuthenticationException 新实例的详细信息。
|
AuthenticationException(String detail, Throwable ex)
构建
AuthenticationException 新实例的详细信息和一根异常。
|
getCause, initCause, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public AuthenticationException()
AuthenticationException
。根异常和详细的消息都是空的。
public AuthenticationException(String detail)
AuthenticationException
新实例的详细信息。根异常是空的。
detail
-可能为空的字符串包含异常的详细信息。
Throwable.getMessage()
public AuthenticationException(String detail, Throwable ex)
AuthenticationException
新实例的详细信息和一根异常。
detail
-可能为空的字符串包含异常的详细信息。
ex
-引发此异常可能空根异常。
Throwable.getMessage()
,
SaslException.getCause()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.