public final class SSLUtilities
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SSLUtilities._FakeHostnameVerifier
Deprecated.
|
static class |
SSLUtilities._FakeX509TrustManager
Deprecated.
|
static class |
SSLUtilities.FakeHostnameVerifier
This class implements a fake hostname verificator, trusting any host
name.
|
static class |
SSLUtilities.FakeX509TrustManager
This class allow any X509 certificates to be used to authenticate the
remote side of a secure socket, including self-signed certificates.
|
Modifier and Type | Field and Description |
---|---|
private static javax.net.ssl.HostnameVerifier |
__hostnameVerifier
Deprecated.
see
_hostnameVerifier . |
private static javax.net.ssl.TrustManager[] |
__trustManagers
Deprecated.
see
_trustManagers . |
private static javax.net.ssl.HostnameVerifier |
_hostnameVerifier
Hostname verifier.
|
private static javax.net.ssl.TrustManager[] |
_trustManagers
Thrust managers.
|
Constructor and Description |
---|
SSLUtilities() |
Modifier and Type | Method and Description |
---|---|
private static void |
__trustAllHostnames()
Deprecated.
see
_trustAllHostnames() . |
private static void |
__trustAllHttpsCertificates()
Deprecated.
|
private static void |
_trustAllHostnames()
Set the default Hostname Verifier to an instance of a fake class that
trust all hostnames.
|
private static void |
_trustAllHttpsCertificates()
Set the default X509 Trust Manager to an instance of a fake class that
trust all certificates, even the self-signed ones.
|
private static boolean |
isDeprecatedSSLProtocol()
Return true if the protocol handler property java.
|
static void |
trustAllHostnames()
Set the default Hostname Verifier to an instance of a fake class that
trust all hostnames.
|
static void |
trustAllHttpsCertificates()
Set the default X509 Trust Manager to an instance of a fake class that
trust all certificates, even the self-signed ones.
|
private static javax.net.ssl.HostnameVerifier __hostnameVerifier
_hostnameVerifier
.private static javax.net.ssl.TrustManager[] __trustManagers
_trustManagers
.private static javax.net.ssl.HostnameVerifier _hostnameVerifier
private static javax.net.ssl.TrustManager[] _trustManagers
private static void __trustAllHostnames()
_trustAllHostnames()
.private static void __trustAllHttpsCertificates()
_trustAllHttpsCertificates()
.private static boolean isDeprecatedSSLProtocol()
private static void _trustAllHostnames()
private static void _trustAllHttpsCertificates()
public static void trustAllHostnames()
public static void trustAllHttpsCertificates()