Lines Matching refs:getKeySpec
27 * @summary Test the EncryptedPrivateKeyInfo.getKeySpec(...)
111 // TEST#1 getKeySpec(Cipher)
112 System.out.println("Testing getKeySpec(Cipher)...");
120 pkcs8Spec = epki.getKeySpec(cipher);
121 throw new Exception("getKeySpec(Cipher): should throw IKSE");
125 // TEST#2 getKeySpec(Key)
126 System.out.println("Testing getKeySpec(Key)...");
128 pkcs8Spec = epki.getKeySpec(cipherKey);
129 throw new Exception("getKeySpec(Key): should throw IKE");
134 // TEST#3 getKeySpec(Key, String)
135 System.out.println("Testing getKeySpec(Key, String)...");
137 pkcs8Spec = epki.getKeySpec(cipherKey, p.getName());
138 throw new Exception("getKeySpec(Key, String): should throw IKE");
143 // TEST#4 getKeySpec(Key, Provider)
144 System.out.println("Testing getKeySpec(Key, Provider)...");
146 pkcs8Spec = epki.getKeySpec(cipherKey, p);
147 throw new Exception("getKeySpec(Key, Provider): should throw IKE");