Home
last modified time | relevance | path

Searched refs:peerCertificates (Results 1 – 20 of 20) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DHandshake.java37 private final List<Certificate> peerCertificates; field in Handshake
41 String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) { in Handshake() argument
43 this.peerCertificates = peerCertificates; in Handshake()
51 Certificate[] peerCertificates; in get() local
53 peerCertificates = session.getPeerCertificates(); in get()
55 peerCertificates = null; in get()
57 List<Certificate> peerCertificatesList = peerCertificates != null in get()
58 ? Util.immutableList(peerCertificates) in get()
70 String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) { in get() argument
72 return new Handshake(cipherSuite, Util.immutableList(peerCertificates), in get()
[all …]
DCertificatePinner.java150 public void check(String hostname, List<Certificate> peerCertificates) in check() argument
157 for (int i = 0, size = peerCertificates.size(); i < size; i++) { in check()
158 X509Certificate x509Certificate = (X509Certificate) peerCertificates.get(i); in check()
166 for (int i = 0, size = peerCertificates.size(); i < size; i++) { in check()
167 X509Certificate x509Certificate = (X509Certificate) peerCertificates.get(i); in check()
179 public void check(String hostname, Certificate... peerCertificates) in check() argument
181 check(hostname, Arrays.asList(peerCertificates)); in check()
DCache.java555 List<Certificate> peerCertificates = readCertificateList(source); in Entry() local
557 handshake = Handshake.get(cipherSuite, peerCertificates, localCertificates); in Entry()
608 writeCertList(sink, handshake.peerCertificates()); in writeTo()
/external/conscrypt/common/src/main/java/org/conscrypt/
DActiveSession.java50 private X509Certificate[] peerCertificates; field in ActiveSession
216 return peerCertificates.clone(); in getPeerCertificates()
244 peerCertificateChain = result = SSLUtils.toCertificateChain(peerCertificates); in getPeerCertificateChain()
252 return peerCertificates[0].getSubjectX500Principal(); in getPeerPrincipal()
306 String peerHost, int peerPort, OpenSSLX509Certificate[] peerCertificates) { in onPeerCertificatesReceived() argument
307 configurePeer(peerHost, peerPort, peerCertificates); in onPeerCertificatesReceived()
320 String peerHost, int peerPort, OpenSSLX509Certificate[] peerCertificates) { in configurePeer() argument
323 this.peerCertificates = peerCertificates; in configurePeer()
329 if (peerCertificates == null || peerCertificates.length == 0) { in getX509PeerCertificates()
332 return peerCertificates; in getX509PeerCertificates()
[all …]
DSslSessionWrapper.java218 private final java.security.cert.X509Certificate[] peerCertificates; field in SslSessionWrapper.Impl
223 int port, java.security.cert.X509Certificate[] peerCertificates, in Impl() argument
228 this.peerCertificates = peerCertificates; in Impl()
307 daos.writeInt(peerCertificates.length); in toBytes()
309 for (Certificate cert : peerCertificates) { in toBytes()
/external/apache-http/android/src/android/net/http/
DCertificateChainValidator.java119 Certificate[] peerCertificates = in doHandshakeAndValidateServerCertificates() local
122 if (peerCertificates == null || peerCertificates.length == 0) { in doHandshakeAndValidateServerCertificates()
128 if (peerCertificates[0] != null) { in doHandshakeAndValidateServerCertificates()
130 new SslCertificate((X509Certificate)peerCertificates[0])); in doHandshakeAndValidateServerCertificates()
135 … return verifyServerDomainAndCertificates((X509Certificate[]) peerCertificates, domain, "RSA"); in doHandshakeAndValidateServerCertificates()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java118 Certificate[] peerCertificates; in createOkResponseForCachePut() local
120 peerCertificates = httpsUrlConnection.getServerCertificates(); in createOkResponseForCachePut()
122 peerCertificates = null; in createOkResponseForCachePut()
128 httpsUrlConnection.getCipherSuite(), nullSafeImmutableList(peerCertificates), in createOkResponseForCachePut()
242 List<Certificate> peerCertificates; in createOkResponseForCacheGet() local
244 peerCertificates = javaSecureCacheResponse.getServerCertificateChain(); in createOkResponseForCacheGet()
246 peerCertificates = Collections.emptyList(); in createOkResponseForCacheGet()
253 javaSecureCacheResponse.getCipherSuite(), peerCertificates, localCertificates); in createOkResponseForCacheGet()
312 List<Certificate> certificates = handshake.peerCertificates(); in createJavaCacheResponse()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DRecordedRequest.java66 Certificate[] peerCertificates = null; in RecordedRequest() local
69 peerCertificates = session.getPeerCertificates(); in RecordedRequest()
74 sslPeerCertificates = peerCertificates; in RecordedRequest()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java443 Certificate[] peerCertificates = client.getSession().getPeerCertificates(); in test_SSLSocket_startHandshake() local
444 assertNotNull(peerCertificates); in test_SSLSocket_startHandshake()
445 TestKeyStore.assertChainLength(peerCertificates); in test_SSLSocket_startHandshake()
446 assertNotNull(peerCertificates[0]); in test_SSLSocket_startHandshake()
447 TestSSLContext.assertServerCertificateChain(c.clientTrustManager, peerCertificates); in test_SSLSocket_startHandshake()
448 TestSSLContext.assertCertificateInKeyStore(peerCertificates[0], c.serverKeyStore); in test_SSLSocket_startHandshake()
596 Certificate[] peerCertificates = event.getPeerCertificates(); in test_SSLSocket_HandshakeCompletedListener()
611 assertNotNull(peerCertificates); in test_SSLSocket_HandshakeCompletedListener()
612 TestKeyStore.assertChainLength(peerCertificates); in test_SSLSocket_HandshakeCompletedListener()
613 assertNotNull(peerCertificates[0]); in test_SSLSocket_HandshakeCompletedListener()
[all …]
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCertificatePinning.java47 for (Certificate certificate : response.handshake().peerCertificates()) { in run()
DCheckHandshake.java34 for (Certificate certificate : chain.connection().getHandshake().peerCertificates()) {
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordedResponse.java92 assertEquals(1, handshake.peerCertificates().size()); in assertHandshake()
DCacheTest.java264 List<Certificate> serverCerts = response1.handshake().peerCertificates(); in secureResponseCaching()
277 assertEquals(serverCerts, response2.handshake().peerCertificates()); in secureResponseCaching()
DCallTest.java1033 for (Certificate certificate : response1.handshake().peerCertificates()) { in matchingPinnedCertificate()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java197 X509Certificate cert = (X509Certificate) unverifiedHandshake.peerCertificates().get(0); in connectTls()
208 .clean(unverifiedHandshake.peerCertificates()); in connectTls()
/external/boringssl/src/ssl/test/runner/
Dhandshake_client.go770 c.peerCertificates = hs.session.serverCertificates
829 leaf := c.peerCertificates[0]
1037 leaf = c.peerCertificates[0]
1255 c.peerCertificates = certs
1433 c.peerCertificates = hs.session.serverCertificates
1490 serverCertificates: c.peerCertificates,
Dconn.go49 peerCertificates []*x509.Certificate member
1452 serverCertificates: c.peerCertificates,
1702 state.PeerCertificates = c.peerCertificates
1737 return c.peerCertificates[0].VerifyHostname(host)
1792 for _, cert := range c.peerCertificates {
Dhandshake_server.go978 if len(c.peerCertificates) > 0 {
1628 if len(c.peerCertificates) > 0 {
1915 c.peerCertificates = certs
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DDelegatingHttpsURLConnection.java73 List<Certificate> result = handshake.peerCertificates(); in getServerCertificates()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DJavaApiConverterTest.java217 assertEquals(serverCertificates, handshake.peerCertificates()); in createOkResponseForCacheGet_secure()
574 assertEquals(handshake.peerCertificates(), javaCacheResponse.getServerCertificateChain()); in createJavaCacheResponse_httpsPost()