Package org.wildfly.security.sasl.util
Class MechanismProviderFilteringSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.MechanismProviderFilteringSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class MechanismProviderFilteringSaslServerFactory extends AbstractDelegatingSaslServerFactory
A SASL server factory which filters mechanisms based on the combination of mechanism name and security provider. Mechanisms which do not come from a security provider are not filtered.- Author:
- David M. Lloyd
-
-
Field Summary
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description MechanismProviderFilteringSaslServerFactory(SaslServerFactory delegate, BiPredicate<String,Provider> predicate)
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)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, toString
-
-
-
-
Constructor Detail
-
MechanismProviderFilteringSaslServerFactory
public MechanismProviderFilteringSaslServerFactory(SaslServerFactory delegate, BiPredicate<String,Provider> predicate)
Construct a new instance.- Parameters:
delegate
- the delegate factorypredicate
- the predicate to execute
-
-
Method Detail
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Overrides:
createSaslServer
in classAbstractDelegatingSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
- Overrides:
getMechanismNames
in classAbstractDelegatingSaslServerFactory
-
-