Interface SSLEngineFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SSLEngineFactory
A factory for javax.net.ssl.SSLEngine objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    createSSLEngine(String peerHost, int peerPort)
    Creates a new SSLEngine instance used to configure the ssl transport.
  • Method Details

    • createSSLEngine

      SSLEngine createSSLEngine(String peerHost, int peerPort)
      Creates a new SSLEngine instance used to configure the ssl transport.
      Parameters:
      peerHost - The hostname or IP address of the peer.
      peerPort - The port number of the peer. For outgoing connections, this is always set to -1.
      Returns:
      The new SSLEngine instance.