public final class SSLUtilities extends 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.
|
Constructor and Description |
---|
SSLUtilities() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void trustAllHostnames()
public static void trustAllHttpsCertificates()
Copyright © 2013–2018. All rights reserved.