Class DefaultSslContext
java.lang.Object
org.apache.activemq.broker.SslContext
org.apache.activemq.broker.DefaultSslContext
A simple
SslContext that holds key/trust managers directly and
creates a single SSLContext on first use.
This is the recommended replacement for ThreadLocalSslContext
when explicit parameter passing is used throughout the transport chain.
It carries no ThreadLocal state and does not support runtime certificate
reload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a fully initialisedSSLContextready for use by transport factories.voidsetKeyManagers(KeyManager[] keyManagers) voidsetProtocol(String protocol) voidsetProvider(String provider) voidsetSecureRandom(SecureRandom secureRandom) voidsetTrustManagers(TrustManager[] trustManagers) Methods inherited from class SslContext
getCurrentSslContext, reload, setCurrentSslContext
-
Constructor Details
-
DefaultSslContext
public DefaultSslContext() -
DefaultSslContext
-
-
Method Details
-
getSSLContext
public SSLContext getSSLContext() throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementExceptionDescription copied from class:SslContextReturns a fully initialisedSSLContextready for use by transport factories.- Specified by:
getSSLContextin classSslContext- Throws:
NoSuchProviderExceptionNoSuchAlgorithmExceptionKeyManagementException
-
getProtocol
-
setProtocol
-
getProvider
-
setProvider
-
getKeyManagers
-
setKeyManagers
-
getTrustManagers
-
setTrustManagers
-
getSecureRandom
-
setSecureRandom
-