Package org.jgroups.auth.sasl
Class SaslUtils
- java.lang.Object
-
- org.jgroups.auth.sasl.SaslUtils
-
public final class SaslUtils extends java.lang.ObjectUtility methods for handling SASL authentication- Author:
- David M. Lloyd, Tristan Tarrant
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Iterator<javax.security.sasl.SaslClientFactory>getSaslClientFactories()Returns an iterator of all of the registeredSaslClientFactorys where the order is based on the order of the Provider registration and/or class path order.static java.util.Iterator<javax.security.sasl.SaslClientFactory>getSaslClientFactories(java.lang.ClassLoader classLoader, boolean includeGlobal)Returns an iterator of all of the registeredSaslClientFactorys where the order is based on the order of the Provider registration and/or class path order.static javax.security.sasl.SaslClientFactorygetSaslClientFactory(java.lang.String mech, java.util.Map<java.lang.String,?> props)static java.util.Iterator<javax.security.sasl.SaslServerFactory>getSaslServerFactories()Returns an iterator of all of the registeredSaslServerFactorys where the order is based on the order of the Provider registration and/or class path order.static java.util.Iterator<javax.security.sasl.SaslServerFactory>getSaslServerFactories(java.lang.ClassLoader classLoader, boolean includeGlobal)Returns an iterator of all of the registeredSaslServerFactorys where the order is based on the order of the Provider registration and/or class path order.static javax.security.sasl.SaslServerFactorygetSaslServerFactory(java.lang.String mech, java.util.Map<java.lang.String,?> props)
-
-
-
Method Detail
-
getSaslServerFactories
public static java.util.Iterator<javax.security.sasl.SaslServerFactory> getSaslServerFactories(java.lang.ClassLoader classLoader, boolean includeGlobal)Returns an iterator of all of the registeredSaslServerFactorys 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-trueto include globally registered providers,falseto exclude them- Returns:
- the
IteratorofSaslServerFactorys
-
getSaslServerFactories
public static java.util.Iterator<javax.security.sasl.SaslServerFactory> getSaslServerFactories()
Returns an iterator of all of the registeredSaslServerFactorys where the order is based on the order of the Provider registration and/or class path order.- Returns:
- the
IteratorofSaslServerFactorys
-
getSaslClientFactories
public static java.util.Iterator<javax.security.sasl.SaslClientFactory> getSaslClientFactories(java.lang.ClassLoader classLoader, boolean includeGlobal)Returns an iterator of all of the registeredSaslClientFactorys 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-trueto include globally registered providers,falseto exclude them- Returns:
- the
IteratorofSaslClientFactorys
-
getSaslClientFactories
public static java.util.Iterator<javax.security.sasl.SaslClientFactory> getSaslClientFactories()
Returns an iterator of all of the registeredSaslClientFactorys where the order is based on the order of the Provider registration and/or class path order.- Returns:
- the
IteratorofSaslClientFactorys
-
getSaslServerFactory
public static javax.security.sasl.SaslServerFactory getSaslServerFactory(java.lang.String mech, java.util.Map<java.lang.String,?> props)
-
getSaslClientFactory
public static javax.security.sasl.SaslClientFactory getSaslClientFactory(java.lang.String mech, java.util.Map<java.lang.String,?> props)
-
-