Home
last modified time | relevance | path

Searched refs:peerCertificates (Results 1 – 19 of 19) 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.java129 public void check(String hostname, List<Certificate> peerCertificates) in check() argument
134 for (int i = 0, size = peerCertificates.size(); i < size; i++) { in check()
135 X509Certificate x509Certificate = (X509Certificate) peerCertificates.get(i); in check()
143 for (int i = 0, size = peerCertificates.size(); i < size; i++) { in check()
144 X509Certificate x509Certificate = (X509Certificate) peerCertificates.get(i); in check()
157 public void check(String hostname, Certificate... peerCertificates) in check() argument
159 check(hostname, Arrays.asList(peerCertificates)); in check()
DCache.java534 List<Certificate> peerCertificates = readCertificateList(source); in Entry() local
536 handshake = Handshake.get(cipherSuite, peerCertificates, localCertificates); in Entry()
587 writeCertList(sink, handshake.peerCertificates()); in writeTo()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLSessionImpl.java42 final X509Certificate[] peerCertificates; field in OpenSSLSessionImpl
60 X509Certificate[] peerCertificates, String peerHost, int peerPort, in OpenSSLSessionImpl() argument
64 this.peerCertificates = peerCertificates; in OpenSSLSessionImpl()
77 X509Certificate[] peerCertificates, in OpenSSLSessionImpl() argument
82 peerCertificates, in OpenSSLSessionImpl()
227 = new javax.security.cert.X509Certificate[peerCertificates.length]; in createPeerCertificateChain()
229 for (int i = 0; i < peerCertificates.length; i++) { in createPeerCertificateChain()
230 byte[] encoded = peerCertificates[i].getEncoded(); in createPeerCertificateChain()
258 return peerCertificates; in getPeerCertificates()
265 if (peerCertificates == null || peerCertificates.length == 0) { in checkPeerCertificatesPresent()
[all …]
DSSLParametersImpl.java603 X509Certificate[] peerCertificates = createCertChain(NativeCrypto in setupSession() local
606 peerCertificates, hostname, port, getSessionContext()); in setupSession()
/external/apache-http/android/src/android/net/http/
DCertificateChainValidator.java118 Certificate[] peerCertificates = in doHandshakeAndValidateServerCertificates() local
121 if (peerCertificates == null || peerCertificates.length == 0) { in doHandshakeAndValidateServerCertificates()
127 if (peerCertificates[0] != null) { in doHandshakeAndValidateServerCertificates()
129 new SslCertificate((X509Certificate)peerCertificates[0])); in doHandshakeAndValidateServerCertificates()
134 … 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/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.java267 List<Certificate> serverCerts = response1.handshake().peerCertificates(); in secureResponseCaching()
280 assertEquals(serverCerts, response2.handshake().peerCertificates()); in secureResponseCaching()
DCallTest.java950 for (Certificate certificate : response1.handshake().peerCertificates()) { in matchingPinnedCertificate()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DDelegatingHttpsURLConnection.java73 List<Certificate> result = handshake.peerCertificates(); in getServerCertificates()
/external/boringssl/src/ssl/test/runner/
Dhandshake_client.go419 c.peerCertificates = certs
735 c.peerCertificates = hs.session.serverCertificates
785 serverCertificates: c.peerCertificates,
Dconn.go42 peerCertificates []*x509.Certificate member
1301 state.PeerCertificates = c.peerCertificates
1333 return c.peerCertificates[0].VerifyHostname(host)
Dhandshake_server.go653 if len(c.peerCertificates) > 0 {
963 c.peerCertificates = certs
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DSocketConnector.java128 address.getCertificatePinner().check(address.getUriHost(), handshake.peerCertificates()); in connectTls()
/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()