java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.NamingSecurityException
javax.naming.AuthenticationNotSupportedException
- 所有已实现的接口:
Serializable
当不支持所请求的特定身份验证风格时,将抛出此异常。例如,如果程序试图使用强身份验证但目录/命名仅支持简单身份验证,则会抛出此异常。特定类型的身份验证的标识是特定于提供者和服务的。它可以使用特定的身份验证方案来指定,例如使用 SASL 或通用身份验证说明符(例如“简单”和“强”)标识的身份验证方案。
如果程序想要特别处理此异常,则应在尝试捕获 NamingException 之前显式捕获 AuthenticationNotSupportedException。在捕获 AuthenticationNotSupportedException 之后,程序可以通过相应地更新已解析上下文的环境属性,使用不同的身份验证风格重新尝试身份验证。
适用于 NamingException 的同步和序列化问题直接适用于此处。
- 自从:
- 1.3
- 参见:
-
字段摘要
在类 javax.naming.NamingException 中声明的字段
remainingName, resolvedName, resolvedObj, rootException -
构造方法总结
构造方法构造方法描述构造一个新的 AuthenticationNotSupportedException 实例,所有名称解析字段和解释都初始化为 null。AuthenticationNotSupportedException(String explanation) 使用说明构造 AuthenticationNotSupportedException 的新实例。 -
方法总结
在类 javax.naming.NamingException 中声明的方法
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString在类 java.lang.Throwable 中声明的方法
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
构造方法详细信息
-
AuthenticationNotSupportedException
使用说明构造 AuthenticationNotSupportedException 的新实例。所有其他字段默认为空。- 参数:
explanation- 一个可能为空的字符串,其中包含有关此异常的其他详细信息。- 参见:
-
AuthenticationNotSupportedException
public AuthenticationNotSupportedException()构造一个新的 AuthenticationNotSupportedException 实例,所有名称解析字段和解释都初始化为 null。
-