Home
last modified time | relevance | path

Searched refs:getCertificate (Results 1 – 25 of 25) sorted by relevance

/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java122 private final X509Certificate getCertificate(CertificateFactory f, String name) in getCertificate() method in X509CertificateTest
310 X509Certificate c = getCertificate(f, CERT_RSA); in getPublicKey()
320 X509Certificate c = getCertificate(f, CERT_RSA); in getType()
325 X509Certificate c = getCertificate(f, CERT_RSA); in verify()
360 X509Certificate c1 = getCertificate(f, CERT_RSA); in check_equals()
361 X509Certificate c2 = getCertificate(f, CERT_RSA); in check_equals()
365 X509Certificate c3 = getCertificate(f, CERT_DSA); in check_equals()
371 X509Certificate c1 = getCertificate(f, CERT_RSA); in check_toString()
377 X509Certificate c2 = getCertificate(f, CERT_RSA); in check_toString()
380 X509Certificate c3 = getCertificate(f, CERT_DSA); in check_toString()
[all …]
DPKIXRevocationCheckerTest.java58 .singletonMap((X509Certificate) entity.getCertificate(), goodOCSPResponse); in test_CanSetOCSPResponse()
63 byte[] returnedResponse = returnedResponses.get(entity.getCertificate()); in test_CanSetOCSPResponse()
75 checker.setOcspResponderCert((X509Certificate) issuer.getCertificate()); in test_getOcspResponderCert()
76 assertEquals((X509Certificate) issuer.getCertificate(), checker.getOcspResponderCert()); in test_getOcspResponderCert()
DX509CRLTest.java80 private final X509Certificate getCertificate(CertificateFactory f, String name) in getCertificate() method in X509CRLTest
156 X509Certificate caCert = getCertificate(f, CERT_CRL_CA); in test_X509CRLImpl_verify()
197 X509Certificate caCert = getCertificate(f, CERT_CRL_CA); in verify()
214 X509Certificate dsaCert = getCertificate(f, CERT_DSA); in verify()
246 X509Certificate rsaCert = getCertificate(f, CERT_RSA); in isRevoked()
247 X509Certificate dsaCert = getCertificate(f, CERT_DSA); in isRevoked()
374 X509Certificate rsaCert = getCertificate(f, CERT_RSA); in assertRsaCrlEntry()
392 X509Certificate dsaCert = getCertificate(f, CERT_DSA); in assertDsaCrlEntry()
417 X509Certificate rsaCert = getCertificate(f, CERT_RSA); in getRevokedCertificates()
418 X509Certificate dsaCert = getCertificate(f, CERT_DSA); in getRevokedCertificates()
[all …]
DCertPathValidatorTest.java80 X509Certificate serverCert = (X509Certificate) serverEntry.getCertificate(); in runOCSPStapledTest()
82 (X509Certificate) caEntry.getCertificate(), caEntry.getPrivateKey(), certStatus); in runOCSPStapledTest()
85 .singleton(new TrustAnchor((X509Certificate) rootCaEntry.getCertificate(), null))); in runOCSPStapledTest()
105 chain.add((X509Certificate) caEntry.getCertificate()); in runOCSPStapledTest()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBuildStep.java87 cert = vertex.getCertificate(); in BuildStep()
107 public X509Certificate getCertificate() { in getCertificate() method in BuildStep
DVertex.java72 public X509Certificate getCertificate() { in getCertificate() method in Vertex
DPKIX.java242 X509Certificate cert = sel.getCertificate(); in getTargetSubject()
DBuilder.java432 X509Certificate targetCert = selector.getCertificate(); in addMatchingCerts()
DSunCertPathBuilder.java288 X509Certificate cert = vertex.getCertificate(); in depthFirstSearchForward()
/libcore/ojluni/src/main/java/sun/security/util/
DCertConstraintParameters.java56 public X509Certificate getCertificate() { in getCertificate() method in CertConstraintParameters
DAnchorCertificates.java68 .getCertificate(alias); in AccessController.doPrivileged()
DDisabledAlgorithmConstraints.java195 X509Certificate cert = cp.getCertificate(); in checkConstraints()
346 X509Certificate cert = cp.getCertificate(); in permits()
518 if (!permitsImpl(cp.getCertificate().getPublicKey())) { in permits()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java257 keyTest.getCertificate("anAlias"); in test_getCertificateLjava_lang_String()
268 Certificate certRes = keyTest.getCertificate("alias1"); in test_getCertificateLjava_lang_String()
277 Certificate cert2 = keyTest.getCertificate("alias2"); in test_getCertificateLjava_lang_String()
528 Certificate resultCert = keyTest.getCertificate("alias1"); in test_setCertificateEntryLjava_lang_StringLjava_security_cert_Certificate()
782 assertEquals(new MyCertificate(type, testEncoding), pkeActual1.getCertificate()); in test_getEntry()
792 assertEquals(new MyCertificate(type, testEncoding), pkeActual2.getCertificate()); in test_getEntry()
833 assertEquals(new MyCertificate(type, testEncoding), pkeActual.getCertificate()); in test_setEntry()
845 assertEquals(new MyCertificate(type, testEncoding), pkeActual.getCertificate()); in test_setEntry()
857 assertEquals(new MyCertificate(type, testEncoding), pkeActual.getCertificate()); in test_setEntry()
DKSPrivateKeyEntryTest.java178 Certificate res = ksPKE.getCertificate(); in testGetCertificate()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java259 public X509Certificate getCertificate(PKCS7 block) in getCertificate() method in SignerInfo
262 return block.getCertificate(certificateSerialNumber, issuerName); in getCertificate()
272 userCert = block.getCertificate(certificateSerialNumber, issuerName); in getCertificateChain()
419 X509Certificate cert = getCertificate(block); in verify()
DPKCS7.java716 public X509Certificate getCertificate(BigInteger serial, X500Name issuerName) { in getCertificate() method in PKCS7
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java555 caCert = (X509Certificate)signer.getCertificate(); in createKeys()
606 publicKey = privateEntry.getCertificate().getPublicKey(); in createKeys()
841 X509Certificate certificate = (X509Certificate) privateKey.getCertificate(); in privateKey()
928 X509Certificate serverCertJca = (X509Certificate) server.getCertificate(); in generateOCSPResponse()
929 X509Certificate caCertJca = (X509Certificate) issuer.getCertificate(); in generateOCSPResponse()
1052 X509Certificate cert = (X509Certificate)src.getCertificate(alias); in copySelfSignedCertificates()
1075 X509Certificate cert = (X509Certificate)src.getCertificate(alias); in copyCertificate()
1111 out.println(keyStore.getCertificate(alias)); in dump()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathBuilderTestPKIX.java45 X509Certificate clientCert = (X509Certificate) pke.getCertificate(); in getCertPathParameters()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java81 X509Certificate cert = (X509Certificate)store.getCertificate("mykey"); in test_getPeerPrincipal()
144 Certificate cert = store.getCertificate("mykey"); in test_getLocalCertificates()
155 X509Certificate cert = (X509Certificate)store.getCertificate("mykey"); in test_getLocalPrincipal()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java338 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias); in assertCertificateInKeyStore()
354 Certificate keyStoreCertificate = keyStore.getCertificate(alias); in assertCertificateInKeyStore()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXParameters.java152 Certificate cert = keystore.getCertificate(alias); in PKIXParameters()
DX509CertSelector.java1290 public X509Certificate getCertificate() { in getCertificate() method in X509CertSelector
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java226 assertEquals(selector.getCertificate(), selector1.getCertificate()); in test_clone()
300 assertEquals(cert1, selector.getCertificate()); in test_getCertificate()
303 assertEquals(cert2, selector.getCertificate()); in test_getCertificate()
306 assertNull(selector.getCertificate()); in test_getCertificate()
897 assertNull(selector.getCertificate()); in test_setCertificateLjava_security_cert_X509Certificate()
/libcore/ojluni/src/main/java/java/security/
DKeyStore.java632 public Certificate getCertificate() { in getCertificate() method in KeyStore.PrivateKeyEntry
1114 public final Certificate getCertificate(String alias) in getCertificate() method in KeyStore
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java1922 .getPrivateKey("RSA", "RSA").getCertificate(); in certificateWithKeyUsage()