public interface OpenSSLContextFactory extends Comparable<OpenSSLContextFactory>
SslContext for a configuration.
This is ONLY used with OpenSSL.
To create and use your own implementation you need to create a file
META-INF/services/org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory
in your jar and fill it with the full qualified name of your implementation.| Modifier and Type | Field and Description |
|---|---|
static org.jboss.logging.Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
default void |
clearSslContexts()
Release any cached
SslContext instances. |
default int |
compareTo(OpenSSLContextFactory other) |
io.netty.handler.ssl.SslContext |
getClientSslContext(SSLContextConfig config,
Map<String,Object> additionalOpts) |
int |
getPriority()
The priority for the
OpenSSLContextFactory when resolving the service to get the implementation. |
io.netty.handler.ssl.SslContext |
getServerSslContext(SSLContextConfig config,
Map<String,Object> additionalOpts) |
default void clearSslContexts()
SslContext instances.default int compareTo(OpenSSLContextFactory other)
compareTo in interface Comparable<OpenSSLContextFactory>io.netty.handler.ssl.SslContext getClientSslContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
additionalOpts - implementation specific additional options.SslContext instance for the given configuration.Exceptionio.netty.handler.ssl.SslContext getServerSslContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
additionalOpts - implementation specific additional options.SslContext instance for the given configuration.Exceptionint getPriority()
OpenSSLContextFactory 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.Copyright © 2021 The Apache Software Foundation. All rights reserved.