public class SaslListenerImpl extends Object implements org.apache.qpid.proton.engine.SaslListener
| Constructor and Description |
|---|
SaslListenerImpl(SaslHandler saslHandler)
Sasl listener implementation that defers mechanism selection, init message payloads, and challenge handling to
the provided saslHandler
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getSavedException()
Returns an exception if the sasl negotiation encountered an exception, or null if it has not thrown any exceptions
|
void |
onSaslChallenge(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
onSaslInit(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
Does nothing.
|
void |
onSaslMechanisms(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
This event is fired when the service advertises some sasl authentication mechanisms.
|
void |
onSaslOutcome(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
This event is fired when Sasl negotiation finishes.
|
void |
onSaslResponse(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
Does nothing.
|
public SaslListenerImpl(SaslHandler saslHandler)
saslHandler - The object that decides how to choose which mechanism to use and how to build message payloadspublic void onSaslMechanisms(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslMechanisms in interface org.apache.qpid.proton.engine.SaslListenersasl - the Sasl objecttransport - the related transportpublic void onSaslChallenge(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslChallenge in interface org.apache.qpid.proton.engine.SaslListenersasl - the Sasl objecttransport - the related transportpublic void onSaslOutcome(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslOutcome in interface org.apache.qpid.proton.engine.SaslListenersasl - the Sasl objecttransport - the related transportpublic Exception getSavedException()
public void onSaslResponse(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslResponse in interface org.apache.qpid.proton.engine.SaslListenerpublic void onSaslInit(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslInit in interface org.apache.qpid.proton.engine.SaslListenerCopyright © 2019. All rights reserved.