- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for javax.net.ssl.SSLEngine objects.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSSLEngine
(String peerHost, int peerPort) Creates a new SSLEngine instance used to configure the ssl transport.
-
Method Details
-
createSSLEngine
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.
-