/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactory2Test.java | 94 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 …]
|
D | SecurityTest.java | 157 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()
|
D | Signature2Test.java | 114 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()
|
D | KeyPairGenerator4Test.java | 62 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()
|
D | SecureRandom2Test.java | 155 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()
|
D | KeyFactoryTest.java | 34 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()
|
D | MessageDigest2Test.java | 443 Provider[] providers = Security.getProviders("MessageDigest.SHA"); in setUp() local 444 for (Provider provider : providers) { in setUp()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory4Test.java | 175 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/ |
D | ServiceLoader.java | 200 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/ |
D | ProviderList.java | 128 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/ |
D | CertificateTest.java | 602 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/ |
D | ProviderTest.java | 90 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 …]
|
D | SecureRandomTest.java | 36 Provider[] providers = Security.getProviders(); in test_getInstance() local 37 for (Provider provider : providers) { in test_getInstance()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Security.java | 156 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()
|
D | SecureRandom.java | 570 for (Provider p : Providers.getProviderList().providers()) { in getPrngAlgorithm()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 109 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 …]
|
D | MacTest.java | 863 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/ |
D | Charset.java | 358 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/ |
D | ProviderList.java | 61 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/ |
D | X509CertificateTest.java | 756 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/ |
D | Charset.java | 50 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/ |
D | X509CertificateTest.java | 357 Provider[] providers = Security.getProviders("Signature." + c.getSigAlgName()); in verify() local 358 for (Provider p : providers) { in verify()
|
/libcore/ojluni/src/main/native/ |
D | jvm.h | 661 jint providers_count, JVM_DTraceProvider* providers);
|
/libcore/expectations/ |
D | knownfailures.txt | 1438 description: "Recursive calls to Charset.forName from within providers will overflow the stack.",
|