Class ThreadLocalSslContext
java.lang.Object
org.apache.activemq.broker.SslContext
org.apache.activemq.broker.ThreadLocalSslContext
The original
SslContext implementation that uses a ThreadLocal
to propagate SSL configuration through the transport factory call chain.
This class preserves full backward compatibility with the pre-interface
SslContext class. New code should prefer explicit parameter passing
and, where runtime certificate reload is needed, use a
ReloadableSslContext instead.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<KeyManager> protected Stringprotected Stringprotected SecureRandomprotected List<TrustManager> -
Constructor Summary
ConstructorsConstructorDescriptionThreadLocalSslContext(KeyManager[] km, TrustManager[] tm, SecureRandom random) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidReturns a fully initialisedSSLContextready for use by transport factories.booleanbooleanvoidsetKeyManagers(List<KeyManager> keyManagers) voidsetProtocol(String protocol) voidsetProvider(String provider) voidsetSecureRandom(SecureRandom secureRandom) voidsetSSLContext(SSLContext sslContext) voidsetTrustManagers(List<TrustManager> trustManagers) Methods inherited from class SslContext
getCurrentSslContext, reload, setCurrentSslContext
-
Field Details
-
protocol
-
provider
-
keyManagers
-
trustManagers
-
secureRandom
-
-
Constructor Details
-
ThreadLocalSslContext
public ThreadLocalSslContext() -
ThreadLocalSslContext
-
-
Method Details
-
getKeyManagersAsArray
-
getTrustManagersAsArray
-
addKeyManager
-
removeKeyManager
-
addTrustManager
-
removeTrustManager
-
getKeyManagers
-
setKeyManagers
-
getTrustManagers
-
setTrustManagers
-
getSecureRandom
-
setSecureRandom
-
getProtocol
-
setProtocol
-
getProvider
-
setProvider
-
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
-
setSSLContext
-