Object SSLUtils

  • All Implemented Interfaces:

    
    public class SSLUtils
    
                        

    Utility class for SSL related tasks.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static SSLUtils INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final SslContextFactory.Server createSslContextFactory(SSLFactory sslFactory) Helper method to create a SslContextFactory from the SSLFactory.
      final SSLFactory getSslFactory(SslConfig config) Helper method to create a SSLFactory from the given config.
      final SSLFactory getSslFactory(SslConfig config, Boolean reloading) Helper method to create a SSLFactory from the given config.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createSslContextFactory

         final SslContextFactory.Server createSslContextFactory(SSLFactory sslFactory)

        Helper method to create a SslContextFactory from the SSLFactory. This method is used to create the SSLContextFactory for the Jetty server as well as configure the resulting factory.

        Parameters:
        sslFactory - The SSLFactory to use.
        Returns:

        The created SslContextFactory.

      • getSslFactory

         final SSLFactory getSslFactory(SslConfig config)

        Helper method to create a SSLFactory from the given config.

        Parameters:
        config - The config to use.
        Returns:

        The created SSLFactory.

      • getSslFactory

         final SSLFactory getSslFactory(SslConfig config, Boolean reloading)

        Helper method to create a SSLFactory from the given config.

        Parameters:
        config - The config to use.
        reloading - Whether the SSLFactory is being reloaded or is the first time.
        Returns:

        The created SSLFactory.