Class DummySSLServerSocketFactory


  • public class DummySSLServerSocketFactory
    extends SSLServerSocketFactory
    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