public final class ServiceLoaderSaslClientFactory extends Object implements SaslClientFactory
SaslClientFactory
which uses a ServiceLoader
to find implementations.Constructor and Description |
---|
ServiceLoaderSaslClientFactory(ClassLoader classLoader)
Construct a new instance.
|
ServiceLoaderSaslClientFactory(ServiceLoader<SaslClientFactory> loader)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
SaslClient |
createSaslClient(String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
String[] |
getMechanismNames(Map<String,?> props) |
public ServiceLoaderSaslClientFactory(ServiceLoader<SaslClientFactory> loader)
loader
- the service loader to usepublic ServiceLoaderSaslClientFactory(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 SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslClient
in interface SaslClientFactory
SaslException
public String[] getMechanismNames(Map<String,?> props)
getMechanismNames
in interface SaslClientFactory
Copyright © 2020 JBoss by Red Hat. All rights reserved.