SaslImpl

Undocumented in source.
class SaslImpl : Sasl , SaslFrameBodyHandler!Void, SaslFrameHandler , TransportLayer {}

Constructors

this
this(TransportImpl transport, int maxFrameSize)

@param maxFrameSize the size of the input and output buffers {@link SaslTransportWrapper#_inputBuffer} and {@link SaslTransportWrapper#_outputBuffer}.

Members

Classes

SaslTransportWrapper
class SaslTransportWrapper
Undocumented in source.
SwitchingSaslTransportWrapper
class SwitchingSaslTransportWrapper
Undocumented in source.

Enums

Role
enum Role
Undocumented in source.

Functions

allowSkip
void allowSkip(bool allowSkip)
Undocumented in source. Be warned that the author may not have intended to support it.
client
void client()
Undocumented in source. Be warned that the author may not have intended to support it.
done
void done(hunt.proton.engine.Sasl.SaslOutcome outcome)
Undocumented in source. Be warned that the author may not have intended to support it.
fail
void fail()
Undocumented in source. Be warned that the author may not have intended to support it.
getChallengeResponse
Binary getChallengeResponse()
Undocumented in source. Be warned that the author may not have intended to support it.
getChosenMechanism
Symbol getChosenMechanism()
Undocumented in source. Be warned that the author may not have intended to support it.
getHostname
string getHostname()
Undocumented in source. Be warned that the author may not have intended to support it.
getOutcome
hunt.proton.engine.Sasl.SaslOutcome getOutcome()
Undocumented in source. Be warned that the author may not have intended to support it.
getRemoteMechanisms
string[] getRemoteMechanisms()
Undocumented in source. Be warned that the author may not have intended to support it.
getState
SaslState getState()
Undocumented in source. Be warned that the author may not have intended to support it.
handle
void handle(SaslFrameBody o, Binary payload)
Undocumented in source. Be warned that the author may not have intended to support it.
handleChallenge
void handleChallenge(SaslChallenge saslChallenge, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
handleInit
void handleInit(SaslInit saslInit, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMechanisms
void handleMechanisms(SaslMechanisms saslMechanisms, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
handleOutcome
void handleOutcome(hunt.proton.amqp.security.SaslOutcome.SaslOutcome saslOutcome, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
handleResponse
void handleResponse(SaslResponse saslResponse, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
invoke
void invoke(SaslFrameBodyHandler!Void handler, Binary payload, Void context)
Undocumented in source. Be warned that the author may not have intended to support it.
isDone
bool isDone()
Undocumented in source. Be warned that the author may not have intended to support it.
pending
int pending()
Undocumented in source. Be warned that the author may not have intended to support it.
plain
void plain(String username, String password)
Undocumented in source. Be warned that the author may not have intended to support it.
processHeader
int processHeader()
Undocumented in source. Be warned that the author may not have intended to support it.
recv
int recv(byte[] bytes, int offset, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
send
int send(byte[] bytes, int offset, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
server
void server()
Undocumented in source. Be warned that the author may not have intended to support it.
setChallengeResponse
void setChallengeResponse(Binary challengeResponse)
Undocumented in source. Be warned that the author may not have intended to support it.
setListener
void setListener(SaslListener saslListener)
Undocumented in source. Be warned that the author may not have intended to support it.
setMechanism
void setMechanism(Symbol mechanism)
Undocumented in source. Be warned that the author may not have intended to support it.
setMechanisms
void setMechanisms(string[] mechanisms)
Undocumented in source. Be warned that the author may not have intended to support it.
setPending
void setPending(ByteBuffer pending)
Undocumented in source. Be warned that the author may not have intended to support it.
setRemoteHostname
void setRemoteHostname(string hostname)
Undocumented in source. Be warned that the author may not have intended to support it.
setResponse
void setResponse(Binary initialResponse)
Undocumented in source. Be warned that the author may not have intended to support it.
wrap
TransportWrapper wrap(TransportInput input, TransportOutput output)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

SASL_FRAME_TYPE
byte SASL_FRAME_TYPE;
Undocumented in source.

Inherited Members

From Sasl

getState
SaslState getState()

Access the current state of the layer.

setMechanisms
void setMechanisms(string[] mechanisms)

Set the acceptable SASL mechanisms for the layer.

getRemoteMechanisms
string[] getRemoteMechanisms()

Retrieve the list of SASL mechanisms provided by the remote.

setRemoteHostname
void setRemoteHostname(string hostname)

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

getHostname
string getHostname()

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

pending
int pending()

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

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.

done
void done(SaslOutcome outcome)

Set the outcome of SASL negotiation

plain
void plain(String username, String password)

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

getOutcome
SaslOutcome getOutcome()

Retrieve the outcome of SASL negotiation.

client
void client()
Undocumented in source.
server
void server()
Undocumented in source.
allowSkip
void allowSkip(bool allowSkip)

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

setListener
void setListener(SaslListener saslListener)

Adds a listener to receive notice of frames having arrived.

From SaslFrameHandler

handle
void handle(SaslFrameBody frameBody, Binary payload)
Undocumented in source.
isDone
bool isDone()
Undocumented in source.

From TransportLayer

wrap
TransportWrapper wrap(TransportInput input, TransportOutput output)
Undocumented in source.

Meta