public class SaslClientContext extends java.lang.Object implements SaslContext
构造器和说明 |
---|
SaslClientContext(javax.security.sasl.SaslClientFactory saslClientFactory,
java.lang.String mech,
java.lang.String server_name,
javax.security.auth.callback.CallbackHandler callback_handler,
java.util.Map<java.lang.String,java.lang.String> props,
javax.security.auth.Subject subject) |
限定符和类型 | 方法和说明 |
---|---|
Message |
addHeader(Message msg,
byte[] payload) |
void |
dispose() |
boolean |
isSuccessful() |
boolean |
needsWrapping() |
Message |
nextMessage(Address address,
SaslHeader header) |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
public SaslClientContext(javax.security.sasl.SaslClientFactory saslClientFactory, java.lang.String mech, java.lang.String server_name, javax.security.auth.callback.CallbackHandler callback_handler, java.util.Map<java.lang.String,java.lang.String> props, javax.security.auth.Subject subject) throws javax.security.sasl.SaslException
javax.security.sasl.SaslException
public boolean isSuccessful()
isSuccessful
在接口中 SaslContext
public boolean needsWrapping()
needsWrapping
在接口中 SaslContext
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException
wrap
在接口中 SaslContext
javax.security.sasl.SaslException
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException
unwrap
在接口中 SaslContext
javax.security.sasl.SaslException
public Message nextMessage(Address address, SaslHeader header) throws javax.security.sasl.SaslException
nextMessage
在接口中 SaslContext
javax.security.sasl.SaslException
public void dispose()
dispose
在接口中 SaslContext