/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 65 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()
|
D | PKIXCertPathValidatorResultTest.java | 184 assertSame(pk, vr.getPublicKey()); in testGetPublicKey() 265 assertSame("publicKey", vr1.getPublicKey(), vr2.getPublicKey()); in testClone() 274 assertSame(my.getPublicKey(), myClone.getPublicKey()); in testClone()
|
D | CertificateCertificateRepTest.java | 75 assertEquals("0.3.5", obj.getPublicKey().getAlgorithm()); in testReadResolve() 76 assertEquals("X.509", obj.getPublicKey().getFormat()); in testReadResolve()
|
D | PKIXCertPathBuilderResultTest.java | 199 assertSame(init.getPublicKey(), clone.getPublicKey()); in test_clone()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
D | X509CertificateTest.java | 542 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 …]
|
D | CertificateTest.java | 64 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/ |
D | Identity2Test.java | 79 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()
|
D | KeyStore2Test.java | 265 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
|
D | KeyStorePrivateKeyEntryTest.java | 65 String algorithm = certificate.getPublicKey().getAlgorithm(); in testGetCertificateChain()
|
/libcore/luni/src/main/java/libcore/util/ |
D | RecoverySystem.java | 51 PublicKey signatureKey = cert.getPublicKey(); in verify() 61 if (c.getPublicKey().equals(signatureKey)) { in verify()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Identity.java | 160 public PublicKey getPublicKey() { in getPublicKey() method in Identity 255 if (!keyEquals(publicKey, certificate.getPublicKey())) { in addCertificate() 260 publicKey = certificate.getPublicKey(); in addCertificate()
|
D | Certificate.java | 95 public abstract PublicKey getPublicKey(); in getPublicKey() method
|
D | Signer.java | 157 PublicKey publicKey = getPublicKey(); in printKeys()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SystemScope.java | 112 PublicKey key = identity.getPublicKey(); in addIdentity() 142 PublicKey key = identity.getPublicKey(); in removeIdentity()
|
D | CertificateStub.java | 97 public PublicKey getPublicKey() { in getPublicKey() method in CertificateStub
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 147 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/ |
D | ECDHKeyAgreementTest.java | 83 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/ |
D | BasicChecker.java | 84 this.trustedPubKey = anchor.getTrustedCert().getPublicKey(); in BasicChecker() 246 PublicKey cKey = currCert.getPublicKey(); in updateState() 303 PublicKey getPublicKey() { in getPublicKey() method in BasicChecker
|
D | SunCertPathBuilder.java | 241 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()
|
D | AlgorithmChecker.java | 131 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/ |
D | PKIXCertPathBuilderResult.java | 115 sb.append(" Subject Public Key: " + getPublicKey() + "\n"); in toString()
|
D | PKIXCertPathValidatorResult.java | 125 public PublicKey getPublicKey() { in getPublicKey() method in PKIXCertPathValidatorResult
|
/libcore/ojluni/src/main/java/javax/security/cert/ |
D | Certificate.java | 176 public abstract PublicKey getPublicKey(); in getPublicKey() method in Certificate
|
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/ |
D | X509V1CertImpl.java | 206 public PublicKey getPublicKey() { in getPublicKey() method in X509V1CertImpl 207 PublicKey key = wrappedCert.getPublicKey(); in getPublicKey()
|
/libcore/support/src/test/java/tests/security/ |
D | DefaultKeys.java | 201 …public static PublicKey getPublicKey(String algorithmName) throws NoSuchAlgorithmException, Invali… in getPublicKey() method in DefaultKeys
|