Interface SSLContextFactory
-
- All Superinterfaces:
Comparable<SSLContextFactory>
public interface SSLContextFactory extends Comparable<SSLContextFactory>
Service interface to create a SSLContext for a configuration. This is NOT used by OpenSSL. To create and use your own implementation you need to create a fileMETA-INF/services/org.apache.activemq.artemis.spi.core.remoting.ssl.SSLContextFactoryin your jar and fill it with the full qualified name of your implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclearSSLContexts()default intcompareTo(SSLContextFactory other)intgetPriority()The priority for the SSLContextFactory when resolving the service to get the implementation.default SSLContextgetSSLContext(Map<String,Object> configuration, String keystoreProvider, String keystorePath, String keystoreType, String keystorePassword, String truststoreProvider, String truststorePath, String truststoreType, String truststorePassword, String crlPath, String trustManagerFactoryPlugin, boolean trustAll)Deprecated.usegetSSLContext(SSLContextConfig, Map)insteaddefault SSLContextgetSSLContext(SSLContextConfig config, Map<String,Object> additionalOpts)
-
-
-
Method Detail
-
getSSLContext
@Deprecated default SSLContext getSSLContext(Map<String,Object> configuration, String keystoreProvider, String keystorePath, String keystoreType, String keystorePassword, String truststoreProvider, String truststorePath, String truststoreType, String truststorePassword, String crlPath, String trustManagerFactoryPlugin, boolean trustAll) throws Exception
Deprecated.usegetSSLContext(SSLContextConfig, Map)instead- Returns:
- an
SSLContextfor the given configuration. - Throws:
Exception
-
getSSLContext
default SSLContext getSSLContext(SSLContextConfig config, Map<String,Object> additionalOpts) throws Exception
- Parameters:
additionalOpts- implementation specific additional options.- Returns:
- an
SSLContextfor the given configuration. - Throws:
Exception
-
clearSSLContexts
default void clearSSLContexts()
-
getPriority
int getPriority()
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.- Returns:
- the priority.
-
compareTo
default int compareTo(SSLContextFactory other)
- Specified by:
compareToin interfaceComparable<SSLContextFactory>
-
-