Class SaslUtils


  • public final class SaslUtils
    extends java.lang.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 java.util.Iterator<javax.security.sasl.SaslClientFactory> getSaslClientFactories()
      Returns an iterator of all of the registered SaslClientFactorys 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 registered SaslClientFactorys 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()
      Returns an iterator of all of the registered SaslServerFactorys 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 registered SaslServerFactorys where the order is based on the order of the Provider registration and/or class path order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaslUtils

        public SaslUtils()
    • 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 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
        includeGlobal - true to include globally registered providers, false to exclude them
        Returns:
        the Iterator of SaslServerFactorys
      • getSaslServerFactories

        public static java.util.Iterator<javax.security.sasl.SaslServerFactory> getSaslServerFactories()
        Returns an iterator of all of the registered SaslServerFactorys where the order is based on the order of the Provider registration and/or class path order.
        Returns:
        the Iterator of SaslServerFactorys
      • getSaslClientFactories

        public static java.util.Iterator<javax.security.sasl.SaslClientFactory> getSaslClientFactories​(java.lang.ClassLoader classLoader,
                                                                                                       boolean includeGlobal)
        Returns an iterator of all of 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
        includeGlobal - true to include globally registered providers, false to exclude them
        Returns:
        the Iterator of SaslClientFactorys
      • getSaslClientFactories

        public static java.util.Iterator<javax.security.sasl.SaslClientFactory> getSaslClientFactories()
        Returns an iterator of all of the registered SaslClientFactorys where the order is based on the order of the Provider registration and/or class path order.
        Returns:
        the Iterator of SaslClientFactorys