/cts/tests/tests/security/src/android/security/cts/ |
CertificateTest.java | 73 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); local 74 assertEquals(certificate.getSubjectUniqueID(), certificate.getIssuerUniqueID()); 75 assertNotNull(certificate.getSubjectDN()); 76 assertNotNull(certificate.getIssuerDN()); 77 String fingerprint = getFingerprint(certificate); 83 private String getFingerprint(X509Certificate certificate) throws CertificateEncodingException, 86 messageDigest.update(certificate.getEncoded());
|
/external/chromium/net/base/ |
asn1_util.cc | 77 // Certificate ::= SEQUENCE { 91 base::StringPiece certificate; local 92 if (!asn1::GetElement(&cert, asn1::kSEQUENCE, &certificate)) 96 if (!asn1::GetElement(&certificate, asn1::kSEQUENCE, &tbs_certificate))
|
cert_database.h | 26 // certificate store. 30 // certificate store. 35 // A CertDatabase::Observer will be notified on certificate database changes. 36 // The change could be either a new user certificate is added or trust on 37 // a certificate is changed. Observers can register themselves 44 // Will be called when a new user certificate is added. 48 // Will be called when a certificate's trust is changed. 59 // Stores per-certificate error codes for import failures. 65 scoped_refptr<X509Certificate> certificate; member in struct:net::CertDatabase::ImportCertFailure 70 // Constants that define which usages a certificate is trusted for [all...] |
test_root_certs_nss.cc | 17 // for a certificate whose trust status has been changed by the 21 // Creates a new TrustEntry by incrementing the reference to |certificate| 23 TrustEntry(CERTCertificate* certificate, CERTCertTrust trust); 26 CERTCertificate* certificate() const { return certificate_; } function in class:net::TestRootCerts::TrustEntry 30 // The temporary root certificate. 40 TestRootCerts::TrustEntry::TrustEntry(CERTCertificate* certificate, 42 : certificate_(CERT_DupCertificate(certificate)), 50 bool TestRootCerts::Add(X509Certificate* certificate) { 52 // the certificate is removed. 54 SECStatus rv = CERT_GetCertTrust(certificate->os_cert_handle() [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
opensslidentity.h | 70 // OpenSSLCertificate encapsulates an OpenSSL X509* certificate object, 101 // Holds a keypair and certificate together, and a method to generate 109 virtual OpenSSLCertificate& certificate() const { function in class:talk_base::OpenSSLIdentity 118 // Configure an SSL context object to use our key and certificate. 123 OpenSSLCertificate* certificate) 124 : key_pair_(key_pair), certificate_(certificate) { 126 ASSERT(certificate != NULL);
|
opensslidentity.cc | 49 // Random bits for certificate serial number 52 // Certificate validity lifetime 87 // Generate a self-signed certificate, with the public key from the 90 LOG(LS_INFO) << "Making certificate for " << common_name; 115 // (through the secure XMPP channel), and so the certificate 117 // arbitrary common_name. Note that this certificate goes out in 136 LOG(LS_INFO) << "Returning certificate"; 174 // Print a certificate to the log, for debugging. 198 LogSSLErrors("Generating certificate"); 254 OpenSSLCertificate *certificate local [all...] |
/frameworks/base/core/java/android/net/http/ |
LoggingEventHandler.java | 72 public void certificate(SslCertificate certificate) { method in class:LoggingEventHandler 74 HttpLog.v("LoggingEventHandler: certificate(): " + certificate);
|
SslCertificate.java | 30 import java.security.cert.Certificate; 43 * SSL certificate info (certificate details) class 53 * Name of the entity this certificate is issued to 58 * Name of the entity this certificate is issued by 73 * The original source certificate, if available. 88 private static final String X509_CERTIFICATE = "x509-certificate"; 91 * Saves the certificate state to a bundle 92 * @param certificate The SSL certificate to stor 182 certificate); local [all...] |
EventHandler.java | 24 * there is an SSL certificate error. error() can occur anywhere 109 * SSL certificate callback called before resource request is 112 public void certificate(SslCertificate certificate); method in interface:EventHandler 122 * SSL certificate error callback. Handles SSL error(s) on the way
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherTest.java | 21 import java.security.cert.Certificate; 63 Certificate certificate = certificateWithKeyUsage(keyUsage); local 64 assertCipherInitWithKeyUsage(certificate, allowEncrypt, Cipher.ENCRYPT_MODE); 65 assertCipherInitWithKeyUsage(certificate, allowDecrypt, Cipher.DECRYPT_MODE); 66 assertCipherInitWithKeyUsage(certificate, allowWrap, Cipher.WRAP_MODE); 67 assertCipherInitWithKeyUsage(certificate, allowUnwrap, Cipher.UNWRAP_MODE); 70 private void assertCipherInitWithKeyUsage(Certificate certificate, 75 cipher.init(mode, certificate); [all...] |
/libcore/luni/src/test/java/tests/security/ |
CertificateFactoryTest.java | 20 import java.security.cert.Certificate; 43 Certificate certificate = certificateFactory.generateCertificate( local 45 assertNotNull(certificate);
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | 28 import java.security.cert.Certificate; 41 * Following certificate chain was taken from https://www.verisign.com and 42 * uses MD2withRSA for the root certificate. This chain stops validating 47 * A selfsigned certificate using MD2withRSA 50 * Certificate: 87 "-----BEGIN CERTIFICATE-----\n" 100 + "-----END CERTIFICATE-----\n"; 103 * A certificate signed by selfSignedCertMD2 106 * Certificate: 146 * Certificate Sign, CRL Sig 597 Certificate certificate = certificateFactory local 611 Certificate certificate = certificateFactory local [all...] |
CertPathBuilderTestPKIX.java | 24 import java.security.cert.Certificate; 59 List<Certificate> certList = new ArrayList<Certificate>(); 77 List<? extends Certificate> certificates = path.getCertificates(); 78 Certificate certificate = certificates.get(0); local 80 assertEquals("unexpected certificate type", "X.509", certificate 83 X509Certificate x509Certificate = (X509Certificate) certificate; 94 private String selfSignedCert = "-----BEGIN CERTIFICATE-----\n [all...] |
/external/webkit/Source/WebCore/platform/network/cf/ |
ResourceErrorCF.cpp | 49 ResourceError::ResourceError(const String& domain, int errorCode, const String& failingURL, const String& localizedDescription, CFDataRef certificate) 52 , m_certificate(certificate) 56 PCCERT_CONTEXT ResourceError::certificate() const function in class:WebCore::ResourceError
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 26 import java.security.cert.Certificate; 36 String certificateData = "-----BEGIN CERTIFICATE-----\n" 50 + "-----END CERTIFICATE-----\n"; 62 Certificate certificate = cf.generateCertificate(certArray); local 63 assertTrue(certificate instanceof X509Certificate); 65 String algorithm = certificate.getPublicKey().getAlgorithm(); 71 // If all the certificate in the chain is X509Certificate, 74 privateKey, new Certificate[] { certificate }); [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
CertificateTest.java | 38 import org.apache.harmony.security.x509.Certificate; 55 * Certificate and Certificate Revocation List (CRL) Profile. 59 * Certificate ::= SEQUENCE { 115 * Certificate(TBSCertificate tbsCertificate, AlgorithmIdentifier 117 * Makes the certificate, gets its encoded form, makes new certificate 122 // make the TBSCertificate for Certificate 126 Name issuer = new Name("O=Certificate Issuer"); 167 Certificate certificate = new Certificate(tbsCertificate, signature, new byte[10]) local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 26 import java.security.cert.Certificate; 36 String certificateData = "-----BEGIN CERTIFICATE-----\n" 50 + "-----END CERTIFICATE-----\n"; 62 Certificate certificate = cf.generateCertificate(certArray); local 63 assertTrue(certificate instanceof X509Certificate); 65 String algorithm = certificate.getPublicKey().getAlgorithm(); 71 // If all the certificate in the chain is X509Certificate, 74 privateKey, new Certificate[] { certificate }); [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 33 import java.security.cert.Certificate; 103 Certificate certificate = null; local 105 certificate = certificateFactory 114 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() 123 .getPrivate(), new Certificate[] {certificate}); 167 private String encodedCertificate = "-----BEGIN CERTIFICATE-----\n" 189 + "-----END CERTIFICATE-----\n";
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
X509CertFactoryImplTest.java | 27 import java.security.cert.Certificate; 51 Certificate cert; 53 // DER encoded certificate generation testing 58 assertNotNull("First generated certificate is null", cert); 60 assertNotNull("Second generated certificate is null", cert); 72 assertNotNull("First generated certificate is null", cert); 74 assertNotNull("Second generated certificate is null", cert); 89 // DER encoded certificate generation testing 203 X509Certificate certificate = test.certificate; local [all...] |
X509CertPathImplTest.java | 45 private X509Certificate certificate; field in class:X509CertPathImplTest 50 certificate = test.certificate; 61 certList.add(certificate); 70 assertEquals("Certificate list size missmatch", 81 assertEquals("Certificate list size missmatch", certList.size(), cpath 91 assertEquals("Certificate list size missmatch", certList.size(), cpath 114 assertEquals("Certificate list size missmatch", certList.size(), cpath 120 assertEquals("Certificate list size missmatch", certList.size(), cpath 131 assertEquals("Certificate list size missmatch", certList.size() [all...] |
X509CertFactoryPerfTest.java | 61 // The values of certificate's fields: 75 static String issuerName = "O=Certificate Issuer"; 175 // Certificate Policies with ANY policy 227 static X509Certificate certificate; field in class:X509CertFactoryPerfTest 280 "-----BEGIN CERTIFICATE-----\n" + 297 "-----END CERTIFICATE-----\n" + 298 "-----BEGIN CERTIFICATE-----\n" + 315 "-----END CERTIFICATE-----\n"; 328 * Creates the master certificate on the base of which 343 Certificate cert [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXBuilderParametersTest.java | 48 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:PKIXBuilderParametersTest 62 + "-----END CERTIFICATE-----\n"; 64 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 78 + "-----END CERTIFICATE-----\n"; 213 * <code>keystore</code> does not contain at least one trusted certificate 239 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 270 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 298 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 341 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
X509KeyManagerImpl.java | 7 import java.security.cert.Certificate; 24 // creating a certificate 25 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerImpl 39 + "-----END CERTIFICATE-----\n"; 41 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 44 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 58 + "-----END CERTIFICATE-----\n"; 63 String certificate3 = "-----BEGIN CERTIFICATE-----\n" 82 + "-----END CERTIFICATE-----\n" [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/ |
BuildPreferencePage.java | 136 X509Certificate certificate = (X509Certificate)provider.getCertificate(); local 138 if (key == null || certificate == null) { 144 if (certificate.getNotAfter().compareTo(today) < 0) { 145 showErrorMessage("Certificate is expired!"); 149 if (certificate.getNotBefore().compareTo(today) > 0) { 150 showErrorMessage("Certificate validity is in the future!");
|
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/internal/build/ |
DebugKeyProviderTest.java | 78 X509Certificate certificate = (X509Certificate) provider.getCertificate(); local 79 assertNotNull(certificate); 84 assertTrue(certificate.getNotAfter().compareTo(c.getTime()) > 0); 91 certificate.getNotAfter().compareTo(c.getTime()) > 0); 96 certificate.getNotAfter().compareTo(c.getTime()) > 0); 101 certificate.getNotAfter().compareTo(c.getTime()) > 0);
|