Interface OpenSSLContextFactory
-
- All Superinterfaces:
Comparable<OpenSSLContextFactory>
public interface OpenSSLContextFactory extends Comparable<OpenSSLContextFactory>
Service interface to create anSslContextfor a configuration. This is ONLY used with OpenSSL. To create and use your own implementation you need to create a fileMETA-INF/services/org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactoryin your jar and fill it with the full qualified name of your implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclearSslContexts()Release any cachedSslContextinstances.default intcompareTo(OpenSSLContextFactory other)io.netty.handler.ssl.SslContextgetClientSslContext(SSLContextConfig config, Map<String,Object> additionalOpts)intgetPriority()The priority for theOpenSSLContextFactorywhen resolving the service to get the implementation.io.netty.handler.ssl.SslContextgetServerSslContext(SSLContextConfig config, Map<String,Object> additionalOpts)
-
-
-
Method Detail
-
clearSslContexts
default void clearSslContexts()
Release any cachedSslContextinstances.
-
compareTo
default int compareTo(OpenSSLContextFactory other)
- Specified by:
compareToin interfaceComparable<OpenSSLContextFactory>
-
getClientSslContext
io.netty.handler.ssl.SslContext getClientSslContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
- Parameters:
additionalOpts- implementation specific additional options.- Returns:
- an
SslContextinstance for the given configuration. - Throws:
Exception
-
getServerSslContext
io.netty.handler.ssl.SslContext getServerSslContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
- Parameters:
additionalOpts- implementation specific additional options.- Returns:
- an
SslContextinstance for the given configuration. - Throws:
Exception
-
getPriority
int getPriority()
The priority for theOpenSSLContextFactorywhen 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.
-
-