public final class HttpsUrlConnections extends Object
HttpsURLConnections.| Modifier and Type | Method and Description |
|---|---|
static void |
disableSslCertificateValidation()
Disables validation of client certificates, server certificates, certificate issuers and hostnames for
HttpsURLConnections. |
public static void disableSslCertificateValidation()
throws GeneralSecurityException
HttpsURLConnections.
SSLHandshakeExceptions like this will no longer be thrown:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to
requested target
GeneralSecurityExceptionCopyright © 2018 Arno Unkrig. All rights reserved.