Interface SSLEngineFactory

  • All Known Implementing Classes:
    SSLEngineConfigurator

    public interface SSLEngineFactory
    The factory responsible for creating SSLEngine.
    Author:
    Grizzly team
    • Method Detail

      • createSSLEngine

        SSLEngine createSSLEngine​(String peerHost,
                                  int peerPort)
        Create and configure SSLEngine using this factory configuration using advisory peer information.

        Applications using this factory method may provide hints for an internal session reuse strategy by providing peerHost and peerPort information.

        Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified.

        Parameters:
        peerHost - the non-authoritative name of the host, or null to not specify one
        peerPort - the non-authoritative port, or -1 to not specify one
        Returns:
        SSLEngine.