use of java.net.SecureCacheResponse in project XobotOS by xamarin.
the class HttpsURLConnectionImpl method getPeerPrincipal.
@Override
public Principal getPeerPrincipal() throws SSLPeerUnverifiedException {
SecureCacheResponse cacheResponse = delegate.getCacheResponse();
if (cacheResponse != null) {
return cacheResponse.getPeerPrincipal();
}
checkConnected();
return delegate.getSSLSocket().getSession().getPeerPrincipal();
}
use of java.net.SecureCacheResponse in project XobotOS by xamarin.
the class HttpsURLConnectionImpl method getServerCertificates.
@Override
public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {
SecureCacheResponse cacheResponse = delegate.getCacheResponse();
if (cacheResponse != null) {
List<Certificate> result = cacheResponse.getServerCertificateChain();
return result != null ? result.toArray(new Certificate[result.size()]) : null;
}
checkConnected();
return delegate.getSSLSocket().getSession().getPeerCertificates();
}
Aggregations