Home
last modified time | relevance | path

Searched refs:validValues (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/tests/security/cert/
DCertPathBuilder2Test.java49 private static final String[] validValues; field in CertPathBuilder2Test
52 validValues = new String[4];
53 validValues[0] = defaultAlg;
54 validValues[1] = defaultAlg.toLowerCase();
55 validValues[2] = "CeRtPb";
56 validValues[3] = "cERTpb";
129 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
130 cerPB = CertPathBuilder.getInstance(validValues[i]); in testGetInstance01()
131 assertEquals("Incorrect type", cerPB.getAlgorithm(), validValues[i]); in testGetInstance01()
165 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DCertPathValidator2Test.java52 private static final String[] validValues; field in CertPathValidator2Test
55 validValues = new String[4];
56 validValues[0] = defaultAlg;
57 validValues[1] = defaultAlg.toLowerCase();
58 validValues[2] = "CeRtPb";
59 validValues[3] = "cERTpb";
125 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
126 cerPV = CertPathValidator.getInstance(validValues[i]); in testGetInstance01()
127 assertEquals("Incorrect type", cerPV.getAlgorithm(), validValues[i]); in testGetInstance01()
159 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DCertificateFactory2Test.java55 private static final String[] validValues; field in CertificateFactory2Test
58 validValues = new String[4];
59 validValues[0] = defaultAlg;
60 validValues[1] = defaultAlg.toLowerCase();
61 validValues[2] = "CeRtFaC";
62 validValues[3] = "cerTFac";
197 for (int i = 0; i < validValues.length; i++) { in GetInstance01()
198 cerF = CertificateFactory.getInstance(validValues[i]); in GetInstance01()
199 assertEquals("Incorrect type", cerF.getType(), validValues[i]); in GetInstance01()
233 for (int i = 0; i < validValues.length; i++) { in GetInstance02()
[all …]
DCertPathBuilder1Test.java56 public static final String [] validValues = { field in CertPathBuilder1Test
138 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder03()
139 CertPathBuilder cpb = CertPathBuilder.getInstance(validValues[i]); in testCertPathBuilder03()
140 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]); in testCertPathBuilder03()
156 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder04()
158 CertPathBuilder.getInstance(validValues[i], provider); in testCertPathBuilder04()
163 CertPathBuilder.getInstance(validValues[i], ""); in testCertPathBuilder04()
181 for (int i = 0; i < validValues.length; i++ ) { in testCertPathBuilder05()
184 CertPathBuilder.getInstance(validValues[i], invalidValues[j]); in testCertPathBuilder05()
228 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder07()
[all …]
DCertPathValidator1Test.java52 public static final String [] validValues = { field in CertPathValidator1Test
154 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator03()
155 certPV = CertPathValidator.getInstance(validValues[i]); in testCertPathValidator03()
156 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), validValues[i]); in testCertPathValidator03()
172 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator04()
174 CertPathValidator.getInstance(validValues[i], provider); in testCertPathValidator04()
179 CertPathValidator.getInstance(validValues[i], ""); in testCertPathValidator04()
195 for (int t = 0; t < validValues.length; t++) { in testCertPathValidator05()
198 CertPathValidator.getInstance(validValues[t], in testCertPathValidator05()
244 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator07()
[all …]
DCRLTest.java38 public static final String[] validValues = { "X.509", "x.509" }; field in CRLTest
50 for (int i = 0; i< validValues.length; i++) { in testConstructor()
51 CRL crl = new MyCRL(validValues[i]); in testConstructor()
52 assertEquals(validValues[i], crl.getType()); in testConstructor()
DCertificateFactory1Test.java66 public static final String[] validValues = { field in CertificateFactory1Test
112 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory01()
114 .getInstance(validValues[i]); in testCertificateFactory01()
115 assertEquals("Incorrect type: ", validValues[i], certF.getType()); in testCertificateFactory01()
153 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory03()
155 CertificateFactory.getInstance(validValues[i], provider); in testCertificateFactory03()
160 CertificateFactory.getInstance(validValues[i], ""); in testCertificateFactory03()
208 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory05()
209 certF = CertificateFactory.getInstance(validValues[i], in testCertificateFactory05()
211 assertEquals("Incorrect type", certF.getType(), validValues[i]); in testCertificateFactory05()
[all …]
DCertStore1Test.java54 public static final String [] validValues = { field in CertStore1Test
106 dValid = (CollectionSupport ? validValuesC : validValues ); in initParams()
DX509CertSelectorTest.java279 int[] validValues = { 2, 1, 0, 1, 2, 3, 10, 20 }; in test_getBasicConstraints() local
280 for (int i = 0; i < validValues.length; i++) { in test_getBasicConstraints()
281 selector.setBasicConstraints(validValues[i]); in test_getBasicConstraints()
282 assertEquals(validValues[i], selector.getBasicConstraints()); in test_getBasicConstraints()
854 int[] validValues = { -2, -1, 0, 1, 2, 3, 10, 20 }; in test_setBasicConstraintsLint() local
855 for (int i = 0; i < validValues.length; i++) { in test_setBasicConstraintsLint()
856 selector.setBasicConstraints(validValues[i]); in test_setBasicConstraintsLint()
857 assertEquals(validValues[i], selector.getBasicConstraints()); in test_setBasicConstraintsLint()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DKeyManagerFactory2Test.java49 private static final String[] validValues; field in KeyManagerFactory2Test
52 validValues = new String[4];
53 validValues[0] = defaultAlg;
54 validValues[1] = defaultAlg.toLowerCase();
55 validValues[2] = "Keymf";
56 validValues[3] = "kEYMF";
143 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_String()
144 keyMF = KeyManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
146 validValues[i]); in test_getInstanceLjava_lang_String()
181 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DTrustManagerFactory2Test.java46 private static final String[] validValues; field in TrustManagerFactory2Test
49 validValues = new String[4];
50 validValues[0] = defaultAlg;
51 validValues[1] = defaultAlg.toLowerCase();
52 validValues[2] = "Tmf";
53 validValues[3] = "tMF";
133 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_String()
134 tmf = TrustManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
138 validValues[i]); in test_getInstanceLjava_lang_String()
171 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DSSLContext2Test.java48 private static final String[] validValues; field in SSLContext2Test
50 validValues = new String[4];
51 validValues[0] = defaultProtocol;
52 validValues[1] = defaultProtocol.toLowerCase();
53 validValues[2] = "s+S+L";
54 validValues[3] = "S+s+L";
168 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_String()
169 sslC = SSLContext.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
171 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_String()
206 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DKeyManagerFactory1Test.java62 private static String[] validValues = new String[3]; field in KeyManagerFactory1Test
72 validValues[0] = defaultAlgorithm;
73 validValues[1] = defaultAlgorithm.toUpperCase();
74 validValues[2] = defaultAlgorithm.toLowerCase();
157 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_String01()
158 keyMF = KeyManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String01()
161 validValues[i]); in test_getInstanceLjava_lang_String01()
200 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String01()
202 KeyManagerFactory.getInstance(validValues[i], provider); in test_getInstanceLjava_lang_StringLjava_lang_String01()
207 KeyManagerFactory.getInstance(validValues[i], ""); in test_getInstanceLjava_lang_StringLjava_lang_String01()
[all …]
DSSLContext1Test.java59 private static String[] validValues = new String[3]; field in SSLContext1Test
66 validValues[0] = defaultProtocol;
67 validValues[1] = defaultProtocol.toUpperCase();
68 validValues[2] = defaultProtocol.toLowerCase();
201 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_String01()
202 sslContext = SSLContext.getInstance(validValues[i]); in test_getInstanceLjava_lang_String01()
204 assertEquals("Invalid protocol", validValues[i], in test_getInstanceLjava_lang_String01()
243 for (int i = 0; i < validValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String01()
294 for (int j = 0; j < validValues.length; j++) { in test_getInstanceLjava_lang_StringLjava_lang_String03()
296 SSLContext.getInstance(validValues[j], invalidValues[i]); in test_getInstanceLjava_lang_StringLjava_lang_String03()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator2Test.java51 private static final String[] validValues; field in AlgorithmParameterGenerator2Test
54 validValues = new String[4];
55 validValues[0] = defaultAlg;
56 validValues[1] = defaultAlg.toLowerCase();
57 validValues[2] = "apG";
58 validValues[3] = "ApG";
134 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
135 apG = AlgorithmParameterGenerator.getInstance(validValues[i]); in testGetInstance01()
137 validValues[i]); in testGetInstance01()
172 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DKeyPairGenerator2Test.java57 private static final String[] validValues; field in KeyPairGenerator2Test
62 validValues = new String[4];
63 validValues[0] = defaultAlg;
64 validValues[1] = defaultAlg.toLowerCase();
65 validValues[2] = "kpGEN";
66 validValues[3] = "kPGEn";
201 for (int i = 0; i < validValues.length; i++) { in GetInstance01()
202 String alg = validValues[i].concat(post); in GetInstance01()
240 for (int i = 0; i < validValues.length; i++) { in GetInstance02()
241 String alg = validValues[i].concat(post); in GetInstance02()
[all …]
DKeyStoreBuilderTest.java58 public static String[] validValues = KeyStoreTestSupport.validValues; field in KeyStoreBuilderTest
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java66 public static final String[] validValues = new String[2]; field in SecretKeyFactoryTest
77 validValues[0] = defaultAlgorithm.toUpperCase();
78 validValues[1] = defaultAlgorithm.toLowerCase();
86 validValues[0] = defaultAlgorithm.toUpperCase();
87 validValues[2] = defaultAlgorithm.toLowerCase();
176 for (int i = 0; i < validValues.length; i++) { in testSecretKeyFactory03()
178 .getInstance(validValues[i]); in testSecretKeyFactory03()
180 validValues[i]); in testSecretKeyFactory03()
228 for (int i = 0; i < validValues.length; i++) { in testSecretKeyFactory05()
230 SecretKeyFactory.getInstance(validValues[i], prov); in testSecretKeyFactory05()
[all …]
DKeyGeneratorTest.java75 private static String[] validValues = new String[3]; field in KeyGeneratorTest
86 validValues[0] = defaultAlgorithm;
87 validValues[1] = defaultAlgorithm.toUpperCase();
88 validValues[2] = defaultAlgorithm.toLowerCase();
183 for (int i = 0; i < validValues.length; i++) { in testGetInstanceString02()
184 keyG = KeyGenerator.getInstance(validValues[i]); in testGetInstanceString02()
185 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceString02()
230 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString02()
232 KeyGenerator.getInstance(validValues[i], provider); in testGetInstanceStringString02()
237 KeyGenerator.getInstance(validValues[i], ""); in testGetInstanceStringString02()
[all …]
DKeyAgreementTest.java72 private static String[] validValues = { "DH", "dH", field in KeyAgreementTest
146 for (int i = 0; i < validValues.length; i++) { in testGetInstanceString02()
147 keyA = KeyAgreement.getInstance(validValues[i]); in testGetInstanceString02()
149 validValues[i]); in testGetInstanceString02()
194 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString02()
196 KeyAgreement.getInstance(validValues[i], provider); in testGetInstanceStringString02()
201 KeyAgreement.getInstance(validValues[i], ""); in testGetInstanceStringString02()
207 KeyAgreement.getInstance(validValues[i], invalidValues[j]); in testGetInstanceStringString02()
209 .concat(validValues[i]).concat(" provider: ") in testGetInstanceStringString02()
229 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString03()
[all …]
DMacTest.java71 private static String[] validValues = new String[3]; field in MacTest
85 validValues[0] = defaultAlgorithm;
86 validValues[1] = defaultAlgorithm.toUpperCase();
87 validValues[2] = defaultAlgorithm.toLowerCase();
141 for (int i = 0; i < validValues.length; i++) { in testMac02()
142 mac = Mac.getInstance(validValues[i]); in testMac02()
143 assertEquals("Incorrect algorithm", mac.getAlgorithm(), validValues[i]); in testMac02()
158 for (int i = 0; i < validValues.length; i++) { in testMac03()
160 Mac.getInstance(validValues[i], provider); in testMac03()
165 Mac.getInstance(validValues[i], ""); in testMac03()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DKeyStoreTestSupport.java43 public static String[] validValues = { "bks", "BKS", "bKS", "Bks", "bKs", field in KeyStoreTestSupport