/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecurityTest.java | 27 import java.security.Security; 44 Security.insertProviderAt(null, 1); in test_insertProviderAtLjava_security_ProviderLI() 50 int initNum = Security.getProviders().length; // initial number of in test_insertProviderAtLjava_security_ProviderLI() 52 Provider initialSecondProviderName = Security.getProviders()[1]; in test_insertProviderAtLjava_security_ProviderLI() 57 assertEquals(initNum + 1, Security.insertProviderAt(p, -1)); in test_insertProviderAtLjava_security_ProviderLI() 58 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI() 61 assertEquals(-1, Security.insertProviderAt(p, 1)); in test_insertProviderAtLjava_security_ProviderLI() 63 Security.removeProvider(p.getName()); in test_insertProviderAtLjava_security_ProviderLI() 66 assertEquals(initNum + 1, Security.insertProviderAt(p, in test_insertProviderAtLjava_security_ProviderLI() 68 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI() [all …]
|
D | Security2Test.java | 22 import java.security.Security; 40 Provider[] allProviders = Security.getProviders(); in test_getProvidersLjava_lang_String() 77 Provider[] provTest = Security.getProviders(filterString); in test_getProvidersLjava_lang_String() 89 Security.getProviders("Signature.SHA1withDSA :512"); in test_getProvidersLjava_lang_String() 116 Provider[] allProviders = Security.getProviders(); in getProvidersCount() 185 Provider[] provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() 198 provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() 211 provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() 223 provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() 234 provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map() [all …]
|
D | Provider2Test.java | 23 import java.security.Security; 140 Security.addProvider(mockProvider); in test_getAlias() 149 Security.removeProvider("MOCKNAME"); in test_getAlias()
|
D | KeyStoreTest.java | 29 import java.security.Security; 89 Security.insertProviderAt(mProv, 2); in setUp() 101 Security.removeProvider(mProv.getName()); in tearDown() 188 String defKSType = Security.getProperty(propName); in testKeyStore01() 198 Security.setProperty(propName, defaultType); in testKeyStore01() 200 resType = Security.getProperty(propName); in testKeyStore01()
|
D | IdentityScopeTest.java | 28 import java.security.Security; 89 String name = Security.getProperty("system.scope"); in testGetSystemScope()
|
D | KeyFactory2Test.java | 32 import java.security.Security; 94 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_constructor() 186 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() 208 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_getInstanceLjava_lang_StringLjava_security_Provider() 306 Provider[] providers = Security.getProviders(); in setUp() 325 Provider provider = Security.getProvider(providerName); in getKeyFactoryAlgorithms()
|
D | Signature2Test.java | 33 import java.security.Security; 117 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 156 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() 168 Provider[] pp = Security.getProviders(); in test_getInstanceLjava_lang_StringLjava_lang_String() 281 Security.addProvider(myProvider); in test_initVerifyLjava_security_Certificate() 284 Provider[] pp = Security.getProviders(); in test_initVerifyLjava_security_Certificate() 295 Security.removeProvider(myProvider.getName()); in test_initVerifyLjava_security_Certificate()
|
D | KeyPairGenerator4Test.java | 23 import java.security.Security; 62 Provider[] providers = Security.getProviders("KeyPairGenerator.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 25 import java.security.Security; 70 Provider[] providers = Security.getProviders(); in test_Provider_getServices() 168 Provider[] providers = Security.getProviders(); in test_Provider_Properties() 261 Provider[] providers = Security.getProviders(); in test_Provider_getServices_supportsParameter() 311 Security.addProvider(provider); in testProviderService_supportsParameter_UnknownService_Success() 316 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_UnknownService_Success() 331 Security.addProvider(provider); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success() 336 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success() 356 Security.addProvider(provider); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure() 365 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure() [all …]
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | MessageDigestTestMD2.java | 22 import java.security.Security; 49 Security.addProvider(provider); in testMessageDigest2() 56 Security.removeProvider(provider.getName()); in testMessageDigest2()
|
D | SignatureTestMD2withRSA.java | 25 import java.security.Security; 98 Security.addProvider(provider); in testSignature2() 109 Security.removeProvider(provider.getName()); in testSignature2()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 29 import java.security.Security; 152 Security.insertProviderAt(fakeProvider, 1); in test_SSLSocketFactory_getDefault_cacheInvalidate() 163 Security.removeProvider(fakeProvider.getName()); in test_SSLSocketFactory_getDefault_cacheInvalidate() 174 Security.setProperty(SSL_PROPERTY, FakeSSLSocketFactory.class.getName()); in test_SSLSocketFactory_getDefault_cacheInvalidate() 179 … assertFalse(sf2.getClass().getName() + " should not be " + Security.getProperty(SSL_PROPERTY), in test_SSLSocketFactory_getDefault_cacheInvalidate() 186 Security.setProperty(SSL_PROPERTY, origProvider); in test_SSLSocketFactory_getDefault_cacheInvalidate() 191 String origProvider = Security.getProperty(SSL_PROPERTY); in resetSslProvider() 194 Field field_secprops = Security.class.getDeclaredField("secprops"); in resetSslProvider() 208 assertNull(Security.getProperty(SSL_PROPERTY)); in resetSslProvider()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SpiEngUtils.java | 25 import java.security.Security; 49 Provider[] provs = Security.getProviders(service.concat(".") in isSupport()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | CertPathValidator.java | 24 import java.security.Security; 134 Provider impProvider = Security.getProvider(provider); in getInstance() 203 String defaultType = Security.getProperty(PROPERTY_NAME); in getDefaultType()
|
D | CertPathBuilder.java | 24 import java.security.Security; 132 Provider impProvider = Security.getProvider(provider); in getInstance() 194 String defaultType = Security.getProperty(PROPERTY_NAME); in getDefaultType()
|
D | CertStore.java | 24 import java.security.Security; 145 Provider impProvider = Security.getProvider(provider); in getInstance() 271 String defaultType = Security.getProperty(PROPERTY_NAME); in getDefaultType()
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | TrustManagerFactory.java | 26 import java.security.Security; 54 String algorithm = Security.getProperty(PROPERTY_NAME); in getDefaultAlgorithm() 104 Provider impProvider = Security.getProvider(provider); in getInstance()
|
D | KeyManagerFactory.java | 26 import java.security.Security; 55 String algorithm = Security.getProperty(PROPERTY_NAME); in getDefaultAlgorithm() 105 Provider impProvider = Security.getProvider(provider); in getInstance()
|
D | SSLServerSocketFactory.java | 21 import java.security.Security; 56 defaultName = Security.getProperty("ssl.ServerSocketFactory.provider"); in getDefault()
|
D | SSLSocketFactory.java | 23 import java.security.Security; 51 String newName = Security.getProperty("ssl.SocketFactory.provider"); in getDefault()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLContextSpiTest.java | 31 import java.security.Security; 157 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_engineInit() 163 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_engineInit() 196 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_commonTest_02() 202 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_commonTest_02()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertPathBuilder2Test.java | 33 import java.security.Security; 68 Security.insertProviderAt(mProv, 1); in setUp() 76 Security.removeProvider(mProv.getName()); in tearDown() 86 Security.setProperty(propName, invalidValues[i]); in checkResult() 92 Security.setProperty(propName, dt); in checkResult()
|
D | CertPathValidator2Test.java | 35 import java.security.Security; 69 Security.insertProviderAt(mProv, 1); in setUp() 77 Security.removeProvider(mProv.getName()); in tearDown() 85 Security.setProperty(propName, invalidValues[i]); in checkResult() 89 Security.setProperty(propName, dt); in checkResult()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | SecretKeyFactory.java | 24 import java.security.Security; 137 Provider impProvider = Security.getProvider(provider); in getInstance()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/ |
D | SubjectPublicKeyInfoTest.java | 35 import java.security.Security; 85 Security.addProvider(new MyTestProvider()); in test_getPublicKey_NameKnownButOnlyOIDFactoryRegistered() 98 Security.removeProvider(MyTestProvider.NAME); in test_getPublicKey_NameKnownButOnlyOIDFactoryRegistered()
|