## Uses of Class
javax.net.ssl.SSLSocket

- Packages that use SSLSocket
  Package | Description
  --- | ---
  javax.net.ssl | Provides classes for the secure socket package.

- - ### Uses of SSLSocket in javax.net.ssl

    Methods in javax.net.ssl that return SSLSocket
    Modifier and Type | Method | Description
    --- | --- | ---
    `SSLSocket` | HandshakeCompletedEvent.`getSocket()` Returns the socket which is the source of this event.

    Methods in javax.net.ssl that return types with arguments of type SSLSocket
    Modifier and Type | Method | Description
    --- | --- | ---
    `BiFunction<SSLSocket,List<String>,String>` | SSLSocket.`getHandshakeApplicationProtocolSelector()` Retrieves the callback function that selects an application protocol value during a SSL/TLS/DTLS handshake.

    Method parameters in javax.net.ssl with type arguments of type SSLSocket
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | SSLSocket.`setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket,List<String>,String> selector)` Registers a callback function that selects an application protocol value for a SSL/TLS/DTLS handshake.

    Constructors in javax.net.ssl with parameters of type SSLSocket
    Constructor | Description
    --- | ---
    `HandshakeCompletedEvent(SSLSocket sock, SSLSession s)` Constructs a new HandshakeCompletedEvent.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.