public final class HttpsUrlConnections extends Object
HttpsURLConnection
s.Modifier and Type | Method and Description |
---|---|
static void |
disableSslCertificateValidation()
Disables validation of client certificates, server certificates, certificate issuers and hostnames for
HttpsURLConnection s. |
public static void disableSslCertificateValidation() throws GeneralSecurityException
HttpsURLConnection
s.
SSLHandshakeException
s 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
GeneralSecurityException
Copyright © 2018 Arno Unkrig. All rights reserved.