/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HttpsURLConnectionTest.java | 24 import java.security.cert.Certificate; 25 import java.security.cert.CertificateException; 26 import java.security.cert.CertificateFactory; 34 import org.apache.harmony.security.tests.support.cert.TestUtils; 85 Certificate[] cert = con.getLocalCertificates(); local 86 assertNotNull(cert); 87 assertEquals(1, cert.length); 173 Certificate[] cert = con.getServerCertificates(); local 174 assertNotNull(cert); 175 assertEquals(1, cert.length) 269 Certificate cert = cf.generateCertificate(bis); local 284 Certificate cert = cf.generateCertificate(bis); local [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
OCSP.java | 33 import java.security.cert.CertificateException; 34 import java.security.cert.CertPathValidatorException; 35 import java.security.cert.CertPathValidatorException.BasicReason; 36 import java.security.cert.CRLReason; 37 import java.security.cert.Extension; 38 import java.security.cert.X509Certificate; 106 * @param cert the certificate to be checked 114 public static RevocationStatus check(X509Certificate cert, 120 X509CertImpl certImpl = X509CertImpl.toImpl(cert); 140 * @param cert the certificate to be checke [all...] |
AlgorithmChecker.java | 41 import java.security.cert.Certificate; 42 import java.security.cert.X509CRL; 43 import java.security.cert.X509Certificate; 44 import java.security.cert.PKIXCertPathChecker; 45 import java.security.cert.TrustAnchor; 46 import java.security.cert.CRLException; 47 import java.security.cert.CertificateException; 48 import java.security.cert.CertPathValidatorException; 49 import java.security.cert.CertPathValidatorException.BasicReason; 50 import java.security.cert.PKIXReason [all...] |
ReverseState.java | 30 import java.security.cert.CertificateException; 31 import java.security.cert.CertPathValidatorException; 32 import java.security.cert.PKIXCertPathChecker; 33 import java.security.cert.PKIXRevocationChecker; 34 import java.security.cert.TrustAnchor; 35 import java.security.cert.X509Certificate; 62 /* The subject DN of the last cert in the path */ 65 /* The subject public key of the last cert */ 68 /* The subject key identifier extension (if any) of the last cert */ 83 * -1: previous cert was an EE cer [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 36 import java.security.cert.CertificateException; 37 import java.security.cert.CertificateFactory; 38 import java.security.cert.X509Certificate; 39 import java.security.cert.Certificate; 89 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); local 92 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); local 113 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); local 116 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 138 // Use assets/generate-client-cert-chain.sh to regenerate the client cert chain 172 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); local 199 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); local 201 mDevicePolicyManager.installKeyPair(getWho(), null, cert, alias); local 215 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); local [all...] |
/libcore/ojluni/src/main/java/sun/security/validator/ |
PKIXValidator.java | 31 import java.security.cert.*; 84 for (X509Certificate cert : trustedCerts) { 85 trustAnchors.add(new TrustAnchor(cert, null)); 100 for (X509Certificate cert : trustedCerts) { 101 X500Principal dn = cert.getSubjectX500Principal(); 109 keys.add(cert.getPublicKey()); 126 X509Certificate cert = anchor.getTrustedCert(); local 127 if (cert != null) { 128 trustedCerts.add(cert); 139 for (X509Certificate cert : trustedCerts) 225 X509Certificate cert = chain[i]; local [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
ConscryptIntermediateVerificationTest.java | 23 import java.security.cert.Certificate; 24 import java.security.cert.CertificateException; 25 import java.security.cert.X509Certificate; 26 import java.security.cert.CertificateFactory; 52 for (Certificate cert : certs) { 53 result.add((X509Certificate) cert);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/ |
X509ExtensionUtil.java | 4 import java.security.cert.CertificateParsingException; 5 import java.security.cert.X509Certificate; 35 public static Collection getIssuerAlternativeNames(X509Certificate cert) 38 byte[] extVal = cert.getExtensionValue(X509Extension.issuerAlternativeName.getId()); 43 public static Collection getSubjectAlternativeNames(X509Certificate cert) 46 byte[] extVal = cert.getExtensionValue(X509Extension.subjectAlternativeName.getId());
|
/external/curl/docs/examples/ |
usercertinmem.c | 44 X509 *cert = NULL; local 127 cert = PEM_read_bio_X509(bio, NULL, 0, NULL); 128 if (cert == NULL) { 133 ret = SSL_CTX_use_certificate((SSL_CTX*)sslctx, cert); 166 if (cert) 167 X509_free(cert);
|
/external/webrtc/webrtc/base/ |
fakesslidentity.h | 82 static FakeSSLCertificate* DupCert(FakeSSLCertificate cert) { 83 return cert.GetReference(); 85 static void DeleteCert(SSLCertificate* cert) { delete cert; } 96 explicit FakeSSLIdentity(const FakeSSLCertificate& cert) : cert_(cert) {}
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
PKIXCertPathBuilderSpi.java | 4 import java.security.cert.CertPath; 5 import java.security.cert.CertPathBuilderException; 6 import java.security.cert.CertPathBuilderResult; 7 import java.security.cert.CertPathBuilderSpi; 8 import java.security.cert.CertPathParameters; 9 import java.security.cert.CertificateParsingException; 10 import java.security.cert.PKIXBuilderParameters; 11 import java.security.cert.PKIXCertPathBuilderResult; 12 import java.security.cert.PKIXCertPathValidatorResult; 13 import java.security.cert.X509Certificate 89 X509Certificate cert; local [all...] |
RFC3280CertPathUtilities.java | 7 import java.security.cert.CertPath; 8 import java.security.cert.CertPathBuilderException; 9 import java.security.cert.CertPathValidatorException; 10 import java.security.cert.CertificateExpiredException; 11 import java.security.cert.CertificateNotYetValidException; 12 import java.security.cert.PKIXCertPathChecker; 13 import java.security.cert.X509CRL; 14 import java.security.cert.X509CRLSelector; 15 import java.security.cert.X509CertSelector; 16 import java.security.cert.X509Certificate 897 X509Certificate cert = (X509Certificate)certs.get(index); local 1081 X509Certificate cert = (X509Certificate)certs.get(index); local 1157 X509Certificate cert = (X509Certificate)certs.get(index); local 1186 X509Certificate cert = (X509Certificate)certs.get(index); local 1287 X509Certificate cert = (X509Certificate)certs.get(index); local 1491 X509Certificate cert = (X509Certificate)certs.get(index); local 1569 X509Certificate cert = (X509Certificate)certs.get(index); local 1624 X509Certificate cert = (X509Certificate)certs.get(index); local 1678 X509Certificate cert = (X509Certificate)certs.get(index); local 2076 X509Certificate cert = (X509Certificate)certs.get(index); local 2110 X509Certificate cert = (X509Certificate)certs.get(index); local 2145 X509Certificate cert = (X509Certificate)certs.get(index); local 2168 X509Certificate cert = (X509Certificate)certs.get(index); local 2207 X509Certificate cert = (X509Certificate)certs.get(index); local 2230 X509Certificate cert = (X509Certificate)certs.get(index); local 2261 X509Certificate cert = (X509Certificate)certs.get(index); local 2284 X509Certificate cert = (X509Certificate)certs.get(index); local 2307 X509Certificate cert = (X509Certificate)certs.get(index); local 2359 X509Certificate cert = (X509Certificate)certs.get(index); local 2413 X509Certificate cert = (X509Certificate)certs.get(index); local [all...] |
CertPathValidatorUtilities.java | 9 import java.security.cert.CRLException; 10 import java.security.cert.CertPath; 11 import java.security.cert.CertPathValidatorException; 12 import java.security.cert.CertStore; 13 import java.security.cert.CertStoreException; 14 import java.security.cert.Certificate; 15 import java.security.cert.CertificateParsingException; 16 import java.security.cert.PolicyQualifierInfo; 17 import java.security.cert.TrustAnchor; 18 import java.security.cert.X509CRL 1211 Certificate cert = (Certificate)certs.get(index); local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
AttributeCertificateHolder.java | 7 import java.security.cert.CertSelector; 8 import java.security.cert.Certificate; 9 import java.security.cert.CertificateEncodingException; 10 import java.security.cert.CertificateParsingException; 11 import java.security.cert.X509Certificate; 48 * @deprecated use org.bouncycastle.cert.AttributeCertificateHolder 74 public AttributeCertificateHolder(X509Certificate cert) 81 name = PrincipalUtil.getIssuerX509Principal(cert); 89 new ASN1Integer(cert.getSerialNumber()))); 328 public boolean match(Certificate cert) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateExpiredExceptionTest.java | 22 package org.apache.harmony.security.tests.java.security.cert; 24 import java.security.cert.CertificateExpiredException;
|
CertificateNotYetValidExceptionTest.java | 22 package org.apache.harmony.security.tests.java.security.cert; 24 import java.security.cert.CertificateNotYetValidException;
|
X509CRLTest.java | 22 package org.apache.harmony.security.tests.java.security.cert; 31 import java.security.cert.CRLException; 32 import java.security.cert.Certificate; 33 import java.security.cert.X509CRL; 34 import java.security.cert.X509CRLEntry; 35 import java.security.cert.X509Certificate; 41 import org.apache.harmony.security.tests.support.cert.TestUtils; 62 public boolean isRevoked(Certificate cert) { 225 * @tests java.security.cert.X509CRL#getIssuerX500Principal()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/ |
CertificateEncodingExceptionTest.java | 22 package org.apache.harmony.security.tests.javax.security.cert; 24 import javax.security.cert.CertificateEncodingException;
|
CertificateExceptionTest.java | 22 package org.apache.harmony.security.tests.javax.security.cert; 24 import javax.security.cert.CertificateException;
|
CertificateExpiredExceptionTest.java | 22 package org.apache.harmony.security.tests.javax.security.cert; 24 import javax.security.cert.CertificateExpiredException;
|
CertificateNotYetValidExceptionTest.java | 22 package org.apache.harmony.security.tests.javax.security.cert; 24 import javax.security.cert.CertificateNotYetValidException;
|
CertificateParsingExceptionTest.java | 22 package org.apache.harmony.security.tests.javax.security.cert; 24 import javax.security.cert.CertificateParsingException;
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CertificateTest.java | 22 package java.security.cert; 38 import org.apache.harmony.security.tests.support.cert.TestUtils; 196 * @tests java.security.cert.X509Certificate#getType() 203 * @tests java.security.cert.X509Certificate#getIssuerX500Principal() 207 MyX509Certificate cert = new MyX509Certificate() { local 215 assertEquals(new X500Principal("CN=Z"), cert.getIssuerX500Principal()); 219 * @tests java.security.cert.X509Certificate#getSubjectX500Principal() 223 MyX509Certificate cert = new MyX509Certificate() { local 231 assertEquals(new X500Principal("CN=Y"), cert.getSubjectX500Principal()); 235 * @tests java.security.cert.X509Certificate#getExtendedKeyUsage( 268 X509Certificate cert = (X509Certificate) certFactory local [all...] |
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/ |
certutils_test.py | 84 cert = certutils.load_cert(cert_str) 85 self.assertEqual(issuer, cert.get_subject().commonName) 94 cert_path = base_path + '-cert.pem' 95 ca_cert_android = base_path + '-cert.cer' 96 ca_cert_windows = base_path + '-cert.p12' 121 cert = certutils.load_cert(cert_string) 122 self.assertEqual(issuer, cert.get_issuer().commonName) 123 self.assertEqual(subject, cert.get_subject().commonName) 129 cert = certutils.load_cert(cert_string) 130 self.assertEqual(issuer, cert.get_issuer().commonName [all...] |
/external/libchrome/crypto/ |
scoped_test_nss_db.cc | 7 #include <cert.h> 39 if (CERT_ChangeCertTrust(CERT_GetDefaultCertDB(), node->cert, &trust) !=
|