Lines Matching refs:PrivateKey
64 } else if (key1 instanceof PrivateKey) {
93 private static void testPrivate(KeyFactory kf, PrivateKey key) throws Exception {
95 PrivateKey key2 = (PrivateKey)kf.translateKey(key);
97 PrivateKey key3 = kf.generatePrivate(rsaSpec);
99 PrivateKey key4 = kf.generatePrivate(pkcs8Spec);
101 PrivateKey key5 = kf.generatePrivate(pkcs8Spec2);
109 PrivateKey key6 = kf.generatePrivate(rsaSpec2);
112 PrivateKey key7 = kf.generatePrivate(rsaSpec3);
123 } else if (key instanceof PrivateKey) {
124 testPrivate(kf, (PrivateKey)key);