
public final class ServiceLoaderSaslServerFactory extends Object implements SaslServerFactory
SaslServerFactory which uses a ServiceLoader to find implementations.| Constructor and Description |
|---|
ServiceLoaderSaslServerFactory(ClassLoader classLoader)
Construct a new instance.
|
ServiceLoaderSaslServerFactory(ServiceLoader<SaslServerFactory> loader)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
String[] |
getMechanismNames(Map<String,?> props) |
public ServiceLoaderSaslServerFactory(ServiceLoader<SaslServerFactory> loader)
loader - the service loader to usepublic ServiceLoaderSaslServerFactory(ClassLoader classLoader)
classLoader - the class loader to use as the basis of the provider search, or null to use the system
or bootstrap class loaderpublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslServer in interface SaslServerFactorySaslExceptionpublic String[] getMechanismNames(Map<String,?> props)
getMechanismNames in interface SaslServerFactoryCopyright © 2020 JBoss by Red Hat. All rights reserved.