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 javax.net.ssl.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
 java.net.ServerSocket createServerSocket()
           
 java.net.ServerSocket createServerSocket(int i)
           
 java.net.ServerSocket createServerSocket(int i, int i1)
           
 java.net.ServerSocket createServerSocket(int i, int i1, java.net.InetAddress inetAddress)
           
static javax.net.ServerSocketFactory getDefault()
           
 java.lang.String[] getDefaultCipherSuites()
           
 java.security.KeyStore getKeyStore()
           
 java.lang.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 javax.net.ServerSocketFactory getDefault()

createServerSocket

public java.net.ServerSocket createServerSocket()
                                         throws java.io.IOException
Overrides:
createServerSocket in class javax.net.ServerSocketFactory
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int i)
                                         throws java.io.IOException
Specified by:
createServerSocket in class javax.net.ServerSocketFactory
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int i,
                                                int i1)
                                         throws java.io.IOException
Specified by:
createServerSocket in class javax.net.ServerSocketFactory
Throws:
java.io.IOException

createServerSocket

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

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class javax.net.ssl.SSLServerSocketFactory

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class javax.net.ssl.SSLServerSocketFactory

getKeyStore

public java.security.KeyStore getKeyStore()


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