Searched refs:getCertificate (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/security/
H A DKeyStoreTest.java238 getPrivateKey().getCertificate());
336 setCertificate(ks, alias, getPrivateKey().getCertificate());
357 assertEquals(getPrivateKey().getCertificate(), privateKey.getCertificate());
378 assertEquals(getPrivateKey().getCertificate(), actual);
382 assertEquals(getPrivateKey2().getCertificate(), actual);
387 assertEquals(getPrivateKey().getCertificate(),
663 keyStore.getCertificate(null);
673 keyStore.getCertificate(null);
681 assertNull(keyStore.getCertificate(""));
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustedCertificateKeyStoreSpi.java50 return store.getCertificate(alias);
H A DTrustedCertificateStore.java133 public Certificate getCertificate(String alias) { method in class:TrustedCertificateStore
134 return getCertificate(alias, false);
137 public Certificate getCertificate(String alias, boolean includeDeletedSystem) { method in class:TrustedCertificateStore
278 return getCertificate(alias, includeDeletedSystem) != null;
H A DTrustManagerImpl.java161 final X509Certificate cert = (X509Certificate) ks.getCertificate(alias);
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CertFactoryImpl.java105 return getCertificate(decodePEM(inStream, CERT_BOUND_SUFFIX));
109 return getCertificate(inStream);
188 result.add(getCertificate(inStream));
190 result.add(getCertificate(encoding));
600 private static Certificate getCertificate(byte[] encoding) method in class:X509CertFactoryImpl
630 private static Certificate getCertificate(InputStream inStream) method in class:X509CertFactoryImpl
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustedCertificateStoreTest.java262 store.getCertificate(null);
266 assertNull(store.getCertificate(""));
443 PublicKey publicKey = getPrivate().getCertificate().getPublicKey();
559 assertEquals(x, store.getCertificate(alias));
576 assertNull(store.getCertificate(alias));
581 store.getCertificate(alias, true) != null);
H A DNativeCryptoTest.java114 X509Certificate certificate = (X509Certificate) ks.getCertificate(caCertAlias);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKSPrivateKeyEntryTest.java152 * Test for <code>getCertificate()</code> method
159 Certificate res = ksPKE.getCertificate();
H A DKeyStore2Test.java245 * java.security.KeyStore#getCertificate(java.lang.String)
249 // java.security.KeyStore.getCertificate(java.lang.String)
257 keyTest.getCertificate("anAlias");
268 Certificate certRes = keyTest.getCertificate("alias1");
269 assertEquals("the public key of the certificate from getCertificate() "
277 Certificate cert2 = keyTest.getCertificate("alias2");
528 Certificate resultCert = keyTest.getCertificate("alias1");
529 assertEquals("the public key of the certificate from getCertificate() "
782 assertEquals(new MyCertificate(type, testEncoding), pkeActual1.getCertificate());
792 assertEquals(new MyCertificate(type, testEncoding), pkeActual2.getCertificate());
[all...]
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLSessionTest.java75 X509Certificate cert = (X509Certificate)store.getCertificate("mykey");
134 Certificate cert = store.getCertificate("mykey");
145 X509Certificate cert = (X509Certificate)store.getCertificate("mykey");
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java223 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias);
239 Certificate keyStoreCertificate = keyStore.getCertificate(alias);
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java376 caCert = (X509Certificate)signer.getCertificate();
633 X509Certificate certificate = (X509Certificate) privateKey.getCertificate();
778 X509Certificate cert = (X509Certificate)src.getCertificate(alias);
801 X509Certificate cert = (X509Certificate)src.getCertificate(alias);
830 out.println(keyStore.getCertificate(alias));
/libcore/luni/src/main/java/java/security/
H A DKeyStore.java282 public final Certificate getCertificate(String alias) throws KeyStoreException { method in class:KeyStore
1268 public Certificate getCertificate() { method in class:KeyStore.PrivateKeyEntry
/libcore/luni/src/main/java/java/security/cert/
H A DPKIXParameters.java118 Certificate c = keyStore.getCertificate(alias);
H A DX509CertSelector.java98 public X509Certificate getCertificate() { method in class:X509CertSelector
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java240 assertEquals(selector.getCertificate(), selector1.getCertificate());
312 * java.security.cert.X509CertSelector#getCertificate()
326 assertEquals(cert1, selector.getCertificate());
329 assertEquals(cert2, selector.getCertificate());
332 assertNull(selector.getCertificate());
934 assertNull(selector.getCertificate());
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherTest.java883 .getPrivateKey("RSA", "RSA").getCertificate();

Completed in 663 milliseconds