Lines Matching refs:privateKey
56 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
59 s.initSign(privateKey);
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);
88 testSignature("SHA384withRSA", privateKey, publicKey);
89 testSignature("SHA512withRSA", privateKey, publicKey);
108 PrivateKey privateKey = (PrivateKey)ks.getKey(alias, password);
110 privateKey = (PrivateKey)kf.translateKey(privateKey);
112 test(privateKey, publicKey);