Home
last modified time | relevance | path

Searched refs:defaultAlgorithm (Results 1 – 6 of 6) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DKeyManagerFactory1Test.java50 private static String defaultAlgorithm = null; field in KeyManagerFactory1Test
64 defaultAlgorithm = Security
66 if (defaultAlgorithm != null) {
67 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm,
72 validValues[0] = defaultAlgorithm;
73 validValues[1] = defaultAlgorithm.toUpperCase();
74 validValues[2] = defaultAlgorithm.toLowerCase();
80 fail(defaultAlgorithm + " algorithm is not supported"); in createKMFac()
85 kMF[0] = KeyManagerFactory.getInstance(defaultAlgorithm); in createKMFac()
86 kMF[1] = KeyManagerFactory.getInstance(defaultAlgorithm, in createKMFac()
[all …]
DSSLContextSpiTest.java157 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_engineInit() local
159 KeyManagerFactory kmf = KeyManagerFactory.getInstance(defaultAlgorithm); in test_engineInit()
163 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_engineInit()
164 TrustManagerFactory trustMF = TrustManagerFactory.getInstance(defaultAlgorithm); in test_engineInit()
196 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_commonTest_02() local
198 KeyManagerFactory kmf = KeyManagerFactory.getInstance(defaultAlgorithm); in test_commonTest_02()
202 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_commonTest_02()
203 TrustManagerFactory trustMF = TrustManagerFactory.getInstance(defaultAlgorithm); in test_commonTest_02()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java58 public static String defaultAlgorithm = null; field in SecretKeyFactoryTest
76 defaultAlgorithm = defaultAlgorithm1;
77 validValues[0] = defaultAlgorithm.toUpperCase();
78 validValues[1] = defaultAlgorithm.toLowerCase();
85 defaultAlgorithm = defaultAlgorithm2;
86 validValues[0] = defaultAlgorithm.toUpperCase();
87 validValues[2] = defaultAlgorithm.toLowerCase();
90 defaultAlgorithm = null;
99 fail(defaultAlgorithm + " algorithm is not supported"); in createSKFac()
104 skF[0] = SecretKeyFactory.getInstance(defaultAlgorithm); in createSKFac()
[all …]
DKeyGeneratorTest.java63 private static String defaultAlgorithm = null; field in KeyGeneratorTest
83 defaultAlgorithm = validAlgorithmsKeyGenerator[i];
86 validValues[0] = defaultAlgorithm;
87 validValues[1] = defaultAlgorithm.toUpperCase();
88 validValues[2] = defaultAlgorithm.toLowerCase();
100 kg[0] = KeyGenerator.getInstance(defaultAlgorithm); in createKGs()
101 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider); in createKGs()
102 kg[2] = KeyGenerator.getInstance(defaultAlgorithm, defaultProviderName); in createKGs()
119 defaultAlgorithm); in testKeyGenerator()
121 defaultAlgorithm); in testKeyGenerator()
[all …]
DMacTest.java59 private static String defaultAlgorithm = null; field in MacTest
83 defaultAlgorithm = validAlgorithmsMac[i];
85 validValues[0] = defaultAlgorithm;
86 validValues[1] = defaultAlgorithm.toUpperCase();
87 validValues[2] = defaultAlgorithm.toLowerCase();
99 macList.add(Mac.getInstance(defaultAlgorithm)); in createMacs()
100 macList.add(Mac.getInstance(defaultAlgorithm, defaultProvider)); in createMacs()
101 macList.add(Mac.getInstance(defaultAlgorithm, defaultProviderName)); in createMacs()
102 for (Provider p : Security.getProviders("Mac." + defaultAlgorithm)) { in createMacs()
103 macList.add(Mac.getInstance(defaultAlgorithm, p)); in createMacs()
[all …]
DKeyAgreementTest.java60 private static String defaultAlgorithm = "DH"; field in KeyAgreementTest
82 defaultProvider = SpiEngUtils.isSupport(defaultAlgorithm,
90 TestKeyPair tkp = new TestKeyPair(defaultAlgorithm); in createKeys()
104 ka[0] = KeyAgreement.getInstance(defaultAlgorithm); in createKAs()
105 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider); in createKAs()
106 ka[2] = KeyAgreement.getInstance(defaultAlgorithm, in createKAs()
112 return defaultAlgorithm; in getDefAlg()