public class InetUtils
extends java.lang.Object
| Constructor and Description |
|---|
InetUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ignoreCertificateErrors()
Ignore all certificate errors in
HttpsURLConnections. |
static javax.net.ssl.HttpsURLConnection |
openTrustingConnection(java.net.URL url)
Open a HttpsURLConnection which does not check any certificates.
|
public static javax.net.ssl.HttpsURLConnection openTrustingConnection(java.net.URL url)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.KeyManagementException
url - The url to open the connection tojava.io.IOException - If an I/O error occursjava.security.NoSuchAlgorithmException - If the TLS algorithm is not availablejava.security.KeyManagementException - If the TLS algorithm is not availablepublic static void ignoreCertificateErrors()
throws java.security.NoSuchAlgorithmException,
java.security.KeyManagementException
HttpsURLConnections.java.security.NoSuchAlgorithmException - If the TLS algorithm is not availablejava.security.KeyManagementException - If the TLS algorithm is not available