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
Implementation of the SSLContextFactory enabling WildFly to register and unregister SSLContext that it created.
- Author:
- Emmanuel Hugonnet (c) 2019 Red Hat, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintThe priority for the SSLContextFactory when resolving the service to get the implementation.getSSLContext(SSLContextConfig config, Map<String, Object> additionalOpts) static voidregisterSSLContext(String name, SSLContext context) Register a WildFly SSLContext.static voidunregisterSSLContext(String name) Unregister a WildFly SSLContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.remoting.ssl.SSLContextFactory
compareTo, getSSLContext
-
Constructor Details
-
WildFlySSLContextFactory
public WildFlySSLContextFactory()
-
-
Method Details
-
registerSSLContext
Register a WildFly SSLContext.- Parameters:
name- the SSlContext name.context- the SSlContext.
-
unregisterSSLContext
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:
getSSLContextin interfaceSSLContextFactory- Overrides:
getSSLContextin classDefaultSSLContextFactoryadditionalOpts- implementation specific additional options.- Returns:
- an
SSLContextfor the given configuration - Throws:
Exception
-
getPriority
public int getPriority()Description copied from interface:SSLContextFactoryThe 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:
getPriorityin interfaceSSLContextFactory- Overrides:
getPriorityin classDefaultSSLContextFactory- Returns:
- the priority
-