/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);
|
EventHandler.java | 24 * there is an SSL certificate error. error() can occur anywhere 128 * SSL certificate callback called before resource request is 131 public void certificate(SslCertificate certificate); method in interface:EventHandler 141 * SSL certificate error callback. Handles SSL error(s) on the way
|
SslCertificate.java | 32 * SSL certificate info (certificate details) class 42 * Name of the entity this certificate is issued to 47 * Name of the entity this certificate is issued by 70 * Saves the certificate state to a bundle 71 * @param certificate The SSL certificate to store 72 * @return A bundle with the certificate stored in it or null if fails 74 public static Bundle saveState(SslCertificate certificate) { 77 if (certificate != null) [all...] |
/libcore/luni/src/test/java/tests/security/ |
CertificateFactoryTest.java | 23 import java.security.cert.Certificate; 63 Certificate certificate = certificateFactory.generateCertificate( local 65 assertNotNull(certificate);
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | 30 import java.security.cert.Certificate; 42 * Following certificate chain was taken from https://www.verisign.com and 43 * uses MD2withRSA for the root certificate. This chain stops validating 48 * A selfsigned certificate using MD2withRSA 51 * Certificate: 88 "-----BEGIN CERTIFICATE-----\n" 101 + "-----END CERTIFICATE-----\n"; 104 * A certificate signed by selfSignedCertMD2 107 * Certificate: 147 * Certificate Sign, CRL Sig 605 Certificate certificate = certificateFactory local 626 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...] |
/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...] |
KeyStore3Test.java | 41 import java.security.cert.Certificate; 54 private Certificate certificate; field in class:KeyStore3Test 60 String certificateData = "-----BEGIN CERTIFICATE-----\n" 74 + "-----END CERTIFICATE-----\n"; 79 certificate = cf.generateCertificate(certArray); 116 args = {java.lang.String.class, java.security.Key.class, char[].class, java.security.cert.Certificate[].class} 128 args = {java.lang.String.class, java.security.Key.class, char[].class, java.security.cert.Certificate[].class} 133 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate}); [all...] |
Identity2Test.java | 24 import java.security.Certificate; 47 clazz=Certificate.class, 54 clazz=Certificate.class, 61 clazz=Certificate.class, 68 clazz=Certificate.class, 75 clazz=Certificate.class, 82 clazz=Certificate.class, 89 clazz=Certificate.class, 106 public static class CertificateImpl implements java.security.Certificate { 145 String certificate = "-----BEGIN CERTIFICATE-----\n field in class:Identity2Test [all...] |
UnresolvedPermissionTest.java | 35 import java.security.cert.Certificate; 68 args = {java.lang.String.class, java.lang.String.class, java.lang.String.class, java.security.cert.Certificate[].class} 87 new java.security.cert.Certificate[0]); 255 Certificate[] certificate = new java.security.cert.Certificate[] { local 256 new Certificate(null) { 301 "action3", certificate); 304 assertTrue(Arrays.equals(certificate, up3.getUnresolvedCerts()));
|
KeyStore2Test.java | 41 import java.security.cert.Certificate; 78 // creating a certificate 79 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test 93 + "-----END CERTIFICATE-----\n"; 95 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes()); 97 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 111 + "-----END CERTIFICATE-----\n"; 115 String certificate3 = "-----BEGIN CERTIFICATE-----\n" 134 + "-----END CERTIFICATE-----\n" [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 36 import java.security.cert.Certificate; 145 Certificate certificate = null; local 147 certificate = certificateFactory 156 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() 165 .getPrivate(), new Certificate[] {certificate}); 209 private String encodedCertificate = "-----BEGIN CERTIFICATE-----\n" 231 + "-----END CERTIFICATE-----\n";
|
/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 | 132 X509Certificate certificate = (X509Certificate)provider.getCertificate(); local 134 if (key == null || certificate == null) { 140 if (certificate.getNotAfter().compareTo(today) < 0) { 141 showErrorMessage("Certificate is expired!"); 145 if (certificate.getNotBefore().compareTo(today) > 0) { 146 showErrorMessage("Certificate validity is in the future!");
|
/build/core/ |
package.mk | 294 # an explicit certificate, use the default. 309 # If this is not an absolute certificate, assign it to a generic one. 314 certificate := $(LOCAL_CERTIFICATE).x509.pem macro 316 $(LOCAL_BUILT_MODULE): $(private_key) $(certificate) $(SIGNAPK_JAR) 318 $(LOCAL_BUILT_MODULE): PRIVATE_CERTIFICATE := $(certificate) 321 PACKAGES.$(LOCAL_PACKAGE_NAME).CERTIFICATE := $(certificate)
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
DomainNameValidatorTest.java | 133 private void checkMatch(String message, X509Certificate certificate, String thisDomain, 135 Boolean actual = DomainNameValidator.match(certificate, thisDomain); 232 X509Certificate certificate = (X509Certificate) factory.generateCertificate(certStream); local 234 checkMatch(message, certificate, domain, expected);
|
/libcore/luni/src/main/java/java/security/ |
Signature.java | 21 import java.security.cert.Certificate; 232 * using the certificate of the identity whose signature is going to be 235 * If the given certificate is an instance of {@link X509Certificate} and 236 * has a key usage parameter that indicates, that this certificate is not to 239 * @param certificate 240 * the certificate used to verify a signature. 242 * if the publicKey in the certificate is not valid or not to be 245 public final void initVerify(Certificate certificate) 247 if (certificate instanceof X509Certificate) [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
X509KeyManagerTest.java | 41 Certificate: 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerTest 104 + "-----END CERTIFICATE-----"; 106 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 235 Certificate: 263 OpenSSL Generated Certificate 279 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 296 + "-----END CERTIFICATE-----"; 427 Certificate [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXBuilderParametersTest.java | 54 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:PKIXBuilderParametersTest 68 + "-----END CERTIFICATE-----\n"; 70 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 84 + "-----END CERTIFICATE-----\n"; 292 * <code>keystore</code> does not contain at least one trusted certificate 330 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 367 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 401 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 450 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate [all...] |
X509CRL2Test.java | 31 import java.security.cert.Certificate; 47 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRL2Test 69 + "-----END CERTIFICATE-----\n"; 74 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 232 public boolean isRevoked(Certificate cert) {
|
X509CRLTest.java | 44 import java.security.cert.Certificate; 64 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRLTest 78 + "-----END CERTIFICATE-----\n"; 80 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 91 public boolean isRevoked(Certificate cert) { 298 * getRevokedCertificate(X509Certificate certificate) method testing.
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertImpl.java | 48 import org.apache.harmony.security.x509.Certificate; 56 * the instance of org.apache.harmony.security.x509.Certificate 58 * Certificate structure (as specified in RFC 3280 60 * @see org.apache.harmony.security.x509.Certificate 71 private final Certificate certificate; field in class:X509CertImpl 74 // cache values retrieved from the certificate object 91 // encoding of the certificate 102 * form of X.509 certificate provided via stream parameter. 103 * @param in input stream containing ASN.1 encoded form of certificate [all...] |
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ |
ApkBuilder.java | 279 X509Certificate certificate = (X509Certificate)keyProvider.getCertificate(); local 285 // compare the certificate expiration date 286 if (certificate != null && certificate.getNotAfter().compareTo(new Date()) < 0) { 288 throw new ApkCreationException("Debug Certificate expired on " + 289 DateFormat.getInstance().format(certificate.getNotAfter())); 294 certificate); 298 null /* key */, null /* certificate */);
|
/frameworks/base/tests/CoreTests/android/core/ |
TestEventHandler.java | 446 * Implements the EventHandler certificate method called every 449 public void certificate(SslCertificate certificate) {} method in class:TestEventHandler 497 * SSL certificate error callback. Handles SSL error(s) on the way 506 " certificate: " + error.getCertificate()); 511 expectDetails.append("SSL Certificate error event received "+ 528 if (expectSslErrors == -1) // && expectSslCertificate == certificate? 731 public void expectSSLCertificateError(SslCertificate certificate) { 733 expectCertificate = certificate;
|
/frameworks/base/core/java/android/webkit/ |
HTML5VideoViewProxy.java | 415 public void certificate(SslCertificate certificate) { method in class:HTML5VideoViewProxy.PosterDownloader
|