SaslHandler 接口

定义

Interface definition for what client events are expected to be handled during Sasl negotiation

public interface SaslHandler

方法

chooseSaslMechanism(String[] mechanisms)

Handle the provided mechanisms and return the mechanism to be used from a provided list

getInitPayload(String chosenMechanism)

Based on the chosen mechanism, builds and returns the bytes to be sent in the payload for the Sasl init message

getPlainPassword()
getPlainUsername()
handleChallenge(byte[] saslChallenge)

Handles a given challenge and returns the bytes to be sent in the payload of the Sasl response message

handleOutcome(SaslOutcome outcome)

Handles what to do upon the Sasl negotiation finishing.

setSasToken(String sasToken)

适用于