Package org.wildfly.security.sasl.util
Class AggregateSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AggregateSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class AggregateSaslServerFactory extends Object implements SaslServerFactory
ASaslServerFactorywhich aggregates otherSaslServerFactoryinstances into one.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AggregateSaslServerFactory(Collection<SaslServerFactory> factories)Construct a new instance.AggregateSaslServerFactory(SaslServerFactory... factories)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServercreateSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)String[]getMechanismNames(Map<String,?> props)
-
-
-
Constructor Detail
-
AggregateSaslServerFactory
public AggregateSaslServerFactory(SaslServerFactory... factories)
Construct a new instance.- Parameters:
factories- the factories to aggregate (must not benull)
-
AggregateSaslServerFactory
public AggregateSaslServerFactory(Collection<SaslServerFactory> factories)
Construct a new instance.- Parameters:
factories- the factories to aggregate (must not benull)
-
-
Method Detail
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServerin interfaceSaslServerFactory- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNamesin interfaceSaslServerFactory
-
-