public class AuthenticationException extends NamingSecurityException
如果程序要特别处理这个异常,它应该在试图抓住namingexception抓authenticationexception明确。authenticationexception抓后,程序会尝试通过与适当的资格认证更新解决上下文的环境性能。
同步和序列化的问题,适用于namingexception直接应用在这里。
remainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
AuthenticationException()
构建一个新的实例authenticationexception。
|
AuthenticationException(String explanation)
构建一个使用说明提供的authenticationexception新实例。
|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public AuthenticationException(String explanation)
explanation
-可能为空的字符串包含更多的细节关于这个例外。
Throwable.getMessage()
public AuthenticationException()
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.