软件包 | 描述 |
---|---|
javax.security.sasl |
包含支持SASL的类和接口。
|
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationException
抛出一个机制的实施表明SASL交换由于相关认证失败原因是例外,如无效的身份,密码,或关键。
|
Modifier and Type | Method and Description |
---|---|
SaslClient |
SaslClientFactory.createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
使用提供的参数创建一个saslclient。
|
static SaslClient |
Sasl.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 |
SaslServer.dispose()
处置任何系统资源或安全敏感信息的saslserver可能使用。
|
void |
SaslClient.dispose()
处置任何系统资源或安全敏感信息的saslclient可能使用。
|
byte[] |
SaslClient.evaluateChallenge(byte[] challenge)
评估挑战数据并生成响应。
|
byte[] |
SaslServer.evaluateResponse(byte[] response)
评估响应数据,并生成一个挑战。
|
byte[] |
SaslServer.unwrap(byte[] incoming, int offset, int len)
打开从客户端接收到一个字节数组。
|
byte[] |
SaslClient.unwrap(byte[] incoming, int offset, int len)
打开从服务器接收到的字节数组。
|
byte[] |
SaslServer.wrap(byte[] outgoing, int offset, int len)
将一个字节数组封装到客户端。
|
byte[] |
SaslClient.wrap(byte[] outgoing, int offset, int len)
将一个字节数组封装到服务器上。
|
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.