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
ConstructorsConstructorDescriptionMechanismProviderFilteringSaslServerFactory(SaslServerFactory delegate, BiPredicate<String, Provider> predicate) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslServer(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 Details
-
MechanismProviderFilteringSaslServerFactory
public MechanismProviderFilteringSaslServerFactory(SaslServerFactory delegate, BiPredicate<String, Provider> predicate) Construct a new instance.- Parameters:
delegate- the delegate factorypredicate- the predicate to execute
-
-
Method Details
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServerin interfaceSaslServerFactory- Overrides:
createSaslServerin classAbstractDelegatingSaslServerFactory- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNamesin interfaceSaslServerFactory- Overrides:
getMechanismNamesin classAbstractDelegatingSaslServerFactory
-