org.apache.qpid.ssl
Class BogusSSLContextFactory

java.lang.Object
  extended by org.apache.qpid.ssl.BogusSSLContextFactory

public class BogusSSLContextFactory
extends java.lang.Object

Factory to create a bogus SSLContext. This means that it is easy to test SSL but this cannot be used in a production environment.

This is based on the sample that comes with MINA, written by Trustin Lee


Constructor Summary
BogusSSLContextFactory()
           
 
Method Summary
static javax.net.ssl.SSLContext getInstance(boolean server)
          Get SSLContext singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BogusSSLContextFactory

public BogusSSLContextFactory()
Method Detail

getInstance

public static javax.net.ssl.SSLContext getInstance(boolean server)
                                            throws java.security.GeneralSecurityException
Get SSLContext singleton.

Returns:
SSLContext
Throws:
java.security.GeneralSecurityException