SaslHandler Interface
public interface SaslHandler
Interface definition for what client events are expected to be handled during Sasl negotiation
Method Summary
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(SaslOutcome outcome)
Handles what to do upon the Sasl negotiation finishing. |
void | setSasToken(String sasToken) |
Method Details
chooseSaslMechanism
public String chooseSaslMechanism(String[] mechanisms)
Handle the provided mechanisms and return the mechanism to be used from a provided list
Parameters:
Returns:
Throws:
getInitPayload
public 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
Parameters:
Returns:
getPlainPassword
public String getPlainPassword()
getPlainUsername
public String getPlainUsername()
handleChallenge
public byte [] handleChallenge(byte[] saslChallenge)
Handles a given challenge and returns the bytes to be sent in the payload of the Sasl response message
Parameters:
Returns:
Throws:
handleOutcome
public void handleOutcome(SaslOutcome outcome)
Handles what to do upon the Sasl negotiation finishing.
Parameters:
Throws:
setSasToken
public void setSasToken(String sasToken)
Parameters:
Applies to
Azure SDK for Java