ProtonSaslMechanismFinderImpl.findMatchingMechanism

Attempts to find a matching Mechanism implementation given a list of supported mechanisms from a remote peer. Can return null if no matching Mechanisms are found.

@param username the username, or null if there is none @param password the password, or null if there is none @param mechRestrictions The possible mechanism(s) to which the client should restrict its mechanism selection to if offered by the server, or null/empty if there is no restriction @param remoteMechanisms list of mechanism names that are supported by the remote peer.

@return the best matching Mechanism for the supported remote set.

class ProtonSaslMechanismFinderImpl
static
findMatchingMechanism
(
string username
,
string password
,
Set!string mechRestrictions
,)

Meta