public class SaslMechanismFinder extends Object
Constructor and Description |
---|
SaslMechanismFinder() |
Modifier and Type | Method and Description |
---|---|
static Mechanism |
findMatchingMechanism(String username,
String password,
Principal localPrincipal,
Set<String> mechRestrictions,
String... remoteMechanisms)
Attempts to find a matching Mechanism implementation given a list of supported
mechanisms from a remote peer.
|
protected static MechanismFactory |
findMechanismFactory(String name)
Searches for a MechanismFactory by using the scheme from the given name.
|
public static Mechanism findMatchingMechanism(String username, String password, Principal localPrincipal, Set<String> mechRestrictions, String... remoteMechanisms)
username
- the username, or null if there is nonepassword
- the password, or null if there is nonelocalPrincipal
- the Principal associated with the transport, 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 if there
is no restrictionremoteMechanisms
- list of mechanism names that are supported by the remote peer.protected static MechanismFactory findMechanismFactory(String name)
name
- The name of the authentication mechanism to search for.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.