Home
last modified time | relevance | path

Searched refs:defaultProvider (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java56 private static Provider defaultProvider = null; field in SSLContext1Test
61 defaultProvider = SpiEngUtils.isSupport(defaultProtocol, srvSSLContext);
62 DEFSupported = (defaultProvider != null);
64 defaultProviderName = (DEFSupported ? defaultProvider.getName()
82 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider); in createSSLCon()
104 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
108 assertEquals("Incorrect provider", defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
146 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngine()
161 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngineLjava_lang_StringI()
324 defaultProvider, sslContext.getProvider()); in test_getInstanceLjava_lang_StringLjava_lang_String04()
[all …]
DKeyManagerFactory1Test.java54 private static Provider defaultProvider = null; field in KeyManagerFactory1Test
67 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm,
69 DEFSupported = (defaultProvider != null);
70 defaultProviderName = (DEFSupported ? defaultProvider.getName()
87 defaultProvider); in createKMFac()
114 KeyManagerFactory.getInstance(defaultAlgorithm, defaultProvider) in test_getAlgorithm()
326 KeyManagerFactory.getInstance(null, defaultProvider); in test_getInstanceLjava_lang_StringLjava_security_Provider02()
334 .getInstance(invalidValues[i], defaultProvider); in test_getInstanceLjava_lang_StringLjava_security_Provider02()
356 .getInstance(validValues[i], defaultProvider); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
359 assertEquals(kMF.getProvider(), defaultProvider); in test_getInstanceLjava_lang_StringLjava_security_Provider03() local
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertPathValidator1Test.java59 private static Provider defaultProvider; field in CertPathValidator1Test
65 defaultProvider = SpiEngUtils.isSupport(defaultType,
67 PKIXSupport = (defaultProvider != null);
68 defaultProviderName = (PKIXSupport ? defaultProvider.getName() : null);
85 defaultProvider); in createCPVs()
287 CertPathValidator.getInstance(null, defaultProvider); in testCertPathValidator09()
294 CertPathValidator.getInstance(invalidValues[i], defaultProvider); in testCertPathValidator09()
313 defaultProvider); in testCertPathValidator10()
317 defaultProvider); in testCertPathValidator10()
364 defaultProvider, defaultType); in testCertPathValidator12()
[all …]
DCertPathBuilder1Test.java63 private static Provider defaultProvider; field in CertPathBuilder1Test
71 defaultProvider = SpiEngUtils.isSupport(defaultType,
73 PKIXSupport = (defaultProvider != null);
74 defaultProviderName = (PKIXSupport ? defaultProvider.getName() : null);
88 defaultProvider); in createCPBs()
268 CertPathBuilder.getInstance(null, defaultProvider); in testCertPathBuilder09()
274 CertPathBuilder.getInstance(invalidValues[i], defaultProvider); in testCertPathBuilder09()
292 certPB = CertPathBuilder.getInstance(validValues[i], defaultProvider); in testCertPathBuilder10()
294 assertEquals("Incorrect provider name", certPB.getProvider(), defaultProvider); in testCertPathBuilder10()
351 defaultProvider, defaultType); in testCertPathBuilder12()
[all …]
DCertPathValidator3Test.java52 private static Provider defaultProvider; field in CertPathValidator3Test
58 defaultProvider = SpiEngUtils.isSupport(defaultType,
60 PKIXSupport = (defaultProvider != null);
61 defaultProviderName = (PKIXSupport ? defaultProvider.getName() : null);
76 defaultProvider); in createCPVs()
DCertificateFactory1Test.java60 private static Provider defaultProvider = null; field in CertificateFactory1Test
74 defaultProvider = SpiEngUtils.isSupport(defaultType,
76 X509Support = (defaultProvider != null);
77 defaultProviderName = (X509Support ? defaultProvider.getName() : null);
91 defaultProvider); in initCertFs()
250 CertificateFactory.getInstance(null, defaultProvider); in testCertificateFactory07()
258 defaultProvider); in testCertificateFactory07()
261 defaultProvider.getName()).concat(")")); in testCertificateFactory07()
281 defaultProvider); in testCertificateFactory08()
283 defaultProvider); in testCertificateFactory08()
[all …]
DCertificateFactory3Test.java49 private static Provider defaultProvider = null; field in CertificateFactory3Test
60 defaultProvider = SpiEngUtils.isSupport(defaultType,
62 X509Support = defaultProvider != null;
63 defaultProviderName = X509Support ? defaultProvider.getName() : null;
78 .getInstance(defaultType, defaultProvider); in initCertFs()
DCertStore1Test.java64 private static Provider defaultProvider; field in CertStore1Test
72 defaultProvider = SpiEngUtils.isSupport(defaultType,
74 LDAPSupport = (defaultProvider != null);
75 defaultProviderName = (LDAPSupport ? defaultProvider.getName() : null);
104 dProv = (CollectionSupport ? defaultProviderCol : defaultProvider ); in initParams()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java62 private static Provider defaultProvider = null; field in SecretKeyFactoryTest
72 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm1,
74 DEFSupported = (defaultProvider != null);
79 defaultProviderName = defaultProvider.getName();
81 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm2,
83 DEFSupported = (defaultProvider != null);
88 defaultProviderName = defaultProvider.getName();
92 defaultProvider = null;
106 defaultProvider); in createSKFac()
127 SecretKeyFactory secKF = new mySecretKeyFactory(spi, defaultProvider, in testSecretKeyFactory01()
[all …]
DKeyGeneratorTest.java67 private static Provider defaultProvider = null; field in KeyGeneratorTest
79 defaultProvider = SpiEngUtils.isSupport(validAlgorithmsKeyGenerator[i],
81 DEFSupported = (defaultProvider != null);
85 defaultProviderName = defaultProvider.getName();
101 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider); in createKGs()
118 KeyGenerator keyG = new myKeyGenerator(spi, defaultProvider, in testKeyGenerator()
122 assertEquals("Incorrect provider", keyG.getProvider(), defaultProvider); in testKeyGenerator()
284 KeyGenerator.getInstance(null, defaultProvider); in testGetInstanceStringProvider01()
291 KeyGenerator.getInstance(invalidValues[i], defaultProvider); in testGetInstanceStringProvider01()
330 keyA = KeyGenerator.getInstance(validValues[i], defaultProvider); in testGetInstanceStringProvider03()
[all …]
DKeyAgreementTest.java64 private static Provider defaultProvider = null; field in KeyAgreementTest
82 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm,
84 DEFSupported = (defaultProvider != null);
85 defaultProviderName = (DEFSupported ? defaultProvider.getName() : null);
105 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider); in createKAs()
251 KeyAgreement.getInstance(null, defaultProvider); in testGetInstanceStringProvider01()
258 KeyAgreement.getInstance(invalidValues[i], defaultProvider); in testGetInstanceStringProvider01()
297 keyA = KeyAgreement.getInstance(validValues[i], defaultProvider); in testGetInstanceStringProvider03()
301 defaultProvider); in testGetInstanceStringProvider03()
DMacTest.java63 private static Provider defaultProvider = null; field in MacTest
79 defaultProvider = SpiEngUtils.isSupport(validAlgorithmsMac[i],
81 DEFSupported = (defaultProvider != null);
84 defaultProviderName = defaultProvider.getName();
100 macList.add(Mac.getInstance(defaultAlgorithm, defaultProvider)); in createMacs()
258 Mac.getInstance(null, defaultProvider); in testMac07()
265 Mac.getInstance(invalidValues[i], defaultProvider); in testMac07()
285 mac = Mac.getInstance(validValues[i], defaultProvider); in testMac08()
287 assertEquals("Incorrect provider", mac.getProvider(), defaultProvider); in testMac08()
767 Mac mac = new myMac(spi, defaultProvider, defaultAlgorithm); in testMacConstructor()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreBuilderTest.java63 private static Provider defaultProvider = null; field in KeyStoreBuilderTest
66 defaultProvider = Security.getProviders(
219 KeyStore.Builder.newInstance(null, defaultProvider, fl, protPass); in testNewInstanceStringProviderFileProtectionParameter()
224 KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, null, in testNewInstanceStringProviderFileProtectionParameter() local
231 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, null); in testNewInstanceStringProviderFileProtectionParameter() local
237 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter() local
242 KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, in testNewInstanceStringProviderFileProtectionParameter() local
250 KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, fl in testNewInstanceStringProviderFileProtectionParameter() local
255 ksB = KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, fl, in testNewInstanceStringProviderFileProtectionParameter()
275 defaultProvider, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter() local
[all …]
DKeyStoreTest.java68 public static Provider defaultProvider = null; field in KeyStoreTest
79 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); in createKS()
90 defaultProvider = SpiEngUtils.isSupport(defaultType, in setUp()
92 KSSupported = (defaultProvider != null); in setUp()
93 defaultProviderName = (KSSupported ? defaultProvider.getName() : null); in setUp()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DKeyStoreTestSupport.java52 public static Provider defaultProvider = null; field in KeyStoreTestSupport
55 defaultProvider = SpiEngUtils.isSupport(defaultType, srvKeyStore);
56 JKSSupported = (defaultProvider != null);
57 defaultProviderName = (JKSSupported ? defaultProvider.getName() : null);