Lines Matching refs:privateKey
55 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
58 s.initSign(privateKey);
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);
87 testSignature("SHA384withRSA", privateKey, publicKey);
88 testSignature("SHA512withRSA", privateKey, publicKey);
103 PrivateKey privateKey = (PrivateKey)ks.getKey(alias, password);
105 privateKey = (PrivateKey)kf.translateKey(privateKey);
107 test(privateKey, publicKey);