public class SaslClientContext extends java.lang.Object implements SaslContext
Constructor and Description |
---|
SaslClientContext(javax.security.sasl.SaslClientFactory saslClientFactory,
java.lang.String mech,
java.lang.String server_name,
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 |
---|---|
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(javax.security.sasl.SaslClientFactory saslClientFactory, java.lang.String mech, java.lang.String server_name, 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 dispose()
dispose
in interface SaslContext
Copyright © 1998-2020 Red Hat. All Rights Reserved.