com.icegreen.greenmail.util
Class DummySSLServerSocketFactory
java.lang.Object
javax.net.ServerSocketFactory
javax.net.ssl.SSLServerSocketFactory
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummySSLServerSocketFactory
public DummySSLServerSocketFactory()
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.