public class SaslServerContext extends java.lang.Object implements SaslContext
构造器和说明 |
---|
SaslServerContext(javax.security.sasl.SaslServerFactory saslServerFactory,
java.lang.String mech,
java.lang.String serverName,
javax.security.auth.callback.CallbackHandler callback_handler,
java.util.Map<java.lang.String,java.lang.String> props,
javax.security.auth.Subject subject) |
限定符和类型 | 方法和说明 |
---|---|
void |
awaitCompletion(long timeout) |
void |
dispose() |
java.lang.String |
getAuthorizationID() |
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 SaslServerContext(javax.security.sasl.SaslServerFactory saslServerFactory, java.lang.String mech, java.lang.String serverName, 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 awaitCompletion(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.String getAuthorizationID()
public void dispose()
dispose
在接口中 SaslContext