Home
last modified time | relevance | path

Searched refs:generatePrivate (Results 1 – 17 of 17) 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()
DRSAPrivateCrtKeyTest.java30 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); in setUp()
DRSAKeyTest.java43 key = (RSAKey) gen.generatePrivate(new RSAPrivateKeySpec(n, d)); in test_getModulus()
/libcore/ojluni/src/test/java/security/KeyAgreement/
DNegativeTest.java160 kf.generatePrivate(priSpec); in testModifiedKeyEncodingTest()
285 kf.generatePrivate(privateSpec); in testInvalidSpec()
327 kf.generatePrivate(publicSpec); in testInCompatibleSpec()
DKeySizeTest.java143 = (DHPrivateKey) kf.generatePrivate(dhPriSpec); in testKeyAttributes()
188 = (ECPrivateKey) kf.generatePrivate(ecPriSpec); in testKeyAttributes()
225 = (XECPrivateKey) kf.generatePrivate(xdhPriSpec); in testKeyAttributes()
DKeySpecTest.java142 PrivateKey priKey = kf.generatePrivate(priSpec); in testKeySpecs()
173 PrivateKey priKey = kf.generatePrivate(priSpec); in testEncodedKeySpecs()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java597 return kf.generatePrivate( in getPrivate()
/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.java244 PrivateKey privateKey = factory.generatePrivate(keySpec); in testGeneratePrivate()
269 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/ojluni/src/main/java/java/security/
DKeyRep.java174 return f.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in readResolve()
DKeyFactory.java402 public final PrivateKey generatePrivate(KeySpec keySpec) in generatePrivate() method in KeyFactory
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java57 key = fact.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in test_getEncoded()
/libcore/ojluni/src/test/java/security/KeyStore/
DTestKeystoreBasic.java154 .generatePrivate(spec); in runTest()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java186 return keyFac.generatePrivate(pkcs8KeySpec); in buildPKCS8Key()
/libcore/api/
Dcurrent.txt8110 …method public final java.security.PrivateKey generatePrivate(java.security.spec.KeySpec) throws ja…