public class SaslServerContext extends Object implements SaslContext
Constructor and Description |
---|
SaslServerContext(SaslServerFactory saslServerFactory,
String mech,
String serverName,
CallbackHandler callback_handler,
Map<String,String> props,
Subject subject) |
Modifier and Type | Method and Description |
---|---|
void |
awaitCompletion(long timeout) |
void |
dispose() |
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(SaslServerFactory saslServerFactory, String mech, String serverName, CallbackHandler callback_handler, Map<String,String> props, Subject subject) throws SaslException
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 SaslException
wrap
in interface SaslContext
SaslException
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
unwrap
in interface SaslContext
SaslException
public Message nextMessage(Address address, SaslHeader header) throws SaslException
nextMessage
in interface SaslContext
SaslException
public void awaitCompletion(long timeout) throws InterruptedException
InterruptedException
public String getAuthorizationID()
public void dispose()
dispose
in interface SaslContext
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.