Package org.wildfly.security.sasl.util
Class AggregateSaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AggregateSaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public final class AggregateSaslClientFactory extends Object implements SaslClientFactory
ASaslClientFactory
which aggregates otherSaslClientFactory
instances into one.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AggregateSaslClientFactory(Collection<SaslClientFactory> factories)
Construct a new instance.AggregateSaslClientFactory(SaslClientFactory... factories)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Constructor Detail
-
AggregateSaslClientFactory
public AggregateSaslClientFactory(SaslClientFactory... factories)
Construct a new instance.- Parameters:
factories
- the factories to aggregate (must not benull
)
-
AggregateSaslClientFactory
public AggregateSaslClientFactory(Collection<SaslClientFactory> factories)
Construct a new instance.- Parameters:
factories
- the factories to aggregate (must not benull
)
-
-
Method Detail
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslClientFactory
-
-