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
ASaslServerFactory
which aggregates otherSaslServerFactory
instances into one.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SaslServerFactory[]
factories
-
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 SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Field Detail
-
factories
private final SaslServerFactory[] factories
-
-
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:
createSaslServer
in interfaceSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
-
-