Lines Matching refs:PrivateKey
65 } else if (key1 instanceof PrivateKey) {
94 private static void testPrivate(KeyFactory kf, PrivateKey key) throws Exception {
96 PrivateKey key2 = (PrivateKey)kf.translateKey(key);
98 PrivateKey key3 = kf.generatePrivate(rsaSpec);
100 PrivateKey key4 = kf.generatePrivate(pkcs8Spec);
102 PrivateKey key5 = kf.generatePrivate(pkcs8Spec2);
111 // PrivateKey key6 = kf.generatePrivate(rsaSpec2);
114 // PrivateKey key7 = kf.generatePrivate(rsaSpec3);
125 } else if (key instanceof PrivateKey) {
126 testPrivate(kf, (PrivateKey)key);