| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 SaslException 的软件包 | |
|---|---|
| javax.security.sasl | 包含用于支持 SASL 的类和接口。 | 
| javax.security.sasl 中 SaslException 的使用 | 
|---|
| javax.security.sasl 中 SaslException 的子类 | |
|---|---|
 class | 
AuthenticationException
此异常由 SASL 机制实现抛出,指示由于和验证有关的原因(如无效的标识、口令 或密钥),SASL 交换已失败。  | 
| 抛出 SaslException 的 javax.security.sasl 中的方法 | |
|---|---|
static SaslClient | 
Sasl.createSaslClient(String[] mechanisms,
                 String authorizationId,
                 String protocol,
                 String serverName,
                 Map<String,?> props,
                 CallbackHandler cbh)
使用提供的参数创建 SaslClient。  | 
 SaslClient | 
SaslClientFactory.createSaslClient(String[] mechanisms,
                 String authorizationId,
                 String protocol,
                 String serverName,
                 Map<String,?> props,
                 CallbackHandler cbh)
使用提供的参数创建 SaslClient。  | 
static SaslServer | 
Sasl.createSaslServer(String mechanism,
                 String protocol,
                 String serverName,
                 Map<String,?> props,
                 CallbackHandler cbh)
为指定机制创建一个 SaslServer。  | 
 SaslServer | 
SaslServerFactory.createSaslServer(String mechanism,
                 String protocol,
                 String serverName,
                 Map<String,?> props,
                 CallbackHandler cbh)
使用提供的参数创建 SaslServer。  | 
 void | 
SaslClient.dispose()
处置 SaslClient 可能使用的所有系统资源或安全敏感信息。  | 
 void | 
SaslServer.dispose()
处置 SaslServer 可能使用的所有系统资源或安全敏感信息。  | 
 byte[] | 
SaslClient.evaluateChallenge(byte[] challenge)
评估 challenge 数据并生成一个响应。  | 
 byte[] | 
SaslServer.evaluateResponse(byte[] response)
评估响应数据并生成一个 challenge。  | 
 byte[] | 
SaslClient.unwrap(byte[] incoming,
       int offset,
       int len)
解包接收自服务器的 byte 数组。  | 
 byte[] | 
SaslServer.unwrap(byte[] incoming,
       int offset,
       int len)
解包接收自客户端的 byte 数组。  | 
 byte[] | 
SaslClient.wrap(byte[] outgoing,
     int offset,
     int len)
包装要发送到服务器的 byte 数组。  | 
 byte[] | 
SaslServer.wrap(byte[] outgoing,
     int offset,
     int len)
包装要发送到客户端的 byte 数组。  | 
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。