Package org.apache.activemq.broker
Class SslContext
- java.lang.Object
-
- org.apache.activemq.broker.SslContext
-
- Direct Known Subclasses:
SpringSslContext
public class SslContext extends Object
A holder of SSL configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<KeyManager>
keyManagers
protected String
protocol
protected String
provider
protected SecureRandom
secureRandom
protected List<TrustManager>
trustManagers
-
Constructor Summary
Constructors Constructor Description SslContext()
SslContext(KeyManager[] km, TrustManager[] tm, SecureRandom random)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyManager(KeyManager km)
void
addTrustManager(TrustManager tm)
static SslContext
getCurrentSslContext()
List<KeyManager>
getKeyManagers()
KeyManager[]
getKeyManagersAsArray()
String
getProtocol()
String
getProvider()
SecureRandom
getSecureRandom()
SSLContext
getSSLContext()
List<TrustManager>
getTrustManagers()
TrustManager[]
getTrustManagersAsArray()
boolean
removeKeyManager(KeyManager km)
boolean
removeTrustManager(TrustManager tm)
static void
setCurrentSslContext(SslContext bs)
void
setKeyManagers(List<KeyManager> keyManagers)
void
setProtocol(String protocol)
void
setProvider(String provider)
void
setSecureRandom(SecureRandom secureRandom)
void
setSSLContext(SSLContext sslContext)
void
setTrustManagers(List<TrustManager> trustManagers)
-
-
-
Field Detail
-
protocol
protected String protocol
-
provider
protected String provider
-
keyManagers
protected List<KeyManager> keyManagers
-
trustManagers
protected List<TrustManager> trustManagers
-
secureRandom
protected SecureRandom secureRandom
-
-
Constructor Detail
-
SslContext
public SslContext()
-
SslContext
public SslContext(KeyManager[] km, TrustManager[] tm, SecureRandom random)
-
-
Method Detail
-
setCurrentSslContext
public static void setCurrentSslContext(SslContext bs)
-
getCurrentSslContext
public static SslContext getCurrentSslContext()
-
getKeyManagersAsArray
public KeyManager[] getKeyManagersAsArray()
-
getTrustManagersAsArray
public TrustManager[] getTrustManagersAsArray()
-
addKeyManager
public void addKeyManager(KeyManager km)
-
removeKeyManager
public boolean removeKeyManager(KeyManager km)
-
addTrustManager
public void addTrustManager(TrustManager tm)
-
removeTrustManager
public boolean removeTrustManager(TrustManager tm)
-
getKeyManagers
public List<KeyManager> getKeyManagers()
-
setKeyManagers
public void setKeyManagers(List<KeyManager> keyManagers)
-
getTrustManagers
public List<TrustManager> getTrustManagers()
-
setTrustManagers
public void setTrustManagers(List<TrustManager> trustManagers)
-
getSecureRandom
public SecureRandom getSecureRandom()
-
setSecureRandom
public void setSecureRandom(SecureRandom secureRandom)
-
getProtocol
public String getProtocol()
-
setProtocol
public void setProtocol(String protocol)
-
getProvider
public String getProvider()
-
setProvider
public void setProvider(String provider)
-
getSSLContext
public SSLContext getSSLContext() throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementException
-
setSSLContext
public void setSSLContext(SSLContext sslContext)
-
-