public class DummySSLServerSocketFactory extends SSLServerSocketFactory
"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.
GreenMail provides the keystore resource. For customization, place your greenmail.p12 before greenmail JAR in the classpath.| Modifier and Type | Field and Description |
|---|---|
static String |
GREENMAIL_KEYSTORE_FILE_PROPERTY |
static String |
GREENMAIL_KEYSTORE_JKS |
static String |
GREENMAIL_KEYSTORE_P12 |
static String |
GREENMAIL_KEYSTORE_PASSWORD_PROPERTY |
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
DummySSLServerSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected final org.slf4j.Logger log
public static final String GREENMAIL_KEYSTORE_FILE_PROPERTY
public static final String GREENMAIL_KEYSTORE_PASSWORD_PROPERTY
public static final String GREENMAIL_KEYSTORE_P12
public static final String GREENMAIL_KEYSTORE_JKS
public static ServerSocketFactory getDefault()
public ServerSocket createServerSocket() throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int i) throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int i, int i1) throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int i, int i1, InetAddress inetAddress) throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLServerSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLServerSocketFactorypublic KeyStore getKeyStore()
Copyright © 2006–2022 Icegreen Technologies. All rights reserved.