Sasl

Undocumented in source.

Members

Functions

allowSkip
void allowSkip(bool allowSkip)

Set whether servers may accept incoming connections that skip the SASL layer negotiation.

client
void client()
Undocumented in source.
done
void done(SaslOutcome outcome)

Set the outcome of SASL negotiation

getHostname
string getHostname()

Retrieve the hostname indicated by the client when sending its SaslInit.

getOutcome
SaslOutcome getOutcome()

Retrieve the outcome of SASL negotiation.

getRemoteMechanisms
string[] getRemoteMechanisms()

Retrieve the list of SASL mechanisms provided by the remote.

getState
SaslState getState()

Access the current state of the layer.

pending
int pending()

Determine the size of the bytes available via recv().

plain
void plain(String username, String password)

Configure the SASL layer to use the "PLAIN" mechanism.

recv
int recv(byte[] bytes, int offset, int size)

Read challenge/response/additional data sent from the peer.

send
int send(byte[] bytes, int offset, int size)

Send challenge/response/additional data to the peer.

server
void server()
Undocumented in source.
setListener
void setListener(SaslListener saslListener)

Adds a listener to receive notice of frames having arrived.

setMechanisms
void setMechanisms(string[] mechanisms)

Set the acceptable SASL mechanisms for the layer.

setRemoteHostname
void setRemoteHostname(string hostname)

Set the remote hostname to indicate the host being connected to when sending a SaslInit to the server.

Meta