/libcore/luni/src/test/java/tests/security/cert/ |
D | TrustAnchorTest.java | 72 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray01() local 75 new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in testTrustAnchorStringPublicKeybyteArray01() 77 new TrustAnchor(validCaNameRfc2253, pk, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray01() 79 new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); in testTrustAnchorStringPublicKeybyteArray01() 81 new TrustAnchor(validCaNameRfc2253, pk, getEncodingNoMinMax()); in testTrustAnchorStringPublicKeybyteArray01() 94 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray02() local 96 new TrustAnchor(validCaNameRfc2253, pk, null); in testTrustAnchorStringPublicKeybyteArray02() 109 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray03() local 114 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, ncCopy); in testTrustAnchorStringPublicKeybyteArray03() 132 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray04() local [all …]
|
D | PKIXCertPathValidatorResultTest.java | 175 PublicKey pk = testPublicKey; in testGetPublicKey() local 180 pk); in testGetPublicKey() 184 assertSame(pk, vr.getPublicKey()); in testGetPublicKey()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairTest.java | 109 PrivateKey pk = TestKeyPair.getPrivate(); 110 KeyPair kp = new KeyPair(null, pk); 111 assertSame(pk, kp.getPrivate()); 129 PublicKey pk = TestKeyPair.getPublic(); 130 KeyPair kp = new KeyPair(pk, null); 131 assertSame(pk, kp.getPublic());
|
D | KSPrivateKeyEntryTest.java | 67 PrivateKey pk = null; in testPrivateKeyEntry01() local 69 new KeyStore.PrivateKeyEntry(pk, certs); in testPrivateKeyEntry01() 83 PrivateKey pk = new tmpPrivateKey(); in testPrivateKeyEntry02() local 85 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02() 91 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
|
D | IdentityScope2Test.java | 45 public IdentityScopeSubclass(String name, PublicKey pk) { in IdentityScopeSubclass() argument 48 setPublicKey(pk); in IdentityScopeSubclass() 84 public Identity getIdentity(PublicKey pk) { in getIdentity() argument 88 if (current.getPublicKey() == pk) in getIdentity()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 315 PublicKey pk = reverse.getPublicKey(); in checkPair() local 316 if (!(pk instanceof DSAPublicKey) || in checkPair() 317 ((DSAPublicKey)pk).getParams() != null) { in checkPair() 318 forward.verify(pk); in checkPair() 320 pk = forward.getPublicKey(); in checkPair() 321 if (!(pk instanceof DSAPublicKey) || in checkPair() 322 ((DSAPublicKey)pk).getParams() != null) { in checkPair() 323 reverse.verify(pk); in checkPair()
|
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/ |
D | CertBlacklistTest.java | 246 PublicKey pk = createPublicKey(TEST_CERT); in testLegitPubkeyIsntBlacklisted() local 252 assertEquals(bl.isPublicKeyBlackListed(pk), false); in testLegitPubkeyIsntBlacklisted() 257 PublicKey pk = createPublicKey(TEST_CERT); in testPubkeyIsBlacklisted() local 259 String hash = getHash(pk); in testPubkeyIsBlacklisted() 267 assertTrue(bl.isPublicKeyBlackListed(pk)); in testPubkeyIsBlacklisted() 404 PublicKey pk = createPublicKey(TURKTRUST_1); in testTurkTrustIntermediate1PubkeyBlacklist() local 410 assertEquals(bl.isPublicKeyBlackListed(pk), true); in testTurkTrustIntermediate1PubkeyBlacklist() 415 PublicKey pk = createPublicKey(TURKTRUST_2); in testTurkTrustIntermediate2PubkeyBlacklist() local 419 assertEquals(bl.isPublicKeyBlackListed(pk), true); in testTurkTrustIntermediate2PubkeyBlacklist() 424 PublicKey pk = createPublicKey(ANSSI); in testANSSIIntermediatePubkeyBlacklist() local [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 218 PublicKey pk = new PublicKeyStub("aaa", "fff", new byte[]{1,2,3,4,5}); in testIdentityEquals() local 220 i.setPublicKey(pk); in testIdentityEquals() 228 new IdentityStub(name, pk), Boolean.TRUE in testIdentityEquals() 235 i2.setPublicKey(pk); in testIdentityEquals() 320 PublicKey pk = new PublicKeyStub("kkk", "Identity.testGetPublicKey", null); in testGetPublicKey() local 321 i.setPublicKey(pk); in testGetPublicKey() 322 assertSame(pk, i.getPublicKey()); in testGetPublicKey()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | StressTest.java | 165 int pk = 1; in testInsertOfManyRowsUsingOneThread() local 171 insertNewRecord(c, pk++); in testInsertOfManyRowsUsingOneThread() 314 private void insertNewRecord(Connection c, int pk) { 321 ps.setInt(1, pk);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestKeyManager.java | 170 PrivateKey pk = keyManager.getPrivateKey(alias); in getPrivateKey() local 172 out.println(String.valueOf(pk)); in getPrivateKey() 173 return pk; in getPrivateKey()
|
/libcore/ojluni/src/main/java/java/util/ |
D | HashMap.java | 1857 int ph, dir; K pk; in find() local 1863 else if ((pk = p.key) == k || (k != null && k.equals(pk))) in find() 1871 (dir = compareComparables(kc, k, pk)) != 0) in find() 1925 K pk = p.key; in treeify() local 1932 (dir = compareComparables(kc, k, pk)) == 0) in treeify() 1933 dir = tieBreakOrder(k, pk); in treeify() 1977 int dir, ph; K pk; in putTreeVal() local 1982 else if ((pk = p.key) == k || (k != null && k.equals(pk))) in putTreeVal() 1986 (dir = compareComparables(kc, k, pk)) == 0) { in putTreeVal() 1996 dir = tieBreakOrder(k, pk); in putTreeVal()
|
D | ImmutableCollections.java | 777 private int probe(Object pk) { 778 int idx = Math.floorMod(pk.hashCode() ^ SALT, table.length >> 1) << 1; 784 } else if (pk.equals(ek)) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | TrustManagerFactory1Test.java | 448 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in test_initLjavax_net_ssl_ManagerFactoryParameters() local 449 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in test_initLjavax_net_ssl_ManagerFactoryParameters()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 2508 int ph = p.hash; K pk = p.key; V pv = p.val; in transfer() local 2510 ln = new Node<K,V>(ph, pk, pv, ln); in transfer() 2512 hn = new Node<K,V>(ph, pk, pv, hn); in transfer() 2745 int ph, dir; K pk; TreeNode<K,V> q; in findTreeNode() local 2751 else if ((pk = p.key) == k || (pk != null && k.equals(pk))) in findTreeNode() 2759 (dir = compareComparables(kc, k, pk)) != 0) in findTreeNode() 2828 K pk = p.key; in TreeBin() local 2835 (dir = compareComparables(kc, k, pk)) == 0) in TreeBin() 2836 dir = tieBreakOrder(k, pk); in TreeBin() 2935 int dir, ph; K pk; in putTreeVal() local [all …]
|