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.SaslException
public boolean isSuccessful()
isSuccessful
in interface SaslContext
public boolean needsWrapping()
needsWrapping
in interface SaslContext
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException
wrap
in interface SaslContext
javax.security.sasl.SaslException
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException
unwrap
in interface SaslContext
javax.security.sasl.SaslException
public Message nextMessage(Address address, SaslHeader header) throws javax.security.sasl.SaslException
nextMessage
in interface 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
in interface SaslContext
Copyright © 1998-2020 Red Hat. All Rights Reserved.