Package org.wildfly.security.sasl.util
Class SecurityProviderSaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.SecurityProviderSaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public final class SecurityProviderSaslClientFactory extends Object implements SaslClientFactory
ASaslClientFactory
which uses the currently installed security providers to acquire a delegateSaslClientFactory
. 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 SecurityProviderSaslClientFactory()
Construct a new instance.SecurityProviderSaslClientFactory(Supplier<Provider[]> providerSupplier)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Constructor Detail
-
SecurityProviderSaslClientFactory
public SecurityProviderSaslClientFactory(Supplier<Provider[]> providerSupplier)
Construct a new instance.- Parameters:
providerSupplier
- the provider supplier
-
SecurityProviderSaslClientFactory
public SecurityProviderSaslClientFactory()
Construct a new instance. The currently installed system providers are used.
-
-
Method Detail
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslClientFactory
-
-