Class SaslUtils


  • public final class SaslUtils
    extends Object
    Utility methods for handling SASL authentication
    Author:
    David M. Lloyd, Tristan Tarrant
    • Constructor Detail

      • SaslUtils

        public SaslUtils()
    • Method Detail

      • getSaslServerFactories

        public static Collection<SaslServerFactory> getSaslServerFactories​(ClassLoader classLoader,
                                                                           Provider[] providers,
                                                                           boolean includeGlobal)
        Returns a collection of all of the registered SaslServerFactorys 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 use
        providers - an array of security Providers to search first. Can be null.
        includeGlobal - true to include globally registered providers, false to exclude them
        Returns:
        the Iterator of SaslServerFactorys
      • getSaslClientFactories

        public static Collection<SaslClientFactory> getSaslClientFactories​(ClassLoader classLoader,
                                                                           Provider[] providers,
                                                                           boolean includeGlobal)
        Returns a collection of all the registered SaslClientFactorys 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 use
        providers - an array of security Providers to search first. Can be null.
        includeGlobal - true to include globally registered providers, false to exclude them
        Returns:
        the Iterator of SaslClientFactorys