/openjdk7/jdk/test/javax/crypto/EncryptedPrivateKeyInfo/ |
H A D | GetKeySpecException.java | 29 * 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 D | GetKeySpec.java | 27 * @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 D | GetKeySpecInvalidEncoding.java | 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(Ke [all...] |
H A D | GetKeySpecException2.java | 28 * 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 D | TestKeyFactory.java | 80 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 D | PBEKeyTest.java | 44 KeySpec spec1 = fac.getKeySpec(skey, PBEKeySpec.class);
|
H A D | PBEKeysAlgorithmNames.java | 75 System.out.println(" Checking skf.getKeySpec()"); 76 KeySpec ks = skf.getKeySpec(sk, PBEKeySpec.class);
|
/openjdk7/jdk/test/sun/security/pkcs11/ec/ |
H A D | TestKeyFactory.java | 73 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 D | TestKeyFactory.java | 81 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 D | Failover.java | 62 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 D | EncryptedPrivateKeyInfo.java | 246 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 D | SecretKeyFactory.java | 53 * {@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 D | P11KeyFactory.java | 80 return (T)implGetSoftwareFactory().getKeySpec(key, keySpec);
|
/openjdk7/jdk/test/com/sun/crypto/provider/KeyFactory/ |
H A D | PBKDF2HmacSHA1FactoryTest.java | 92 // Test getKeySpec(...) 94 skf.getKeySpec(key, PBEKeySpec.class);
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | DHCrypt.java | 150 return factory.getKeySpec(key, DHPublicKeySpec.class);
|
H A D | JsseJce.java | 373 return factory.getKeySpec(key, RSAPublicKeySpec.class);
|
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | KeyFactory.java | 410 public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) method in class:KeyFactory
|