Package com.icegreen.greenmail.util
Class DummySSLServerSocketFactory
java.lang.Object
javax.net.ServerSocketFactory
javax.net.ssl.SSLServerSocketFactory
com.icegreen.greenmail.util.DummySSLServerSocketFactory
DummySSLServerSocketFactory - NOT SECURE
Contains a preconfigured key store for convenience in testing by avoiding having to manually set up, install, and generate keystore / keys.
By default, the factory loads the resource "greenmail.p12" from classpath.
A fallback to old >"greenmail.jks" exists.
The system property "greenmail.tls.keystore.file" can override the default keystore location.
The system property "greenmail.tls.keystore.password" can override the default keystore password.
The system property "greenmail.tls.key.password" can override the default key password (defaults to keystore password).
GreenMail provides the keystore resource. For customization, place your greenmail.p12 before greenmail JAR in the classpath.
- Since:
- Feb 2006
- Author:
- Wael Chatila
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServerSocket(int i) createServerSocket(int i, int i1) createServerSocket(int i, int i1, InetAddress inetAddress) static ServerSocketFactoryString[]String[]
-
Field Details
-
log
protected final org.slf4j.Logger log -
GREENMAIL_KEYSTORE_FILE_PROPERTY
- See Also:
-
GREENMAIL_KEYSTORE_PASSWORD_PROPERTY
- See Also:
-
GREENMAIL_KEY_PASSWORD_PROPERTY
- See Also:
-
GREENMAIL_KEYSTORE_P12
- See Also:
-
GREENMAIL_KEYSTORE_JKS
- See Also:
-
-
Constructor Details
-
DummySSLServerSocketFactory
public DummySSLServerSocketFactory()
-
-
Method Details
-
getDefault
-
createServerSocket
- Overrides:
createServerSocketin classServerSocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin classServerSocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin classServerSocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin classServerSocketFactory- Throws:
IOException
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLServerSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLServerSocketFactory
-
getKeyStore
-