| 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 and Description | 
|---|---|
| abstract void | StartTlsResponse. setHostnameVerifier(HostnameVerifier verifier)Sets the hostname verifier used by negotiate()
 after the TLS handshake has completed and the default hostname
 verification has failed. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected HostnameVerifier | HttpsURLConnection. hostnameVerifierThe  hostnameVerifierfor this object. | 
| Modifier and Type | Method and Description | 
|---|---|
| static HostnameVerifier | HttpsURLConnection. getDefaultHostnameVerifier()Gets the default  HostnameVerifierthat is inherited
 by new instances of this class. | 
| HostnameVerifier | HttpsURLConnection. getHostnameVerifier()Gets the  HostnameVerifierin place on this instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | HttpsURLConnection. setDefaultHostnameVerifier(HostnameVerifier v)Sets the default  HostnameVerifierinherited by a
 new instance of this class. | 
| void | HttpsURLConnection. setHostnameVerifier(HostnameVerifier v)Sets the  HostnameVerifierfor this instance. | 
 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.