com.icegreen.greenmail.util
Class DummySSLServerSocketFactory

java.lang.Object
  extended by javax.net.ServerSocketFactory
      extended by javax.net.ssl.SSLServerSocketFactory
          extended by com.icegreen.greenmail.util.DummySSLServerSocketFactory

public class DummySSLServerSocketFactory
extends SSLServerSocketFactory

DummySSLServerSocketFactory - NOT SECURE Contains a preconfigured key store for convenience in testing by avoiding having to manually setup, install, and generate keystore / keys. By default, the factory loads the resource greenmail.jks from classpath. GreenMail provides this resource, which can be overloaded

Since:
Feb 2006
Author:
Wael Chatila

Constructor Summary
DummySSLServerSocketFactory()
           
 
Method Summary
 ServerSocket createServerSocket()
           
 ServerSocket createServerSocket(int i)
           
 ServerSocket createServerSocket(int i, int i1)
           
 ServerSocket createServerSocket(int i, int i1, InetAddress inetAddress)
           
static ServerSocketFactory getDefault()
           
 String[] getDefaultCipherSuites()
           
 KeyStore getKeyStore()
           
 String[] getSupportedCipherSuites()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummySSLServerSocketFactory

public DummySSLServerSocketFactory()
Method Detail

getDefault

public static ServerSocketFactory getDefault()

createServerSocket

public ServerSocket createServerSocket()
                                throws IOException
Overrides:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i,
                                       int i1)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i,
                                       int i1,
                                       InetAddress inetAddress)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException

getDefaultCipherSuites

public String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class SSLServerSocketFactory

getSupportedCipherSuites

public String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class SSLServerSocketFactory

getKeyStore

public KeyStore getKeyStore()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.