public final class SslUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static HostnameVerifier |
trustAllHostnameVerifier()
Returns a verifier that trusts all host names.
|
static SSLContext |
trustAllSSLContext()
Returns an SSL context in which all X.509 certificates are trusted.
|
public static SSLContext trustAllSSLContext() throws GeneralSecurityException
Be careful! Disabling SSL certificate validation is dangerous and should only be done in testing environments.
GeneralSecurityExceptionpublic static HostnameVerifier trustAllHostnameVerifier()
Be careful! Disabling host name verification is dangerous and should only be done in testing environments.
Copyright © 2011-2012 Google. All Rights Reserved.