Uses of Interface javax.net.ssl.SSLSession (Java Platform SE 8 )
Date: 2026-08-19

## Uses of Interface
javax.net.ssl.SSLSession

- Packages that use SSLSession
  Package | Description
  --- | ---
  javax.naming.ldap | Provides support for LDAPv3 extended operations and controls.
  javax.net.ssl | Provides classes for the secure socket package.

- - ### Uses of SSLSession in javax.naming.ldap

    Methods in javax.naming.ldap that return SSLSession
    Modifier and Type | Method and Description
    --- | ---
    `abstract SSLSession` | StartTlsResponse.`negotiate()` Negotiates a TLS session using the default SSL socket factory.
    `abstract SSLSession` | StartTlsResponse.`negotiate(SSLSocketFactory factory)` Negotiates a TLS session using an SSL socket factory.

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

    Classes in javax.net.ssl that implement SSLSession
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ExtendedSSLSession` Extends the `SSLSession` interface to support additional session attributes.

    Methods in javax.net.ssl that return SSLSession
    Modifier and Type | Method and Description
    --- | ---
    `SSLSession` | SSLEngine.`getHandshakeSession()` Returns the `SSLSession` being constructed during a SSL/TLS handshake.
    `SSLSession` | SSLSocket.`getHandshakeSession()` Returns the `SSLSession` being constructed during a SSL/TLS handshake.
    `SSLSession` | SSLSessionBindingEvent.`getSession()` Returns the SSLSession into which the listener is being bound or from which the listener is being unbound.
    `abstract SSLSession` | SSLEngine.`getSession()` Returns the `SSLSession` in use in this `SSLEngine`.
    `SSLSession` | HandshakeCompletedEvent.`getSession()` Returns the session that triggered this event.
    `abstract SSLSession` | SSLSocket.`getSession()` Returns the SSL Session in use by this connection.
    `SSLSession` | SSLSessionContext.`getSession(byte[] sessionId)` Returns the `SSLSession` bound to the specified session id.

    Methods in javax.net.ssl with parameters of type SSLSession
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | HostnameVerifier.`verify(String hostname, SSLSession session)` Verify that the host name is an acceptable match with the server's authentication scheme.

    Constructors in javax.net.ssl with parameters of type SSLSession
    Constructor and Description
    `HandshakeCompletedEvent(SSLSocket sock, SSLSession s)` Constructs a new HandshakeCompletedEvent.
    `SSLSessionBindingEvent(SSLSession session, String name)` Constructs a new SSLSessionBindingEvent.

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.