Home
last modified time | relevance | path

Searched refs:generatePrivate (Results 1 – 12 of 12) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509KeyManagerTest.java632 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); in init()
633 keys[1] = kf.generatePrivate(new PKCS8EncodedKeySpec(key2Bytes)); in init()
634 keys[2] = kf.generatePrivate(new PKCS8EncodedKeySpec(key3Bytes)); in init()
647 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); in init()
/libcore/luni/src/test/java/tests/security/interfaces/
DRSAPrivateKeyTest.java35 RSAPrivateKey key = (RSAPrivateKey) gen.generatePrivate(new RSAPrivateKeySpec( in test_getPrivateExponent()
DRSAKeyTest.java43 key = (RSAKey) gen.generatePrivate(new RSAPrivateKeySpec(n, d)); in test_getModulus()
DRSAPrivateCrtKeyTest.java30 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); in setUp()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java597 return kf.generatePrivate( in getPrivate()
/libcore/ojluni/src/main/java/java/security/
DKeyRep.java178 return f.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in readResolve()
DKeyFactory.java390 public final PrivateKey generatePrivate(KeySpec keySpec) in generatePrivate() method in KeyFactory
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java124 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_generatePrivateLjava_security_spec_KeySpec()
128 … privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.getPrivate().getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
247 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
DKeyFactoryTest.java240 PrivateKey privateKey = factory.generatePrivate(keySpec); in testGeneratePrivate()
265 factory.generatePrivate(keySpec); in testGeneratePrivate()
DKeyStore2Test.java666 PrivateKey privateKey1 = KeyFactory.getInstance(type).generatePrivate( in test_getCreationDate()
759 KeyFactory.getInstance(type).generatePrivate( in test_getEntry()
809 KeyFactory.getInstance(type).generatePrivate( in test_setEntry()
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java57 key = fact.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in test_getEncoded()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java186 return keyFac.generatePrivate(pkcs8KeySpec); in buildPKCS8Key()