Home
last modified time | relevance | path

Searched refs:getPublicKey (Results 1 – 25 of 67) 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()
228 c1.getPublicKey(); in testGetPublicKey()
323 sig.initVerify(cert.getPublicKey()); in testVerifyPublicKeyString2()
326 cert.verify(cert.getPublicKey(), provider.getName()); in testVerifyPublicKeyString2()
331 cert.verify(cert.getPublicKey(), "UnknownProvider"); in testVerifyPublicKeyString2()
390 cert.verify(cert.getPublicKey()); in testVerifyPublicKey2()
392 PublicKey k = cert.getPublicKey(); in testVerifyPublicKey2()
398 cert.verify(c1.getPublicKey()); in testVerifyPublicKey2()
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()
269 sub.setPublicKey(cert[0].getPublicKey()); in test_removeCertificateLjava_security_Certificate()
303 sub.setPublicKey(cert[0].getPublicKey()); in test_equalsLjava_lang_Object()
323 sub.setPublicKey(cert[0].getPublicKey()); in test_identityEqualsLjava_security_Identity()
327 sub2.setPublicKey(cert[0].getPublicKey()); in test_identityEqualsLjava_security_Identity()
386 PublicKey returnedPubKey = sub.getPublicKey(); in testSetPublicKey()
390 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()
985 public PublicKey getPublicKey() { in getPublicKey() method in KeyStore2Test.MyCertificate
DKeyStorePrivateKeyEntryTest.java65 String algorithm = certificate.getPublicKey().getAlgorithm(); in testGetCertificateChain()
/libcore/luni/src/main/java/libcore/util/
DRecoverySystem.java51 PublicKey signatureKey = cert.getPublicKey(); in verify()
61 if (c.getPublicKey().equals(signatureKey)) { in verify()
/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/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/luni/src/test/java/libcore/javax/crypto/
DECDHKeyAgreementTest.java83 KAT_PUBLIC_KEY1 = getPublicKey(KAT_PUBLIC_KEY1_X509);
85 KAT_PUBLIC_KEY2 = getPublicKey(KAT_PUBLIC_KEY2_X509);
100 ECPublicKey publicKey1 = getPublicKey(KAT_PUBLIC_KEY1_X509, keyFactoryProvider1); in testKnownAnswer()
105 getPublicKey(KAT_PUBLIC_KEY2_X509, keyFactoryProvider2); in testKnownAnswer()
413 private static ECPublicKey getPublicKey(byte[] x509EncodedKey, Provider provider) in getPublicKey() method in ECDHKeyAgreementTest
425 private static ECPublicKey getPublicKey(byte[] x509EncodedKey) in getPublicKey() method in ECDHKeyAgreementTest
/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
DSunCertPathBuilder.java241 this.finalPublicKey = anchor.getTrustedCert().getPublicKey(); in buildReverse()
247 PublicKey pubKey = trustedCert != null ? trustedCert.getPublicKey() in buildReverse()
433 PublicKey rootKey = cert.getPublicKey(); in depthFirstSearchForward()
582 finalPublicKey = basicChecker.getPublicKey(); in depthFirstSearchForward()
590 finalPublicKey = finalCert.getPublicKey(); in depthFirstSearchForward()
726 finalPublicKey = cert.getPublicKey(); in depthFirstSearchReverse()
DAlgorithmChecker.java131 this.trustedPubKey = anchor.getTrustedCert().getPublicKey(); in AlgorithmChecker()
184 PublicKey currPubKey = x509Cert.getPublicKey(); in check()
319 prevPubKey = anchor.getTrustedCert().getPublicKey(); in trySetTrustAnchor()
/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/javax/security/cert/
DCertificate.java176 public abstract PublicKey getPublicKey(); in getPublicKey() method in Certificate
/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/support/src/test/java/tests/security/
DDefaultKeys.java201 …public static PublicKey getPublicKey(String algorithmName) throws NoSuchAlgorithmException, Invali… in getPublicKey() method in DefaultKeys

123