public class SaslServerContext extends java.lang.Object implements SaslContext
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.SaslExceptionpublic boolean isSuccessful()
isSuccessful in interface SaslContextpublic boolean needsWrapping()
needsWrapping in interface SaslContextpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
throws javax.security.sasl.SaslException
wrap in interface SaslContextjavax.security.sasl.SaslExceptionpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws javax.security.sasl.SaslException
unwrap in interface SaslContextjavax.security.sasl.SaslExceptionpublic Message nextMessage(Address address, SaslHeader header) throws javax.security.sasl.SaslException
nextMessage in interface SaslContextjavax.security.sasl.SaslExceptionpublic void awaitCompletion(long timeout)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.String getAuthorizationID()
public void dispose()
dispose in interface SaslContextCopyright © 1998-2020 Red Hat. All Rights Reserved.