SaslHandler.getInitPayload(String chosenMechanism) 方法

定义

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

public byte [] getInitPayload(String chosenMechanism)

参数

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

适用于