SaslHandler.getInitPayload(String chosenMechanism) 方法

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

参数

chosenMechanism
String

the sasl mechanism that was chosen

返回

byte []

the bytes to be used as the paylaod for the Sasl init message

例外

Exception

if sasl negotiation fails

适用于