Lines Matching defs:publicKey
56 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
62 s.initVerify(publicKey);
80 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
81 testSignature("MD2withRSA", privateKey, publicKey);
82 testSignature("MD5withRSA", privateKey, publicKey);
83 testSignature("SHA1withRSA", privateKey, publicKey);
84 testSignature("SHA256withRSA", privateKey, publicKey);
85 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
88 testSignature("SHA384withRSA", privateKey, publicKey);
89 testSignature("SHA512withRSA", privateKey, publicKey);
109 PublicKey publicKey = ks.getCertificate(alias).getPublicKey();
111 publicKey = (PublicKey)kf.translateKey(publicKey);
112 test(privateKey, publicKey);