Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/tests/security/cert/
DCertificateTest.java65 assertEquals("TEST", c1.getPublicKey().getAlgorithm()); in testCertificate()
67 c1.getPublicKey().getEncoded())); in testCertificate()
68 assertEquals("TEST_FORMAT", c1.getPublicKey().getFormat()); in testCertificate()
256 c1.getPublicKey(); in testGetPublicKey()
351 sig.initVerify(cert.getPublicKey()); in testVerifyPublicKeyString2()
354 cert.verify(cert.getPublicKey(), provider.getName()); in testVerifyPublicKeyString2()
359 cert.verify(cert.getPublicKey(), "UnknownProvider"); in testVerifyPublicKeyString2()
403 sig.initVerify(cert.getPublicKey()); in testVerifyPublicKeyProvider2()
405 cert.verify(cert.getPublicKey(), provider); in testVerifyPublicKeyProvider2()
407 cert.verify(cert.getPublicKey(), (Provider)null); in testVerifyPublicKeyProvider2()
[all …]
DPKIXCertPathValidatorResultTest.java184 assertSame(pk, vr.getPublicKey()); in testGetPublicKey()
265 assertSame("publicKey", vr1.getPublicKey(), vr2.getPublicKey()); in testClone()
274 assertSame(my.getPublicKey(), myClone.getPublicKey()); in testClone()
DCertificateCertificateRepTest.java75 assertEquals("0.3.5", obj.getPublicKey().getAlgorithm()); in testReadResolve()
76 assertEquals("X.509", obj.getPublicKey().getFormat()); in testReadResolve()
DPKIXCertPathBuilderResultTest.java199 assertSame(init.getPublicKey(), clone.getPublicKey()); in test_clone()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java542 public PublicKey getPublicKey() { in getPublicKey() method in X509CertificateTest.MyCertificate
641 PublicKey key = javaxCert.getPublicKey(); in testGetPublicKey()
643 assertEquals(javaxCert.getPublicKey(), javaCert.getPublicKey()); in testGetPublicKey()
646 key = javaxSSCert.getPublicKey(); in testGetPublicKey()
668 assertNotNull(javaxCert.getPublicKey()); in testVerifyPublicKey()
669 assertNotNull(javaxSSCert.getPublicKey()); in testVerifyPublicKey()
677 javaxCert.verify(javaxCert.getPublicKey()); in testVerifyPublicKey()
682 PublicKey k = javaxCert.getPublicKey(); in testVerifyPublicKey()
689 javaxCert.verify(tbt_cert.getPublicKey()); in testVerifyPublicKey()
748 javaxCert.verify(javaxCert.getPublicKey(), myProvider.getName()); in testVerifyPublicKeyString()
[all …]
DCertificateTest.java64 public PublicKey getPublicKey() { in getPublicKey() method in CertificateTest.TBTCert
75 assertNull("Public key should be null", tbt_cert.getPublicKey()); in testCertificate()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentity2Test.java79 public PublicKey getPublicKey() { in getPublicKey() method in Identity2Test.CertificateImpl
80 return cert.getPublicKey(); in getPublicKey()
216 PublicKey returnedPubKey = sub.getPublicKey(); in test_getPublicKey()
250 sub.setPublicKey(cert[0].getPublicKey()); in test_certificates()
272 sub.setPublicKey(cert[0].getPublicKey()); in test_removeCertificateLjava_security_Certificate()
306 sub.setPublicKey(cert[0].getPublicKey()); in test_equalsLjava_lang_Object()
326 sub.setPublicKey(cert[0].getPublicKey()); in test_identityEqualsLjava_security_Identity()
330 sub2.setPublicKey(cert[0].getPublicKey()); in test_identityEqualsLjava_security_Identity()
389 PublicKey returnedPubKey = sub.getPublicKey(); in testSetPublicKey()
393 assertEquals("Wrong PublicKey returned", null, sub.getPublicKey()); in testSetPublicKey()
DKeyStore2Test.java265 PublicKey pub = cert[0].getPublicKey(); in test_getCertificateLjava_lang_String()
271 pub, certRes.getPublicKey()); in test_getCertificateLjava_lang_String()
347 cert[0].getPublicKey(), certRes[0].getPublicKey()); in test_getCertificateChainLjava_lang_String()
349 cert[1].getPublicKey(), certRes[1].getPublicKey()); in test_getCertificateChainLjava_lang_String()
524 PublicKey pub = cert.getPublicKey(); in test_setCertificateEntryLjava_lang_StringLjava_security_cert_Certificate()
531 pub, resultCert.getPublicKey()); in test_setCertificateEntryLjava_lang_StringLjava_security_cert_Certificate()
987 public PublicKey getPublicKey() { in getPublicKey() method in KeyStore2Test.MyCertificate
DKeyStorePrivateKeyEntryTest.java65 String algorithm = certificate.getPublicKey().getAlgorithm(); in testGetCertificateChain()
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java147 assertSame(pk1, i.getPublicKey()); in testAddCertificate2()
306 assertSame(pk1, i.getPublicKey()); in testSetPublicKey4()
310 assertSame(pk2, i.getPublicKey()); in testSetPublicKey4()
319 assertNull(i.getPublicKey()); in testGetPublicKey()
322 assertSame(pk, i.getPublicKey()); in testGetPublicKey()
/libcore/ojluni/src/main/java/java/security/
DIdentity.java160 public PublicKey getPublicKey() { in getPublicKey() method in Identity
255 if (!keyEquals(publicKey, certificate.getPublicKey())) { in addCertificate()
260 publicKey = certificate.getPublicKey(); in addCertificate()
DCertificate.java95 public abstract PublicKey getPublicKey(); in getPublicKey() method
DSigner.java157 PublicKey publicKey = getPublicKey(); in printKeys()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DSystemScope.java112 PublicKey key = identity.getPublicKey(); in addIdentity()
142 PublicKey key = identity.getPublicKey(); in removeIdentity()
DCertificateStub.java97 public PublicKey getPublicKey() { in getPublicKey() method in CertificateStub
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBasicChecker.java84 this.trustedPubKey = anchor.getTrustedCert().getPublicKey(); in BasicChecker()
246 PublicKey cKey = currCert.getPublicKey(); in updateState()
303 PublicKey getPublicKey() { in getPublicKey() method in BasicChecker
DAlgorithmChecker.java148 this.trustedPubKey = anchor.getTrustedCert().getPublicKey(); in AlgorithmChecker()
256 PublicKey currPubKey = cert.getPublicKey(); in check()
373 prevPubKey = anchor.getTrustedCert().getPublicKey(); in trySetTrustAnchor()
DRevocationChecker.java306 prevPubKey = (issuerCert != null) ? issuerCert.getPublicKey()
444 PublicKey pubKey = cert.getPublicKey();
1039 prevKey2 = ta.getTrustedCert().getPublicKey();
1056 prevKey2 = cert.getPublicKey();
1060 badKeys.add(cpbr.getPublicKey());
1066 " got key " + cpbr.getPublicKey());
1072 PublicKey newKey = cpbr.getPublicKey();
1141 if (badKeySet.contains(cert.getPublicKey())) {
DDistributionPointFetcher.java367 prevKey = certImpl.getPublicKey(); in verifyCRL()
390 prevKey = certImpl.getPublicKey(); in verifyCRL()
397 prevKey = certImpl.getPublicKey(); in verifyCRL()
659 prevKey = result.getPublicKey(); in verifyCRL()
768 crl.verify(cert.getPublicKey(), provider); in issues()
DX509CertificatePair.java315 PublicKey pk = reverse.getPublicKey(); in checkPair()
320 pk = forward.getPublicKey(); in checkPair()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXCertPathBuilderResult.java115 sb.append(" Subject Public Key: " + getPublicKey() + "\n"); in toString()
DPKIXCertPathValidatorResult.java125 public PublicKey getPublicKey() { in getPublicKey() method in PKIXCertPathValidatorResult
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
DX509V1CertImpl.java206 public PublicKey getPublicKey() { in getPublicKey() method in X509V1CertImpl
207 PublicKey key = wrappedCert.getPublicKey(); in getPublicKey()
/libcore/ojluni/src/main/java/javax/security/cert/
DCertificate.java176 public abstract PublicKey getPublicKey(); in getPublicKey() method in Certificate
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CRLTest.java173 interned.verify(caCert.getPublicKey(), f.getProvider()); in test_X509CRLImpl_verify()
216 crlRsa.verify(caCert.getPublicKey()); in verify()
220 crlRsa.verify(caCert.getPublicKey(), f.getProvider()); in verify()
234 crlRsa.verify(dsaCert.getPublicKey()); in verify()
241 crlRsa.verify(dsaCert.getPublicKey(), f.getProvider()); in verify()

123