public interface SaslHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
SaslHandler.SaslOutcome
Possible outcomes of Sasl negotiation as per AMQP 1.0
|
| Modifier and Type | Method and Description |
|---|---|
String |
chooseSaslMechanism(String[] mechanisms)
Handle the provided mechanisms and return the mechanism to be used from a provided list
|
byte[] |
getInitPayload(String chosenMechanism)
Based on the chosen mechanism, builds and returns the bytes to be sent in the payload for the Sasl init message
|
String |
getPlainPassword() |
String |
getPlainUsername() |
byte[] |
handleChallenge(byte[] saslChallenge)
Handles a given challenge and returns the bytes to be sent in the payload of the Sasl response message
|
void |
handleOutcome(SaslHandler.SaslOutcome outcome)
Handles what to do upon the Sasl negotiation finishing.
|
void |
setSasToken(String sasToken) |
String chooseSaslMechanism(String[] mechanisms) throws Exception
mechanisms - A list of available Sasl Mechanisms offered by the serviceException - if sasl negotiation failsbyte[] getInitPayload(String chosenMechanism) throws Exception
chosenMechanism - the sasl mechanism that was chosenException - if sasl negotiation failsbyte[] handleChallenge(byte[] saslChallenge)
throws Exception
saslChallenge - The bytes from the Sasl challenge received from the serviceException - if sasl negotiation failsvoid handleOutcome(SaslHandler.SaslOutcome outcome) throws Exception
outcome - The outcome of the sasl negotiationException - if sasl negotiation failsString getPlainUsername()
String getPlainPassword()
void setSasToken(String sasToken)
Copyright © 2019. All rights reserved.