Package org.wildfly.security.sasl.util
Class SaslFactories
- java.lang.Object
-
- org.wildfly.security.sasl.util.SaslFactories
-
public final class SaslFactories extends Object
A utility class for discovering SASL client and server factories.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SaslClientFactorygetElytronSaslClientFactory()Get a SASL client factory which returns an Elytron-provided mechanism.static SaslServerFactorygetElytronSaslServerFactory()Get a SASL server factory which returns an Elytron-provided mechanism.static SaslClientFactorygetEmptySaslClientFactory()Get aSaslClientFactorywhich does not provide any mechanisms.static SaslServerFactorygetEmptySaslServerFactory()Get aSaslServerFactorywhich does not provide any mechanisms.static SecurityProviderSaslClientFactorygetProviderSaslClientFactory()Get a SASL client factory which uses the currently installed security providers to locate mechanisms.static SecurityProviderSaslServerFactorygetProviderSaslServerFactory()Get a SASL server factory which uses the currently installed security providers to locate mechanisms.static SaslClientFactorygetSearchSaslClientFactory(ClassLoader... classLoaders)Get a SASL client factory which searches all the given class loaders in order for mechanisms.static SaslServerFactorygetSearchSaslServerFactory(ClassLoader... classLoaders)Get a SASL server factory which searches all the given class loaders in order for mechanisms.
-
-
-
Method Detail
-
getElytronSaslClientFactory
public static SaslClientFactory getElytronSaslClientFactory()
Get a SASL client factory which returns an Elytron-provided mechanism.- Returns:
- the SASL client factory (not
null)
-
getElytronSaslServerFactory
public static SaslServerFactory getElytronSaslServerFactory()
Get a SASL server factory which returns an Elytron-provided mechanism.- Returns:
- the SASL server factory (not
null)
-
getSearchSaslClientFactory
public static SaslClientFactory getSearchSaslClientFactory(ClassLoader... classLoaders)
Get a SASL client factory which searches all the given class loaders in order for mechanisms.- Parameters:
classLoaders- the class loaders to search- Returns:
- the SASL client factory (not
null)
-
getSearchSaslServerFactory
public static SaslServerFactory getSearchSaslServerFactory(ClassLoader... classLoaders)
Get a SASL server factory which searches all the given class loaders in order for mechanisms.- Parameters:
classLoaders- the class loaders to search- Returns:
- the SASL server factory (not
null)
-
getProviderSaslClientFactory
public static SecurityProviderSaslClientFactory getProviderSaslClientFactory()
Get a SASL client factory which uses the currently installed security providers to locate mechanisms.- Returns:
- the SASL client factory (not
null)
-
getProviderSaslServerFactory
public static SecurityProviderSaslServerFactory getProviderSaslServerFactory()
Get a SASL server factory which uses the currently installed security providers to locate mechanisms.- Returns:
- the SASL server factory (not
null)
-
getEmptySaslClientFactory
public static SaslClientFactory getEmptySaslClientFactory()
Get aSaslClientFactorywhich does not provide any mechanisms.
-
getEmptySaslServerFactory
public static SaslServerFactory getEmptySaslServerFactory()
Get aSaslServerFactorywhich does not provide any mechanisms.
-
-