public class SaslClientContext extends Object implements SaslContext
| Constructor and Description |
|---|
SaslClientContext(SaslClientFactory saslClientFactory,
String mech,
String server_name,
CallbackHandler callback_handler,
Map<String,String> props,
Subject subject) |
| Modifier and Type | Method and Description |
|---|---|
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(SaslClientFactory saslClientFactory, String mech, String server_name, CallbackHandler callback_handler, Map<String,String> props, Subject subject) throws SaslException
SaslExceptionpublic boolean isSuccessful()
isSuccessful in interface SaslContextpublic boolean needsWrapping()
needsWrapping in interface SaslContextpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslContextSaslExceptionpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslContextSaslExceptionpublic Message nextMessage(Address address, SaslHeader header) throws SaslException
nextMessage in interface SaslContextSaslExceptionpublic void dispose()
dispose in interface SaslContextpublic Message addHeader(Message msg, byte[] payload) throws SaslException
SaslExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.