Package org.wildfly.security.sasl.util
Class SecurityProviderSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.SecurityProviderSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class SecurityProviderSaslServerFactory extends Object implements SaslServerFactory
ASaslServerFactory
which uses the currently installed security providers to acquire a delegateSaslServerFactory
. The provider service instances may or may not be cached.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Provider[]>
providerSupplier
private static String
SERVICE_TYPE
-
Constructor Summary
Constructors Constructor Description SecurityProviderSaslServerFactory()
Construct a new instance.SecurityProviderSaslServerFactory(Supplier<Provider[]> providerSupplier)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Constructor Detail
-
SecurityProviderSaslServerFactory
public SecurityProviderSaslServerFactory(Supplier<Provider[]> providerSupplier)
Construct a new instance.- Parameters:
providerSupplier
- the provider supplier
-
SecurityProviderSaslServerFactory
public SecurityProviderSaslServerFactory()
Construct a new instance. The currently installed system providers are used.
-
-
Method Detail
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
-
-