| Package | Description | 
|---|---|
| javax.naming.ldap | Provides support for LDAPv3 extended operations and controls. | 
| javax.net.ssl | Provides classes for the secure socket package. | 
| Modifier and Type | Method | 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. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | ExtendedSSLSessionExtends the  SSLSessioninterface to support additional
 session attributes. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| SSLSession | SSLSocket. getHandshakeSession()Returns the  SSLSessionbeing constructed during a SSL/TLS
 handshake. | |
| SSLSession | SSLEngine. getHandshakeSession()Returns the  SSLSessionbeing 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. | |
| SSLSession | HandshakeCompletedEvent. getSession()Returns the session that triggered this event. | |
| abstract SSLSession | SSLSocket. getSession()Returns the SSL Session in use by this connection. | |
| abstract SSLSession | SSLEngine. getSession()Returns the  SSLSessionin use in thisSSLEngine. | |
| SSLSession | SSLSessionContext. getSession(byte[] sessionId)Returns the  SSLSessionbound to the specified session id. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | HostnameVerifier. verify(String hostname,
      SSLSession session)Verify that the host name is an acceptable match with
 the server's authentication scheme. | 
| Constructor | 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.