Searched refs:getKeySpec (Results 1 - 17 of 17) sorted by relevance

/openjdk7/jdk/test/javax/crypto/EncryptedPrivateKeyInfo/
H A DGetKeySpecException.java29 * EncryptedPrivateKeyInfo.getKeySpec(...) methods.
126 // TEST#1: getKeySpec(Cipher)
127 System.out.println("Testing getKeySpec(Cipher)...");
129 pkcs8Spec = epki.getKeySpec((Cipher) null);
135 // TEST#2: getKeySpec(Key)
136 System.out.println("Testing getKeySpec(Key)...");
138 pkcs8Spec = epki.getKeySpec((Key) null);
144 pkcs8Spec = epki.getKeySpec(INVALID_KEY);
150 pkcs8Spec = epkiBad.getKeySpec(cipherKey);
158 pkcs8Spec = epki.getKeySpec(cipherKe
[all...]
H A DGetKeySpec.java27 * @summary Test the EncryptedPrivateKeyInfo.getKeySpec(...) methods.
112 // TEST#1 getKeySpec(Cipher)
113 System.out.println("Testing getKeySpec(Cipher)...");
120 pkcs8Spec = epki.getKeySpec(cipher);
127 // TEST#2 getKeySpec(Key)
128 System.out.println("Testing getKeySpec(Key)...");
129 pkcs8Spec = epki.getKeySpec(cipherKey);
136 // TEST#3 getKeySpec(Key, String)
137 System.out.println("Testing getKeySpec(Key, String)...");
138 pkcs8Spec = epki.getKeySpec(cipherKe
[all...]
H A DGetKeySpecInvalidEncoding.java27 * @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(Ke
[all...]
H A DGetKeySpecException2.java28 * with wrong mode with EncryptedPrivateKeyInfo.getKeySpec
54 // TEST#1: getKeySpec(Cipher) with Cipher in an illegal state,
56 System.out.println("Testing getKeySpec(Cipher) with WRAP_MODE...");
61 epki.getKeySpec(c);
67 System.out.println("Testing getKeySpec(Cipher) with UNWRAP_MODE...");
70 epki.getKeySpec(c);
/openjdk7/jdk/test/sun/security/rsa/
H A DTestKeyFactory.java80 KeySpec rsaSpec = kf.getKeySpec(key, RSAPublicKeySpec.class);
82 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class);
96 KeySpec rsaSpec = kf.getKeySpec(key, RSAPrivateCrtKeySpec.class);
98 KeySpec pkcs8Spec = kf.getKeySpec(key, PKCS8EncodedKeySpec.class);
108 KeySpec rsaSpec2 = kf.getKeySpec(key, RSAPrivateKeySpec.class);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/PBE/
H A DPBEKeyTest.java44 KeySpec spec1 = fac.getKeySpec(skey, PBEKeySpec.class);
H A DPBEKeysAlgorithmNames.java75 System.out.println(" Checking skf.getKeySpec()");
76 KeySpec ks = skf.getKeySpec(sk, PBEKeySpec.class);
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DTestKeyFactory.java73 KeySpec keySpec = kf.getKeySpec(key, ECPublicKeySpec.class);
75 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class);
89 KeySpec keySpec = kf.getKeySpec(key, ECPrivateKeySpec.class);
91 KeySpec pkcs8Spec = kf.getKeySpec(key, PKCS8EncodedKeySpec.class);
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyFactory.java81 KeySpec rsaSpec = kf.getKeySpec(key, RSAPublicKeySpec.class);
83 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class);
97 KeySpec rsaSpec = kf.getKeySpec(key, RSAPrivateCrtKeySpec.class);
99 KeySpec pkcs8Spec = kf.getKeySpec(key, PKCS8EncodedKeySpec.class);
110 // KeySpec rsaSpec2 = kf.getKeySpec(key, RSAPrivateKeySpec.class);
/openjdk7/jdk/test/java/security/KeyFactory/
H A DFailover.java62 kf.getKeySpec(null, null);
66 kf.getKeySpec(null, null);
83 KeySpec spec = kf.getKeySpec(kp.getPublic(), DSAPublicKeySpec.class);
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DEncryptedPrivateKeyInfo.java246 public PKCS8EncodedKeySpec getKeySpec(Cipher cipher) method in class:EncryptedPrivateKeyInfo
321 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey) method in class:EncryptedPrivateKeyInfo
348 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey, method in class:EncryptedPrivateKeyInfo
382 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey, method in class:EncryptedPrivateKeyInfo
H A DSecretKeyFactory.java53 * {@link #getKeySpec(javax.crypto.SecretKey, java.lang.Class) getKeySpec}
370 public final KeySpec getKeySpec(SecretKey key, Class keySpec) method in class:SecretKeyFactory
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11KeyFactory.java80 return (T)implGetSoftwareFactory().getKeySpec(key, keySpec);
/openjdk7/jdk/test/com/sun/crypto/provider/KeyFactory/
H A DPBKDF2HmacSHA1FactoryTest.java92 // Test getKeySpec(...)
94 skf.getKeySpec(key, PBEKeySpec.class);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DDHCrypt.java150 return factory.getKeySpec(key, DHPublicKeySpec.class);
H A DJsseJce.java373 return factory.getKeySpec(key, RSAPublicKeySpec.class);
/openjdk7/jdk/src/share/classes/java/security/
H A DKeyFactory.java410 public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) method in class:KeyFactory

Completed in 340 milliseconds