org.apache.activemq.broker
Class SslContext

java.lang.Object
  extended by org.apache.activemq.broker.SslContext
Direct Known Subclasses:
SpringSslContext

public class SslContext
extends Object

A holder of SSL configuration.


Field Summary
protected  List<KeyManager> keyManagers
           
protected  String protocol
           
protected  String provider
           
protected  SecureRandom secureRandom
           
protected  List<TrustManager> trustManagers
           
 
Constructor Summary
SslContext()
           
SslContext(KeyManager[] km, TrustManager[] tm, SecureRandom random)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Throws:
NoSuchProviderException
NoSuchAlgorithmException
KeyManagementException

setSSLContext

public void setSSLContext(SSLContext sslContext)


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.