Home
last modified time | relevance | path

Searched refs:KeyFactory (Results 1 – 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java22 import java.security.KeyFactory;
111 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i], providerName); in test_generatePrivateLjava_security_spec_KeySpec()
139 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i], in test_generatePublicLjava_security_spec_KeySpec()
167 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i], in test_getAlgorithm()
178 assertNotNull(KeyFactory.getInstance(keyfactAlgs[i])); in test_getInstanceLjava_lang_String()
190 KeyFactory.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
196 KeyFactory.getInstance("DSA", (String) null); in test_getInstanceLjava_lang_StringLjava_lang_String()
212 KeyFactory.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
217 KeyFactory.getInstance("DSA", (Provider) null); in test_getInstanceLjava_lang_StringLjava_security_Provider()
230 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i], in test_getKeySpecLjava_security_KeyLjava_lang_Class()
[all …]
DKeyFactoryTest.java12 import java.security.KeyFactory;
57 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME); in testGetInstanceString()
78 KeyFactory.getInstance(algorithm); in testGetInstanceString()
91 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME, TEST_PROVIDER_NAME); in testGetInstanceStringString()
123 KeyFactory.getInstance(combination[0], combination[1]); in testGetInstanceStringString()
135 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME, provider); in testGetInstanceStringProvider()
171 KeyFactory.getInstance(algorithm, provider); in testGetInstanceStringProvider()
183 KeyFactory factory = null; in testGeneratePublic()
185 factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME); in testGeneratePublic()
232 KeyFactory factory = null; in testGeneratePrivate()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyFactory.java121 public class KeyFactory { class
150 protected KeyFactory(KeyFactorySpi keyFacSpi, Provider provider, in KeyFactory() method in KeyFactory
157 private KeyFactory(String algorithm) throws NoSuchAlgorithmException { in KeyFactory() method in KeyFactory
193 public static KeyFactory getInstance(String algorithm) in getInstance()
200 return new KeyFactory(algorithm); in getInstance()
235 public static KeyFactory getInstance(String algorithm, String provider) in getInstance()
246 return new KeyFactory((KeyFactorySpi)instance.impl, in getInstance()
278 public static KeyFactory getInstance(String algorithm, Provider provider) in getInstance()
289 return new KeyFactory((KeyFactorySpi)instance.impl, in getInstance()
DKeyRep.java170 KeyFactory f = KeyFactory.getInstance(algorithm); in readResolve()
173 KeyFactory f = KeyFactory.getInstance(algorithm); in readResolve()
/libcore/luni/src/test/java/tests/security/interfaces/
DRSAPrivateKeyTest.java21 import java.security.KeyFactory;
32 KeyFactory gen = KeyFactory.getInstance("RSA"); in test_getPrivateExponent()
DRSAPublicKeyTest.java21 import java.security.KeyFactory;
32 KeyFactory gen = KeyFactory.getInstance("RSA"); in test_getPublicExponent()
DRSAPrivateCrtKeyTest.java20 import java.security.KeyFactory;
29 KeyFactory gen = KeyFactory.getInstance("RSA"); in setUp()
DRSAKeyTest.java21 import java.security.KeyFactory;
36 KeyFactory gen = KeyFactory.getInstance("RSA"); in test_getModulus()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java25 import java.security.KeyFactory;
43 private final KeyFactory kf;
585 kf = KeyFactory.getInstance(this.algorithmName); in TestKeyPair()
/libcore/ojluni/src/test/java/security/KeyAgreement/
DNegativeTest.java48 import java.security.KeyFactory;
152 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testModifiedKeyEncodingTest()
279 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testInvalidSpec()
323 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testInCompatibleSpec()
DKeySpecTest.java41 import java.security.KeyFactory;
130 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testKeySpecs()
170 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testEncodedKeySpecs()
DKeySizeTest.java49 import java.security.KeyFactory;
127 KeyFactory kf = KeyFactory.getInstance(kpgAlgo, provider); in testKeyAttributes()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java20 import java.security.KeyFactory;
52 KeyFactory keyFact = KeyFactory.getInstance("DH"); in getSecretKey()
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java23 import java.security.KeyFactory;
45 KeyFactory fact = KeyFactory.getInstance("DSA"); in test_getEncoded()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java21 import java.security.KeyFactory;
54 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getPrivateKey()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBasicChecker.java33 import java.security.KeyFactory;
285 KeyFactory kf = KeyFactory.getInstance("DSA"); in makeInheritedParamsKey()
DAlgorithmChecker.java36 import java.security.KeyFactory;
331 KeyFactory kf = KeyFactory.getInstance("DSA"); in check()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509KeyManagerTest.java5 import java.security.KeyFactory;
627 KeyFactory kf = KeyFactory.getInstance("RSA"); in init()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509Key.java33 import java.security.KeyFactory;
220 KeyFactory keyFac = KeyFactory.getInstance(algid.getName()); in buildX509Key()
/libcore/ojluni/src/test/java/security/Provider/
DProvidersTest.java26 import java.security.KeyFactory;
87 return KeyFactory.getInstance("EC"); in CONSCRYPT_ALGORITHMS.add()
448 KeyFactory.getInstance(algorithm, bcProvider); in testRemovedBCAlgorithms()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java34 import java.security.KeyFactory;
183 KeyFactory keyFac = KeyFactory.getInstance(algid.getName()); in buildPKCS8Key()
/libcore/ojluni/src/test/java/security/KeyStore/
DTestKeystoreBasic.java30 import java.security.KeyFactory;
153 PrivateKey privateKey = KeyFactory.getInstance("RSA") in runTest()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DProxy.java192 private static final class KeyFactory class in Proxy
196 private KeyFactory() { in KeyFactory() method in Proxy.KeyFactory
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java28 import java.security.KeyFactory;
314 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createPublicKey()
/libcore/ojluni/src/test/java/security/cert/
DX509CertSelectorTest.java36 import java.security.KeyFactory;
501 KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in testSubjectPublicKey()

12