Lines Matching defs:publicKey
55 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
61 s.initVerify(publicKey);
79 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
80 testSignature("MD2withRSA", privateKey, publicKey);
81 testSignature("MD5withRSA", privateKey, publicKey);
82 testSignature("SHA1withRSA", privateKey, publicKey);
83 testSignature("SHA256withRSA", privateKey, publicKey);
84 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
87 testSignature("SHA384withRSA", privateKey, publicKey);
88 testSignature("SHA512withRSA", privateKey, publicKey);
104 PublicKey publicKey = ks.getCertificate(alias).getPublicKey();
106 publicKey = (PublicKey)kf.translateKey(publicKey);
107 test(privateKey, publicKey);