Home
last modified time | relevance | path

Searched refs:providers (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java94 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_constructor() local
95 if (providers != null) { in test_constructor()
96 for (int i = 0; i < providers.length; i++) { in test_constructor()
97 KeyFactoryStub kf = new KeyFactoryStub(kfs, providers[i], in test_constructor()
100 assertEquals(providers[i], kf.getProvider()); in test_constructor()
186 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
187 assertNotNull(providers); in test_getInstanceLjava_lang_StringLjava_lang_String()
189 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
190 KeyFactory.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
208 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_getInstanceLjava_lang_StringLjava_security_Provider() local
[all …]
DSecurityTest.java157 Provider[] providers; in testRemoveProvider() local
160 providers = Security.getProviders(); in testRemoveProvider()
163 for (int i = 0; i < providers.length; i++) { in testRemoveProvider()
164 Security.removeProvider(providers[i].getName()); in testRemoveProvider()
169 for (int i = 0; i < providers.length; i++) { in testRemoveProvider()
170 Security.addProvider(providers[i]); in testRemoveProvider()
174 assertEquals("Providers not restored correctly", providers[i], in testRemoveProvider()
192 Provider[] providers = Security.getProviders(); in test_getProviderLjava_lang_String() local
194 providers.length > 0); in test_getProviderLjava_lang_String()
195 for (Provider p : providers) { in test_getProviderLjava_lang_String()
DSignature2Test.java114 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() local
116 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
117 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
119 assertEquals(providers[i], signature.getProvider()); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
135 Signature.getInstance((String) null, providers[0]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() local
141 Signature.getInstance("bogus", providers[0]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
153 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
155 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
156 Signature.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
160 Signature.getInstance("bogus", providers[0].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DKeyPairGenerator4Test.java62 Provider[] providers = Security.getProviders("KeyPairGenerator.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
64 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
65 KeyPairGenerator.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DSecureRandom2Test.java155 Provider[] providers = Security in test_getInstanceLjava_lang_StringLjava_lang_String() local
157 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String()
158 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
160 .getInstance("SHA1PRNG", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DKeyFactoryTest.java34 Provider[] providers = Security.getProviders(); in setUp() local
35 if (providers.length == 0) { in setUp()
39 existingProvider = providers[0]; in setUp()
144 Provider[] providers = { in testGetInstanceStringProvider() local
160 Provider provider = providers[i]; in testGetInstanceStringProvider()
DMessageDigest2Test.java443 Provider[] providers = Security.getProviders("MessageDigest.SHA"); in setUp() local
444 for (Provider provider : providers) { in setUp()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory4Test.java175 Provider[] providers = Security in test_getInstanceLjava_lang_StringLjava_lang_String() local
178 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String()
179 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
181 "X.509", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java200 private LinkedHashMap<String,S> providers = new LinkedHashMap<>(); field in ServiceLoader
217 providers.clear(); in reload()
275 if (!providers.containsKey(ln) && !names.contains(ln)) in parseLine()
389 providers.put(cn, p); in nextService()
483 = providers.entrySet().iterator(); in iterator()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderList.java128 public static ProviderList newList(Provider ... providers) {
129 ProviderConfig[] configs = new ProviderConfig[providers.length];
130 for (int i = 0; i < providers.length; i++) {
131 configs[i] = new ProviderConfig(providers[i]);
242 public List<Provider> providers() {
315 return providers().toArray(P0);
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java602 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testVerifyMD5() local
603 for (Provider provider : providers) { in testVerifyMD5()
615 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testVerifyMD2() local
616 for (Provider provider : providers) { in testVerifyMD2()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java90 Provider[] providers = Security.getProviders(); in test_Provider_getServices() local
91 for (Provider provider : providers) { in test_Provider_getServices()
216 Provider[] providers = Security.getProviders(); in testProviderList() local
217 assertTrue(providers.length >= 7); in testProviderList()
218 assertProviderProperties(providers[0], "AndroidNSSP", in testProviderList()
220 assertProviderProperties(providers[1], "AndroidOpenSSL", in testProviderList()
222 assertProviderProperties(providers[2], "CertPathProvider", in testProviderList()
224 assertProviderProperties(providers[3], "AndroidKeyStoreBCWorkaround", in testProviderList()
226 assertProviderProperties(providers[4], "BC", in testProviderList()
228 assertProviderProperties(providers[5], "HarmonyJSSE", in testProviderList()
[all …]
DSecureRandomTest.java36 Provider[] providers = Security.getProviders(); in test_getInstance() local
37 for (Provider provider : providers) { in test_getInstance()
/libcore/ojluni/src/main/java/java/security/
DSecurity.java156 List<Provider> providers = Providers.getProviderList().providers(); in getProviderProperty() local
157 for (int i = 0; i < providers.size(); i++) { in getProviderProperty()
160 Provider prov = providers.get(i); in getProviderProperty()
1041 Provider[] providers = Security.getProviders(); in getAlgorithms() local
1043 for (int i = 0; i < providers.length; i++) { in getAlgorithms()
1045 for (Enumeration<Object> e = providers[i].keys(); in getAlgorithms()
DSecureRandom.java570 for (Provider p : Providers.getProviderList().providers()) { in getPrngAlgorithm()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java109 Provider[] providers = Security.getProviders("Cipher.DES"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
111 assertNotNull("No installed providers support Cipher.DES", providers); in test_getInstanceLjava_lang_StringLjava_lang_String()
113 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
114 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
118 cipher = Cipher.getInstance("DoBeDoBeDo", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
143 Provider[] providers = Security.getProviders("Cipher.DES"); in test_getInstanceLjava_lang_StringLjava_security_Provider() local
145 assertNotNull("No installed providers support Cipher.DES", providers); in test_getInstanceLjava_lang_StringLjava_security_Provider()
147 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_security_Provider()
148 Cipher cipher = Cipher.getInstance("DES", providers[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
159 Cipher.getInstance("WrongAlg", providers[0]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
[all …]
DMacTest.java863 Provider[] providers = Security.getProviders("Mac.HmacMD5"); in test_ConsistentBetweenProviders() local
867 for (int i = 0; i < providers.length; i++) { in test_ConsistentBetweenProviders()
871 if (providers[i].getName().startsWith("AndroidKeyStore")) { in test_ConsistentBetweenProviders()
875 System.out.println("provider = " + providers[i].getName()); in test_ConsistentBetweenProviders()
876 Mac mac = Mac.getInstance("HmacMD5", providers[i]); in test_ConsistentBetweenProviders()
882 defProvider = providers[i]; in test_ConsistentBetweenProviders()
889 assertEquals(defProvider.getName() + " vs. " + providers[i].getName(), in test_ConsistentBetweenProviders()
892 assertEquals(defProvider.getName() + " vs. " + providers[i].getName(), in test_ConsistentBetweenProviders()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java358 private static Iterator<CharsetProvider> providers() { in providers() method in Charset
429 for (Iterator<CharsetProvider> i = providers(); in lookupViaProviders()
637 for (Iterator i = providers(); i.hasNext();) {
/libcore/ojluni/annotations/hiddenapi/sun/security/jca/
DProviderList.java61 public static sun.security.jca.ProviderList newList(java.security.Provider... providers) { in newList() argument
77 public java.util.List<java.security.Provider> providers() { in providers() method in ProviderList
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java756 Provider[] providers = Security.getProviders(); in testVerifyPublicKeyString() local
758 for (; i < providers.length; i++) { in testVerifyPublicKeyString()
759 if (providers[i] == myProvider) { in testVerifyPublicKeyString()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java50 private static java.util.Iterator<java.nio.charset.spi.CharsetProvider> providers() { in providers() method in Charset
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java357 Provider[] providers = Security.getProviders("Signature." + c.getSigAlgName()); in verify() local
358 for (Provider p : providers) { in verify()
/libcore/ojluni/src/main/native/
Djvm.h661 jint providers_count, JVM_DTraceProvider* providers);
/libcore/expectations/
Dknownfailures.txt1438 description: "Recursive calls to Charset.forName from within providers will overflow the stack.",