Package org.infinispan.commons.util
Class SaslUtils
- java.lang.Object
-
- org.infinispan.commons.util.SaslUtils
-
public final class SaslUtils extends Object
Utility methods for handling SASL authentication- Author:
- David M. Lloyd, Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description SaslUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<SaslClientFactory>
getSaslClientFactories()
Returns a collection of all of the registeredSaslClientFactory
s where the order is based on the order of the Provider registration and/or class path order.static Collection<SaslClientFactory>
getSaslClientFactories(ClassLoader classLoader, boolean includeGlobal)
Returns a collection of all of the registeredSaslClientFactory
s where the order is based on the order of the Provider registration and/or class path order.static Collection<SaslServerFactory>
getSaslServerFactories()
Returns a collection of all of the registeredSaslServerFactory
s where the order is based on the order of the Provider registration and/or class path order.static Collection<SaslServerFactory>
getSaslServerFactories(ClassLoader classLoader, boolean includeGlobal)
Returns a collection of all of the registeredSaslServerFactory
s where the order is based on the order of the Provider registration and/or class path order.
-
-
-
Method Detail
-
getSaslServerFactories
public static Collection<SaslServerFactory> getSaslServerFactories(ClassLoader classLoader, boolean includeGlobal)
Returns a collection of all of the registeredSaslServerFactory
s where the order is based on the order of the Provider registration and/or class path order. Class path providers are listed before global providers; in the event of a name conflict, the class path provider is preferred.- Parameters:
classLoader
- the class loader to useincludeGlobal
-true
to include globally registered providers,false
to exclude them- Returns:
- the
Iterator
ofSaslServerFactory
s
-
getSaslServerFactories
public static Collection<SaslServerFactory> getSaslServerFactories()
Returns a collection of all of the registeredSaslServerFactory
s where the order is based on the order of the Provider registration and/or class path order.- Returns:
- the
Iterator
ofSaslServerFactory
s
-
getSaslClientFactories
public static Collection<SaslClientFactory> getSaslClientFactories(ClassLoader classLoader, boolean includeGlobal)
Returns a collection of all of the registeredSaslClientFactory
s where the order is based on the order of the Provider registration and/or class path order. Class path providers are listed before global providers; in the event of a name conflict, the class path provider is preferred.- Parameters:
classLoader
- the class loader to useincludeGlobal
-true
to include globally registered providers,false
to exclude them- Returns:
- the
Iterator
ofSaslClientFactory
s
-
getSaslClientFactories
public static Collection<SaslClientFactory> getSaslClientFactories()
Returns a collection of all of the registeredSaslClientFactory
s where the order is based on the order of the Provider registration and/or class path order.- Returns:
- the
Iterator
ofSaslClientFactory
s
-
-