/external/chromium_org/android_webview/browser/ |
aw_contents_client_bridge_base.h | 20 class X509Certificate; 32 typedef base::Callback<void(net::X509Certificate*)> SelectCertificateCallback; 46 net::X509Certificate* cert,
|
/external/chromium_org/chrome/browser/chromeos/options/ |
cert_library.cc | 39 base::string16 GetDisplayString(net::X509Certificate* cert, 66 std::string CertToPEM(const net::X509Certificate& cert) { 68 if (!net::X509Certificate::GetPEMEncoded(cert.os_cert_handle(), 84 bool operator()(const scoped_refptr<net::X509Certificate>& lhs, 85 const scoped_refptr<net::X509Certificate>& rhs) const { 159 net::X509Certificate* cert = GetCertificateAt(type, index); 169 net::X509Certificate* cert = GetCertificateAt(CERT_TYPE_USER, index); 174 net::X509Certificate* cert = GetCertificateAt(type, index); 182 net::X509Certificate* cert = GetCertificateAt(CERT_TYPE_SERVER_CA, index); 194 net::X509Certificate* cert = GetCertificateAt(CERT_TYPE_USER, index) [all...] |
/external/chromium_org/chrome/browser/ui/views/ |
ssl_client_certificate_selector.h | 25 class X509Certificate; 50 net::X509Certificate* GetSelectedCert() const; 78 void Unlocked(net::X509Certificate* cert);
|
/external/chromium_org/net/cert/ |
ct_objects_extractor_unittest.cc | 27 X509Certificate::FORMAT_AUTO); 31 test_cert_ = X509Certificate::CreateFromBytes(der_test_cert.data(), 38 void ExtractEmbeddedSCT(scoped_refptr<X509Certificate> cert, 53 scoped_refptr<X509Certificate> test_cert_; 129 scoped_refptr<X509Certificate> subject_cert = 130 X509Certificate::CreateFromBytes(der_subject_cert.data(), 133 scoped_refptr<X509Certificate> issuer_cert = 134 X509Certificate::CreateFromBytes(der_issuer_cert.data(), 151 scoped_refptr<X509Certificate> issuer_cert = 152 X509Certificate::CreateFromBytes(der_issuer_cert.data() [all...] |
x509_util.h | 22 class X509Certificate; 115 const scoped_refptr<X509Certificate>& a, 116 const scoped_refptr<X509Certificate>& b) const;
|
multi_threaded_cert_verifier_unittest.cc | 46 virtual int VerifyInternal(X509Certificate* cert, 80 scoped_refptr<X509Certificate> test_cert( 82 ASSERT_NE(static_cast<X509Certificate*>(NULL), test_cert.get()); 126 // though the two X509Certificate objects contain the same server certificate. 130 scoped_refptr<X509Certificate> server_cert = 132 ASSERT_NE(static_cast<X509Certificate*>(NULL), server_cert.get()); 134 scoped_refptr<X509Certificate> intermediate_cert1 = 136 ASSERT_NE(static_cast<X509Certificate*>(NULL), intermediate_cert1.get()); 138 scoped_refptr<X509Certificate> intermediate_cert2 = 140 ASSERT_NE(static_cast<X509Certificate*>(NULL), intermediate_cert2.get()) [all...] |
nss_cert_database_chromeos_unittest.cc | 23 bool IsCertInCertificateList(const X509Certificate* cert, 28 if (X509Certificate::IsSameOSCert((*it)->os_cert_handle(), 86 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE { 90 virtual void OnCertRemoved(const X509Certificate* cert) OVERRIDE {} 92 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE { 146 X509Certificate::FORMAT_AUTO); 152 X509Certificate::FORMAT_AUTO); 214 GetTestCertsDirectory(), "ok_cert.pem", X509Certificate::FORMAT_AUTO); 220 X509Certificate::FORMAT_AUTO); 288 scoped_refptr<X509Certificate> cert_1 [all...] |
/external/chromium_org/net/ssl/ |
client_cert_store_mac.cc | 85 scoped_refptr<X509Certificate>* cert) { 89 X509Certificate::OSCertHandle cert_handle = (*cert)->os_cert_handle(); 100 X509Certificate::OSCertHandles intermediates; 108 scoped_refptr<X509Certificate> new_cert(X509Certificate::CreateFromHandle( 124 // intermediates (available via X509Certificate::GetIntermediateCertificates()) 126 void GetClientCertsImpl(const scoped_refptr<X509Certificate>& preferred_cert, 139 scoped_refptr<X509Certificate>& cert = preliminary_list[i]; 203 scoped_refptr<X509Certificate> preferred_cert = NULL; 234 scoped_refptr<X509Certificate> cert [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 28 import java.security.cert.X509Certificate; 63 assertTrue(certificate instanceof X509Certificate); 71 // If all the certificate in the chain is X509Certificate, 72 // KeyStore.PrivateKeyEntry will return a X509Certificate array. 76 assertTrue(chain instanceof X509Certificate[]);
|
Identity2Test.java | 32 import java.security.cert.X509Certificate; 48 X509Certificate cert; 50 public CertificateImpl(X509Certificate cert) { 249 X509Certificate cert[] = new X509Certificate[1]; 250 cert[0] = (X509Certificate) cf.generateCertificate(certArray); 268 X509Certificate cert[] = new X509Certificate[1]; 269 cert[0] = (X509Certificate) cf.generateCertificate(certArray); 302 X509Certificate cert[] = new X509Certificate[1] [all...] |
/external/chromium_org/chromeos/ |
cert_loader.cc | 99 const net::X509Certificate* cert) const { 119 const net::X509Certificate& cert, 182 void CertLoader::OnCACertChanged(const net::X509Certificate* cert) { 188 void CertLoader::OnCertAdded(const net::X509Certificate* cert) { 194 void CertLoader::OnCertRemoved(const net::X509Certificate* cert) {
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
X509Util.java | 33 import java.security.cert.X509Certificate; 75 public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, 89 public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, 93 return Collections.<X509Certificate>emptyList(); 106 public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, 282 * Convert a DER encoded certificate to an X509Certificate. 284 public static X509Certificate createCertificateFromBytes(byte[] derBytes) throw [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CertSelectorTest.java | 25 import java.security.cert.X509Certificate; 116 private X509Certificate newCertWithSubjectAltNameIpAddress(byte[] ipAddress) throws Exception { 123 private X509Certificate newCertWithNameConstraint(byte[] permitted, byte[] excluded) 133 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception { 136 return (X509Certificate) factory.generateCertificate(new ByteArrayInputStream(encoded));
|
/external/conscrypt/src/main/java/org/conscrypt/ |
KeyManagerImpl.java | 28 import java.security.cert.X509Certificate; 100 public X509Certificate[] getCertificateChain(String alias) { 106 if (certs[0] instanceof X509Certificate) { 107 X509Certificate[] xcerts = new X509Certificate[certs.length]; 109 xcerts[i] = (X509Certificate) certs[i]; 163 final String certSigAlg = (cert instanceof X509Certificate 164 ? ((X509Certificate) cert).getSigAlgName().toUpperCase(Locale.US) 201 if (!(certFromChain instanceof X509Certificate)) { 205 X509Certificate xcertFromChain = (X509Certificate) certFromChain [all...] |
/packages/apps/Settings/tests/src/com/android/settings/vpn2/ |
CertInstallerHelper.java | 49 import java.security.cert.X509Certificate; 65 private X509Certificate mUserCert; // user certificate 66 private List<X509Certificate> mCaCerts = new ArrayList<X509Certificate>(); 134 mUserCert = (X509Certificate) entry.getCertificate(); 138 mCaCerts = new ArrayList<X509Certificate>(certs.length); 140 X509Certificate cert = (X509Certificate) c; 149 private boolean isCa(X509Certificate cert) { 203 X509Certificate[] caCerts = mCaCerts.toArray(new X509Certificate[mCaCerts.size()]) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
TrustAnchor_ImplTest.java | 28 import java.security.cert.X509Certificate; 54 * Test #1 for <code>TrustAnchor(X509Certificate, byte[])</code> constructor<br> 69 (X509Certificate) ks.getCertificate(certAlias), 73 (X509Certificate) ks.getCertificate(certAlias), 77 (X509Certificate) ks.getCertificate(certAlias), 81 (X509Certificate) ks.getCertificate(certAlias), 86 * Test #2 for <code>TrustAnchor(X509Certificate, byte[])</code> constructor<br> 100 (X509Certificate) ks.getCertificate(certAlias), 105 * Test #3 for <code>TrustAnchor(X509Certificate, byte[])</code> constructor<br> 122 (X509Certificate) ks.getCertificate(certAlias) [all...] |
/external/chromium_org/net/http/ |
disk_based_cert_cache.cc | 29 const X509Certificate::OSCertHandle cert_handle) { 31 X509Certificate::CalculateFingerprint(cert_handle); 64 X509Certificate::OSCertHandle cert_handle, 109 const X509Certificate::OSCertHandle cert_handle_; 126 X509Certificate::OSCertHandle cert_handle, 129 cert_handle_(X509Certificate::DupOSCertHandle(cert_handle)), 142 X509Certificate::FreeOSCertHandle(cert_handle_); 245 bool encoded = X509Certificate::GetDEREncoded(cert_handle_, &write_data); 342 X509Certificate::OSCertHandle cert_handle_; 376 X509Certificate::FreeOSCertHandle(cert_handle_) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
X509CertificateTest.java | 57 import javax.security.cert.X509Certificate; 115 private java.security.cert.X509Certificate cert; 117 private javax.security.cert.X509Certificate tbt_cert; 119 private java.security.cert.X509Certificate javaCert; 123 private javax.security.cert.X509Certificate javaxCert; 137 this.cert = (java.security.cert.X509Certificate) cf 139 this.tbt_cert = X509Certificate.getInstance(cert.getEncoded()); 142 this.javaCert = (java.security.cert.X509Certificate)cf 144 this.javaxCert = X509Certificate.getInstance(javaCert.getEncoded()); 151 this.javaxSSCert = X509Certificate.getInstance(javaCer [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
X509V1CertificateGenerator.java | 16 import java.security.cert.X509Certificate; 185 public X509Certificate generateX509Certificate( 204 public X509Certificate generateX509Certificate( 225 public X509Certificate generateX509Certificate( 239 public X509Certificate generateX509Certificate( 275 public X509Certificate generate( 290 public X509Certificate generate( 315 public X509Certificate generate( 328 public X509Certificate generate( 349 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/ |
CsrUtil.java | 20 import java.security.cert.X509Certificate; 45 public static X509Certificate generateX509V3AuthorityCertificate(String rootName, 61 static X509Certificate generateX509V3AuthorityCertificate(String rootName, 91 X509Certificate cert = certGen.generate(rootPair.getPrivate()); 107 public static X509Certificate[] issueX509V3Certificate(String name, PublicKey publicKey, 108 X509Certificate rootCert, KeyPair rootPair) throws GeneralSecurityException { 121 static X509Certificate[] issueX509V3Certificate(String name, PublicKey publicKey, 122 X509Certificate rootCert, KeyPair rootPair, Date notBefore, Date notAfter, 152 X509Certificate issuedCert = certGen.generate(rootPair.getPrivate()); 154 return new X509Certificate[] { issuedCert, rootCert } [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 41 import javax.security.cert.X509Certificate; 123 mySSLSession session = new mySSLSession((X509Certificate[]) null); 132 X509Certificate xc = X509Certificate.getInstance(bis); 133 X509Certificate[] xcs = {xc}; 137 X509Certificate[] res = event.getPeerCertificateChain(); 155 session = new mySSLSession((X509Certificate[]) null); 459 public X509Certificate[] getChain() { 530 public X509Certificate[] getChain() { 561 private X509Certificate[] chain [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
CertificateTest.java | 32 import java.security.cert.X509Certificate; 125 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); 146 X509Certificate certificate = (X509Certificate) certFactory.generateCertificate(in); 159 private String getFingerprint(X509Certificate certificate) throws CertificateEncodingException,
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/ |
OkHostnameVerifier.java | 22 import java.security.cert.X509Certificate; 64 return verify(host, (X509Certificate) certificates[0]); 70 public boolean verify(String host, X509Certificate certificate) { 83 private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) { 95 private boolean verifyHostName(String hostName, X509Certificate certificate) { 117 private List<String> getSubjectAltNames(X509Certificate certificate, int type) {
|
/libcore/luni/src/main/java/javax/net/ssl/ |
DefaultHostnameVerifier.java | 23 import java.security.cert.X509Certificate; 44 return verify(host, (X509Certificate) certificates[0]); 50 public boolean verify(String host, X509Certificate certificate) { 59 private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) { 71 private boolean verifyHostName(String hostName, X509Certificate certificate) { 93 private List<String> getSubjectAltNames(X509Certificate certificate, int type) {
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
mySSLSession.java | 15 import javax.security.cert.X509Certificate; 29 private X509Certificate[] xCerts = null; 40 public mySSLSession(X509Certificate[] xc) { 47 xCerts = new X509Certificate[xc.length]; 50 xCerts[i++] = X509Certificate.getInstance(cert.getEncoded()); 97 public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException {
|