am 7ae93b1d: am 92ec0a0c: am d8c32164: am 88517170: Merge "Adjust to the change in the private SSLParameterImpl API."

* commit '7ae93b1d0cd1eb43b5fc8248dfc2703608a461f3':
  Adjust to the change in the private SSLParameterImpl API.
This commit is contained in:
Alex Klyubin
2014-03-24 17:34:11 +00:00
committed by Android Git Automerger

View File

@@ -138,7 +138,7 @@ public class CertificateChainValidator {
public static void handleTrustStorageUpdate() {
try {
X509TrustManager x509TrustManager = SSLParametersImpl.getDefaultTrustManager();
X509TrustManager x509TrustManager = SSLParametersImpl.getDefaultX509TrustManager();
if( x509TrustManager instanceof TrustManagerImpl ) {
TrustManagerImpl trustManager = (TrustManagerImpl) x509TrustManager;
trustManager.handleTrustStorageUpdate();
@@ -175,7 +175,7 @@ public class CertificateChainValidator {
}
try {
X509TrustManager x509TrustManager = SSLParametersImpl.getDefaultTrustManager();
X509TrustManager x509TrustManager = SSLParametersImpl.getDefaultX509TrustManager();
if (x509TrustManager instanceof TrustManagerImpl) {
TrustManagerImpl trustManager = (TrustManagerImpl) x509TrustManager;
trustManager.checkServerTrusted(chain, authType, domain);