/libcore/luni/src/main/java/org/apache/harmony/security/fortress/ |
D | Services.java | 63 private static final ArrayList<Provider> providers = new ArrayList<Provider>(20); field in Services 79 providers.add(p); 94 return providers; in getProviders() 111 int size = providers.size(); in insertProviderAt() 115 providers.add(position - 1, provider); in insertProviderAt() 125 Provider p = providers.remove(providerNumber - 1); in removeProvider() 210 for (Provider p : providers) { in getCacheVersion()
|
/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 | 117 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() local 119 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 120 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 122 assertEquals(providers[i], signature.getProvider()); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 138 Signature.getInstance((String) null, providers[0]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() local 144 Signature.getInstance("bogus", providers[0]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 156 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local 158 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String() 159 Signature.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String() 163 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 | 429 Provider[] providers = Security.getProviders("MessageDigest.SHA"); in setUp() local 430 for (Provider provider : providers) { in setUp()
|
/libcore/luni/src/main/java/java/security/ |
D | Security.java | 97 Provider[] providers = getProviders(); in getAlgorithmProperty() local 98 for (Provider provider : providers) { in getAlgorithmProperty() 187 ArrayList<Provider> providers = Services.getProviders(); in getProviders() local 188 return providers.toArray(new Provider[providers.size()]); in getProviders() 318 private static void filterProviders(ArrayList<Provider> providers, String service, in filterProviders() argument 320 Iterator<Provider> it = providers.iterator(); in filterProviders() 389 ArrayList<Provider> providers = Services.getProviders(); in renumProviders() local 390 for (int i = 0; i < providers.size(); i++) { in renumProviders() 391 providers.get(i).setProviderNumber(i + 1); in renumProviders()
|
D | security.properties | 25 # Remaining Harmony providers
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | KeyPairGeneratorTest.java | 59 Provider[] providers = Security.getProviders(); in test_providerCount() local 61 assertTrue(providers.length > 0); in test_providerCount() 64 assertTrue(providers.length < 10); in test_providerCount() argument 108 Provider[] providers = Security.getProviders(); 109 if (providerIndex >= providers.length) { 115 Provider provider = providers[providerIndex]; 307 Provider[] providers = Security.getProviders(); in test_KeyWithAllKeyFactories() local 308 for (Provider p : providers) { in test_KeyWithAllKeyFactories() 418 final Provider[] providers = Security.getProviders(); in testDSAGeneratorWithParams() local 419 for (final Provider p : providers) { in testDSAGeneratorWithParams()
|
D | SecureRandomTest.java | 37 Provider[] providers = Security.getProviders(); in test_getInstance() local 38 for (Provider provider : providers) { in test_getInstance()
|
D | ProviderTest.java | 70 Provider[] providers = Security.getProviders(); in test_Provider_getServices() local 71 for (Provider provider : providers) { in test_Provider_getServices() 168 Provider[] providers = Security.getProviders(); in test_Provider_Properties() local 169 for (Provider provider : providers) { in test_Provider_Properties() 261 Provider[] providers = Security.getProviders(); in test_Provider_getServices_supportsParameter() local 262 for (Provider provider : providers) { in test_Provider_getServices_supportsParameter()
|
D | MessageDigestTest.java | 50 Provider[] providers = Security.getProviders(); in test_getInstance() local 51 for (Provider provider : providers) { in test_getInstance()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | ECDHKeyAgreementTest.java | 373 Provider[] providers = Security.getProviders("KeyAgreement.ECDH"); in getKeyAgreementProviders() local 374 if (providers == null) { in getKeyAgreementProviders() 379 return sortByName(providers); in getKeyAgreementProviders() 383 Provider[] providers = Security.getProviders("KeyFactory.EC"); in getKeyFactoryProviders() local 384 if (providers == null) { in getKeyFactoryProviders() 389 return sortByName(providers); in getKeyFactoryProviders() 429 private static Provider[] sortByName(Provider[] providers) { in sortByName() argument 430 Arrays.sort(providers, new Comparator<Provider>() { in sortByName() 436 return providers; in sortByName()
|
D | KeyGeneratorTest.java | 39 Provider[] providers = Security.getProviders(); in test_getInstance() local 40 for (Provider provider : providers) { in test_getInstance()
|
D | CipherTest.java | 988 Provider[] providers = Security.getProviders(); in test_getInstance() local 989 for (Provider provider : providers) { in test_getInstance() 2947 Provider[] providers = Security.getProviders(filter); in testRC4_MultipleKeySizes() local 2948 assertTrue("There must be security providers of Cipher.ARC4", providers.length > 0); in testRC4_MultipleKeySizes() 2951 String firstProvider = providers[0].getName(); in testRC4_MultipleKeySizes() 2953 for (Provider p : providers) { in testRC4_MultipleKeySizes()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory4Test.java | 167 Provider[] providers = Security in test_getInstanceLjava_lang_StringLjava_lang_String() local 170 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String() 171 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String() 173 "X.509", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 593 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testVerifyMD5() local 594 for (Provider provider : providers) { in testVerifyMD5() 607 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testVerifyMD2() local 608 for (Provider provider : providers) { in testVerifyMD2()
|
/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 | 843 Provider[] providers = Security.getProviders("Mac.HmacMD5"); in test_ConsistentBetweenProviders() local 847 for (int i = 0; i < providers.length; i++) { in test_ConsistentBetweenProviders() 848 System.out.println("provider = " + providers[i].getName()); in test_ConsistentBetweenProviders() 849 Mac mac = Mac.getInstance("HmacMD5", providers[i]); in test_ConsistentBetweenProviders() 855 defProvider = providers[i]; in test_ConsistentBetweenProviders() 862 assertEquals(defProvider.getName() + " vs. " + providers[i].getName(), in test_ConsistentBetweenProviders() 865 assertEquals(defProvider.getName() + " vs. " + providers[i].getName(), in test_ConsistentBetweenProviders()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | TrustManagerFactoryTest.java | 177 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_getInstance() local 178 for (Provider provider : providers) { in test_TrustManagerFactory_getInstance() 223 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_intermediate() local 224 for (Provider provider : providers) { in test_TrustManagerFactory_intermediate()
|
D | KeyManagerFactoryTest.java | 265 Provider[] providers = Security.getProviders(); in test_KeyManagerFactory_getInstance() local 266 for (Provider provider : providers) { in test_KeyManagerFactory_getInstance()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
D | X509CertificateTest.java | 766 Provider[] providers = Security.getProviders("Signature.MD5withRSA"); in testVerifyPublicKeyString() local 767 if (providers == null || providers.length == 0) { in testVerifyPublicKeyString() 775 providers[0].getName()); in testVerifyPublicKeyString()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | CertificateFactoryTest.java | 166 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in test_generateCertificate() local 167 for (Provider p : providers) { in test_generateCertificate() 378 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testGenerateCertPath() local 379 for (Provider p : providers) { in testGenerateCertPath()
|