SaslHandler.chooseSaslMechanism(String[] mechanisms) 方法

public String chooseSaslMechanism(String[] mechanisms)

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

参数

mechanisms
String []

A list of available Sasl Mechanisms offered by the service

返回

String

the mechanism to use

例外

Exception

if sasl negotiation fails

适用于