Class WildFlySSLContextFactory

java.lang.Object
org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultSSLContextFactory
org.jboss.activemq.artemis.wildfly.integration.WildFlySSLContextFactory
All Implemented Interfaces:
Comparable<SSLContextFactory>, SSLContextFactory

public class WildFlySSLContextFactory extends DefaultSSLContextFactory
Implementation of the SSLContextFactory enabling WildFly to register and unregister SSLContext that it created.
Author:
Emmanuel Hugonnet (c) 2019 Red Hat, Inc.
  • Constructor Details

    • WildFlySSLContextFactory

      public WildFlySSLContextFactory()
  • Method Details

    • registerSSLContext

      public static void registerSSLContext(String name, SSLContext context)
      Register a WildFly SSLContext.
      Parameters:
      name - the SSlContext name.
      context - the SSlContext.
    • unregisterSSLContext

      public static void unregisterSSLContext(String name)
      Unregister a WildFly SSLContext.
      Parameters:
      name - the SSlContext name.
    • clearSSLContexts

      public void clearSSLContexts()
    • getSSLContext

      public SSLContext getSSLContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
      Specified by:
      getSSLContext in interface SSLContextFactory
      Overrides:
      getSSLContext in class DefaultSSLContextFactory
      additionalOpts - implementation specific additional options.
      Returns:
      an SSLContext for the given configuration
      Throws:
      Exception
    • getPriority

      public int getPriority()
      Description copied from interface: SSLContextFactory
      The priority for the SSLContextFactory when resolving the service to get the implementation. This is used when selecting the implementation when several implementations are loaded. The highest priority implementation will be used.
      Specified by:
      getPriority in interface SSLContextFactory
      Overrides:
      getPriority in class DefaultSSLContextFactory
      Returns:
      the priority