Package org.wildfly.security.sasl.util
Class SecurityProviderSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.SecurityProviderSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
A
SaslServerFactory which uses the currently installed security providers to acquire a delegate
SaslServerFactory. The provider service instances may or may not be cached.- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.SecurityProviderSaslServerFactory(Supplier<Provider[]> providerSupplier) 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
-
SecurityProviderSaslServerFactory
Construct a new instance.- Parameters:
providerSupplier- the provider supplier
-
SecurityProviderSaslServerFactory
public SecurityProviderSaslServerFactory()Construct a new instance. The currently installed system providers are used.
-
-
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
-