Package org.wildfly.security.sasl.util
Class ServiceLoaderSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.ServiceLoaderSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
A
SaslServerFactory which uses a ServiceLoader to find implementations.- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionServiceLoaderSaslServerFactory(ClassLoader classLoader) Construct a new instance.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)
-
Constructor Details
-
ServiceLoaderSaslServerFactory
Construct a new instance.- Parameters:
loader- the service loader to use
-
ServiceLoaderSaslServerFactory
Construct a new instance.- Parameters:
classLoader- the class loader to use as the basis of the provider search, ornullto use the system or bootstrap class loader
-
-
Method Details
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServerin interfaceSaslServerFactory- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNamesin interfaceSaslServerFactory
-