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
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 dispose()
dispose
in interface SaslContext
public Message addHeader(Message msg, byte[] payload) throws SaslException
SaslException
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.