public class AuthenticationNotSupportedException extends NamingSecurityException
如果程序想要特别处理这个异常,那么在尝试捕获NamingException之前,它应该明确地捕获AuthenticationNotSupportedException。
捕获AuthenticationNotSupportedException
后,程序可以通过相应地更新解析的上下文的环境属性来重新尝试使用不同身份验证的身份验证。
适用于NamingException的同步和序列化问题直接在这里应用。
remainingName,
resolvedName, resolvedObj,
rootException
Constructor and Description |
---|
AuthenticationNotSupportedException()
构造一个新的AuthenticationNotSupportedException实例,所有名称解析字段和解释初始化为null。
|
AuthenticationNotSupportedException(String explanation)
使用说明构造一个新的AuthenticationNotSupportedException实例。
|
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 AuthenticationNotSupportedException(String explanation)
explanation
- 一个可能为null的字符串,其中包含有关此异常的其他详细信息。
Throwable.getMessage()
public AuthenticationNotSupportedException()