public class ProtonSaslMechanismFinderImpl extends Object
| Constructor and Description |
|---|
ProtonSaslMechanismFinderImpl() |
| Modifier and Type | Method and Description |
|---|---|
static ProtonSaslMechanism |
findMatchingMechanism(String username,
String password,
Set<String> mechRestrictions,
String... remoteMechanisms)
Attempts to find a matching Mechanism implementation given a list of supported mechanisms from a remote peer.
|
protected static ProtonSaslMechanismFactory |
findMechanismFactory(String name)
Searches for a mechanism factory by using the scheme from the given name.
|
public static ProtonSaslMechanism findMatchingMechanism(String username, String password, Set<String> mechRestrictions, String... remoteMechanisms)
username - the username, or null if there is nonepassword - the password, or null if there is nonemechRestrictions - 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 restrictionremoteMechanisms - list of mechanism names that are supported by the remote peer.protected static ProtonSaslMechanismFactory findMechanismFactory(String name)
name - The name of the authentication mechanism to search for.Copyright © 2020. All rights reserved.