/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderServiceTest.java | 27 import java.security.Provider; 28 import java.security.Provider.Service; 45 Provider p = new MyProvider(); in testService() 47 new Provider.Service(null, "type", "algorithm", "className", null, in testService() 53 new Provider.Service(p, null, "algorithm", "className", null, null); in testService() 58 new Provider.Service(p, "type", null, "className", null, null); in testService() 63 new Provider.Service(p, "type", "algorithm", null, null, null); in testService() 68 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testService() 89 Provider p = new MyProvider(); in testGetAttribute() 90 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testGetAttribute() [all …]
|
D | SecurityTest.java | 26 import java.security.Provider; 49 Provider p = new MyProvider(); in test_insertProviderAtLjava_security_ProviderLI() 52 Provider initialSecondProviderName = Security.getProviders()[1]; in test_insertProviderAtLjava_security_ProviderLI() 93 Provider p = new MyProvider(); in test_addProviderLjava_security_Provider() 118 Provider provider = new MyProvider(); in testGetAlgorithmPropertyLjava_lang_String_java_lang_String() 157 Provider[] providers; in testRemoveProvider() 158 Provider[] providers1; in testRemoveProvider() 192 Provider[] providers = Security.getProviders(); in test_getProviderLjava_lang_String() 195 for (Provider p : providers) { in test_getProviderLjava_lang_String() 201 Provider p = new MyProvider(); in test_getProviderLjava_lang_String() [all …]
|
D | ProviderTest.java | 32 import java.security.Provider; 35 import java.security.Provider.Service; 58 Provider[] storedProviders; 60 Provider p; 79 for (Provider p: Security.getProviders()) { in tearDown() 83 for (Provider p: storedProviders) { in tearDown() 121 Provider p = new MyProvider("Provider name", 123.456, "Provider info"); in testProviderStringdoubleString() 302 Provider.Service s = (Provider.Service)it.next(); in testPutObjectObject() 335 Provider.Service s = p.getService("MessageDigest", "SHA-1"); in testService1() 363 class MyProvider extends Provider { [all …]
|
D | Provider2Test.java | 22 import java.security.Provider; 27 class TestProvider extends Provider { 137 Provider.Service service = new Provider.Service(mockProvider, in test_getAlias() 153 public static class MockProvider extends Provider { 162 public void putService(Provider.Service service) { in putService() 166 public void removeService(Provider.Service service) { in removeService()
|
D | MessageDigest2Test.java | 26 import java.security.Provider; 42 private Map<Provider, List<String>> digestAlgs = new HashMap<Provider, List<String>>(); 83 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_clone() 245 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$B() 258 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$BII() 290 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getAlgorithm() 302 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getDigestLength() 314 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_String() 333 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String() 350 for (Provider provider : digestAlgs.keySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String() [all …]
|
D | Security2Test.java | 21 import java.security.Provider; 40 Provider[] allProviders = Security.getProviders(); in test_getProvidersLjava_lang_String() 43 for (Provider provider : allProviders) { in test_getProvidersLjava_lang_String() 56 for (Provider provider : allProviders) { in test_getProvidersLjava_lang_String() 77 Provider[] provTest = Security.getProviders(filterString); in test_getProvidersLjava_lang_String() 116 Provider[] allProviders = Security.getProviders(); in getProvidersCount() 119 for (Provider provider : allProviders) { in getProvidersCount() 185 Provider[] provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() 266 Provider test = new Support_TestProvider(); in test_removeProviderLjava_lang_String() 267 Provider entrust = new Support_ProviderTrust(); in test_removeProviderLjava_lang_String() [all …]
|
D | Signature2Test.java | 30 import java.security.Provider; 114 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 123 Signature.getInstance((String) null, (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 129 Signature.getInstance("DSA", (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 153 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() 165 Provider[] pp = Security.getProviders(); in test_getInstanceLjava_lang_StringLjava_lang_String() 224 Provider p = Signature.getInstance("DSA").getProvider(); in test_getProvider() 274 Provider p = new MyProvider(); in test_initVerifyLjava_security_Certificate() 277 Provider myProvider = new MyProvider(); in test_initVerifyLjava_security_Certificate() 281 Provider[] pp = Security.getProviders(); in test_initVerifyLjava_security_Certificate() [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/security/jca/ |
D | ProviderList.java | 47 sun.security.jca.ProviderList providerList, java.security.Provider p) { in add() 52 sun.security.jca.ProviderList providerList, java.security.Provider p, int position) { in insertAt() 61 public static sun.security.jca.ProviderList newList(java.security.Provider... providers) { in newList() 73 java.security.Provider getProvider(int index) { in getProvider() 77 public java.util.List<java.security.Provider> providers() { in providers() 85 public java.security.Provider getProvider(java.lang.String name) { in getProvider() 101 public java.security.Provider[] toArray() { in toArray() 110 public java.security.Provider.Service getService(java.lang.String type, java.lang.String name) { in getService() 114 public java.util.List<java.security.Provider.Service> getServices( in getServices() 120 public java.util.List<java.security.Provider.Service> getServices( in getServices() [all …]
|
D | GetInstance.java | 38 public static java.security.Provider.Service getService( in getService() 44 public static java.security.Provider.Service getService( in getService() 50 public static java.security.Provider.Service getService( in getService() 51 java.lang.String type, java.lang.String algorithm, java.security.Provider provider) in getService() 56 public static java.util.List<java.security.Provider.Service> getServices( in getServices() 62 public static java.util.List<java.security.Provider.Service> getServices( in getServices() 67 public static java.util.List<java.security.Provider.Service> getServices( in getServices() 112 java.security.Provider provider) in getInstance() 123 java.security.Provider provider) in getInstance() 129 java.security.Provider.Service s, java.lang.Class<?> clazz) in getInstance() [all …]
|
D | ProviderConfig.java | 42 ProviderConfig(java.security.Provider provider) { in ProviderConfig() 80 synchronized java.security.Provider getProvider() { in getProvider() 84 private java.security.Provider doLoadProvider() { in doLoadProvider() 88 private java.security.Provider initProvider( in initProvider() 130 private volatile java.security.Provider provider;
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 22 import java.security.Provider; 34 private static abstract class MockProvider extends Provider { 44 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 58 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_DoesNotSupportKeyClass_Success() 77 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 92 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 101 Provider mockProvider2 = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 115 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testCipher_getInstance_DelayedInitialization_KeyType() 121 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testCipher_getInstance_DelayedInitialization_KeyType() 127 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testCipher_getInstance_DelayedInitialization_KeyType() [all …]
|
D | KeyAgreementTest.java | 20 import java.security.Provider; 28 private static abstract class MockProvider extends Provider { 39 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success() 55 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_DoesNotSupportKeyClass_Success() 80 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 22 import java.security.Provider; 100 Provider[] providers = Security.getProviders(); in test_Provider_getServices() 101 for (Provider provider : providers) { in test_Provider_getServices() 107 Set<Provider.Service> services = provider.getServices(); in test_Provider_getServices() 111 Set<Provider.Service> originalServices = services; in test_Provider_getServices() 112 services = new TreeSet<Provider.Service>( in test_Provider_getServices() 113 new Comparator<Provider.Service>() { in test_Provider_getServices() 114 public int compare(Provider.Service a, Provider.Service b) { in test_Provider_getServices() 125 for (Provider.Service service : services) { in test_Provider_getServices() 219 Provider[] providers = Security.getProviders(); in testProviderList() [all …]
|
D | SecureRandomTest.java | 19 import java.security.Provider; 36 Provider[] providers = Security.getProviders(); in test_getInstance() 37 for (Provider provider : providers) { in test_getInstance() 38 Set<Provider.Service> services = provider.getServices(); in test_getInstance() 39 for (Provider.Service service : services) { in test_getInstance() 118 Provider openSSLProvider = null; in testGetInstanceStrong() 119 for (Provider p : Security.getProviders()) { in testGetInstanceStrong() 132 Provider weakProvider = new Provider("MockWeakSecureRandomProvider", 1.0, "For testing") { in testGetInstanceStrong()
|
D | SignatureTest.java | 30 import java.security.Provider; 64 private static abstract class MockProvider extends Provider { 74 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_SuppliedProviderNotRegistered_Success() 89 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_DoesNotSupportKeyClass_Success() 114 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException() 135 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 145 Provider mockProvider2 = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 160 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testSignature_getInstance_DelayedInitialization_KeyType() 167 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testSignature_getInstance_DelayedInitialization_KeyType() 174 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testSignature_getInstance_DelayedInitialization_KeyType() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | AlgorithmParameterGenerator.java | 118 private Provider provider; 134 (AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, in AlgorithmParameterGenerator() 187 (Provider)objs[1], in getInstance() 239 ((AlgorithmParameterGeneratorSpi)objs[0], (Provider)objs[1], in getInstance() 274 Provider provider) in getInstance() 283 ((AlgorithmParameterGeneratorSpi)objs[0], (Provider)objs[1], in getInstance() 292 public final Provider getProvider() { in getProvider()
|
D | Security.java | 66 Provider provider; 156 List<Provider> providers = Providers.getProviderList().providers(); in getProviderProperty() 160 Provider prov = providers.get(i); in getProviderProperty() 190 private static String getProviderProperty(String key, Provider provider) { in getProviderProperty() 283 public static synchronized int insertProviderAt(Provider provider, in insertProviderAt() 326 public static int addProvider(Provider provider) { in addProvider() 384 public static Provider[] getProviders() { in getProviders() 400 public static Provider getProvider(String name) { in getProvider() 464 public static Provider[] getProviders(String filter) { in getProviders() 535 public static Provider[] getProviders(Map<String,String> filter) { in getProviders() [all …]
|
D | AlgorithmParameters.java | 173 private Provider provider; 192 Provider provider, String algorithm) in AlgorithmParameters() 244 (Provider)objs[1], in getInstance() 299 (Provider)objs[1], in getInstance() 336 Provider provider) in getInstance() 346 (Provider)objs[1], in getInstance() 355 public final Provider getProvider() { in getProvider()
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | ProviderList.java | 31 import java.security.Provider.Service; 63 private final static Provider[] P0 = new Provider[0]; 70 private static final Provider EMPTY_PROVIDER = 71 new Provider("##Empty##", 1.0d, "initialization in progress") { 91 public static ProviderList add(ProviderList providerList, Provider p) { 95 public static ProviderList insertAt(ProviderList providerList, Provider p, 128 public static ProviderList newList(Provider ... providers) { 143 private final List<Provider> userList = new AbstractList<Provider>() { 147 public Provider get(int index) { 232 Provider getProvider(int index) { [all …]
|
D | ProviderConfig.java | 74 private volatile Provider provider; 92 ProviderConfig(Provider provider) { in ProviderConfig() 166 synchronized Provider getProvider() { in getProvider() 168 Provider p = provider; in getProvider() 205 private Provider doLoadProvider() { in doLoadProvider() 206 return AccessController.doPrivileged(new PrivilegedAction<Provider>() { in doLoadProvider() 207 public Provider run() { in doLoadProvider() 246 private Provider initProvider(String className, ClassLoader cl) throws Exception { 260 if (obj instanceof Provider) { 264 return (Provider)obj;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SpiEngUtils.java | 26 import java.security.Provider; 47 public static Provider isSupport(String algorithm, String service) { in isSupport() 49 Provider[] provs = Security.getProviders(service.concat(".") in isSupport() 60 public class MyProvider extends Provider {
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 23 import java.security.Provider; 87 private static void print(Provider p, String type, String algorithm) { in print() 93 for (Provider p : Security.getProviders()) { in main() 94 Set<Provider.Service> services = new TreeSet<Provider.Service>( in main() 95 new Comparator<Provider.Service>() { in main() 96 public int compare(Provider.Service a, Provider.Service b) { in main() 105 for (Provider.Service s : services) { in main()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | ExemptionMechanismTest.java | 27 import java.security.Provider; 60 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testExemptionMechanism() 120 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testIsCryptoAllowed() 152 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testGenExemptionBlob() 194 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob() 232 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob$B() 272 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob$BI() 318 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_getInstanceLjava_lang_String() 337 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_getInstanceLjava_lang_StringLjava_security_Provider() 361 em.getInstance("WrongAlgName", (Provider)null); in test_getInstanceLjava_lang_StringLjava_security_Provider() [all …]
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertPathValidator.java | 33 import java.security.Provider; 123 private final Provider provider; 135 Provider provider, String algorithm) in CertPathValidator() 252 Provider provider) throws NoSuchAlgorithmException { in getInstance() 265 public final Provider getProvider() { in getProvider()
|
D | CertPathBuilder.java | 33 import java.security.Provider; 124 private final Provider provider; 135 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, in CertPathBuilder() 252 Provider provider) throws NoSuchAlgorithmException { in getInstance() 264 public final Provider getProvider() { in getProvider()
|