JavaTM 2 Platform
Standard Ed. 6

javax.naming
类 AuthenticationNotSupportedException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.naming.NamingException
              继承者 javax.naming.NamingSecurityException
                  继承者 javax.naming.AuthenticationNotSupportedException
所有已实现的接口:
Serializable

public class AuthenticationNotSupportedException
extends NamingSecurityException

当所请求验证的特定 flavor 不受支持时,抛出此异常。例如,如果程序试图使用强验证,但目录/命名服务只支持简单验证,则将抛出此异常。验证特定 flavor 的标识是特定于提供者和服务器的。它可以使用特定的验证方案指定,比如那些使用 SASL 标识的方案,或者一般验证说明符(比如 "simple" 和 "strong")。

如果程序想要单独处理此异常,它应该在试图捕获 NamingException 之前显式捕获 AuthenticationNotSupportedException。在捕获 AuthenticationNotSupportedException 之后,通过相应地更新已解析上下文的环境属性,该程序可以使用不同的验证 flavor 重新尝试进行验证。

应用于 NamingException 的同步和序列化问题在这里可以直接应用。

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

字段摘要
 
从类 javax.naming.NamingException 继承的字段
remainingName, resolvedName, resolvedObj, rootException
 
构造方法摘要
AuthenticationNotSupportedException()
          构造一个新的 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 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

AuthenticationNotSupportedException

public AuthenticationNotSupportedException(String explanation)
使用解释构造一个新的 AuthenticationNotSupportedException 实例。其他所有字段默认为 null。

参数:
explanation - 一个可能为 null 的字符串,包含有关此异常的附加详细信息。
另请参见:
Throwable.getMessage()

AuthenticationNotSupportedException

public AuthenticationNotSupportedException()
构造一个新的 AuthenticationNotSupportedException 实例,将解释和所有名称解析字段初始化为 null。


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only