Home
last modified time | relevance | path

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

12

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertStore_ImplTest.java55 private static final String[] validValues; field in CertStore_ImplTest
58 validValues = new String[4];
59 validValues[0] = defaultAlg;
60 validValues[1] = defaultAlg.toLowerCase();
61 validValues[2] = "CeRTSTore";
62 validValues[3] = "CERTstore";
122 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
124 CertStore.getInstance(validValues[i], null); in testGetInstance01()
129 CertStore.getInstance(validValues[i], mp); in testGetInstance01()
136 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertPathValidator2Test.java49 private static final String[] validValues; field in CertPathValidator2Test
52 validValues = new String[4];
53 validValues[0] = defaultAlg;
54 validValues[1] = defaultAlg.toLowerCase();
55 validValues[2] = "CeRtPb";
56 validValues[3] = "cERTpb";
135 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
136 cerPV = CertPathValidator.getInstance(validValues[i]); in testGetInstance01()
137 assertEquals("Incorrect type", cerPV.getAlgorithm(), validValues[i]); in testGetInstance01()
171 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DCertPathBuilder2Test.java48 private static final String[] validValues; field in CertPathBuilder2Test
51 validValues = new String[4];
52 validValues[0] = defaultAlg;
53 validValues[1] = defaultAlg.toLowerCase();
54 validValues[2] = "CeRtPb";
55 validValues[3] = "cERTpb";
136 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
137 cerPB = CertPathBuilder.getInstance(validValues[i]); in testGetInstance01()
138 assertEquals("Incorrect type", cerPB.getAlgorithm(), validValues[i]); in testGetInstance01()
172 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";
206 for (int i = 0; i < validValues.length; i++) { in GetInstance01()
207 cerF = CertificateFactory.getInstance(validValues[i]); in GetInstance01()
208 assertEquals("Incorrect type", cerF.getType(), validValues[i]); in GetInstance01()
241 for (int i = 0; i < validValues.length; i++) { in GetInstance02()
[all …]
DCertPathBuilder1Test.java60 public static final String[] validValues = { field in CertPathBuilder1Test
159 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder03()
160 CertPathBuilder cpb = CertPathBuilder.getInstance(validValues[i]); in testCertPathBuilder03()
161 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]); in testCertPathBuilder03()
178 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder04()
180 CertPathBuilder.getInstance(validValues[i], provider); in testCertPathBuilder04()
185 CertPathBuilder.getInstance(validValues[i], ""); in testCertPathBuilder04()
203 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder05()
206 CertPathBuilder.getInstance(validValues[i], invalidValues[j]); in testCertPathBuilder05()
251 for (int i = 0; i < validValues.length; i++) { in testCertPathBuilder07()
[all …]
DCertPathValidator1Test.java60 public static final String[] validValues = { field in CertPathValidator1Test
162 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator03()
163 certPV = CertPathValidator.getInstance(validValues[i]); in testCertPathValidator03()
164 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), validValues[i]); in testCertPathValidator03()
181 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator04()
183 CertPathValidator.getInstance(validValues[i], provider); in testCertPathValidator04()
188 CertPathValidator.getInstance(validValues[i], ""); in testCertPathValidator04()
205 for (int t = 0; t < validValues.length; t++) { in testCertPathValidator05()
208 CertPathValidator.getInstance(validValues[t], in testCertPathValidator05()
255 for (int i = 0; i < validValues.length; i++) { in testCertPathValidator07()
[all …]
DCertificateFactory1Test.java75 public static final String[] validValues = { field in CertificateFactory1Test
122 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory01()
124 .getInstance(validValues[i]); in testCertificateFactory01()
125 assertEquals("Incorrect type: ", validValues[i], certF.getType()); in testCertificateFactory01()
163 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory03()
165 CertificateFactory.getInstance(validValues[i], provider); in testCertificateFactory03()
170 CertificateFactory.getInstance(validValues[i], ""); in testCertificateFactory03()
219 for (int i = 0; i < validValues.length; i++) { in testCertificateFactory05()
220 certF = CertificateFactory.getInstance(validValues[i], in testCertificateFactory05()
222 assertEquals("Incorrect type", certF.getType(), validValues[i]); in testCertificateFactory05()
[all …]
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactory_ImplTest.java51 private static final String[] validValues; field in SecretKeyFactory_ImplTest
54 validValues = new String[4];
55 validValues[0] = defaultAlg;
56 validValues[1] = defaultAlg.toLowerCase();
57 validValues[2] = "mySECRETkey";
58 validValues[3] = "MYSECretkey";
115 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
116 skf = SecretKeyFactory.getInstance(validValues[i]); in testGetInstance01()
118 validValues[i]); in testGetInstance01()
153 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DKeyAgreement_ImplTest.java56 private static final String[] validValues; field in KeyAgreement_ImplTest
59 validValues = new String[4];
60 validValues[0] = defaultAlg;
61 validValues[1] = defaultAlg.toLowerCase();
62 validValues[2] = "myKeyagr";
63 validValues[3] = "mYkeYAGR";
144 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
145 keyAgr = KeyAgreement.getInstance(validValues[i]); in testGetInstance01()
147 validValues[i]); in testGetInstance01()
183 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DKeyGenerator_ImplTest.java54 private static final String[] validValues; field in KeyGenerator_ImplTest
57 validValues = new String[4];
58 validValues[0] = defaultAlg;
59 validValues[1] = defaultAlg.toLowerCase();
60 validValues[2] = "myKeyGen";
61 validValues[3] = "mYkeYgeN";
148 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
149 keyGen = KeyGenerator.getInstance(validValues[i]); in testGetInstance01()
151 validValues[i]); in testGetInstance01()
186 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DMac_ImplTest.java54 private static final String[] validValues; field in Mac_ImplTest
57 validValues = new String[5];
58 validValues[0] = defaultAlg;
59 validValues[1] = defaultAlg.toUpperCase();
60 validValues[2] = defaultAlg.toLowerCase();
61 validValues[3] = "myMACprov";
62 validValues[4] = "MyMaCpRoV";
147 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
148 keyAgr = Mac.getInstance(validValues[i]); in testGetInstance01()
150 validValues[i]); in testGetInstance01()
[all …]
DExemptionMechanism_ImplTest.java55 private static final String[] validValues; field in ExemptionMechanism_ImplTest
58 validValues = new String[4];
59 validValues[0] = defaultAlg;
60 validValues[1] = defaultAlg.toLowerCase();
61 validValues[2] = "eMEch";
62 validValues[3] = "emecH";
168 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
169 exMech = ExemptionMechanism.getInstance(validValues[i]); in testGetInstance01()
171 validValues[i]); in testGetInstance01()
207 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator2Test.java49 private static final String[] validValues; field in AlgorithmParameterGenerator2Test
52 validValues = new String[4];
53 validValues[0] = defaultAlg;
54 validValues[1] = defaultAlg.toLowerCase();
55 validValues[2] = "apG";
56 validValues[3] = "ApG";
137 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
138 apG = AlgorithmParameterGenerator.getInstance(validValues[i]); in testGetInstance01()
140 validValues[i]); in testGetInstance01()
175 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DKeyPairGenerator2Test.java50 private static final String[] validValues; field in KeyPairGenerator2Test
55 validValues = new String[4];
56 validValues[0] = defaultAlg;
57 validValues[1] = defaultAlg.toLowerCase();
58 validValues[2] = "kpGEN";
59 validValues[3] = "kPGEn";
197 for (int i = 0; i < validValues.length; i++) { in GetInstance01()
198 String alg = validValues[i].concat(post); in GetInstance01()
236 for (int i = 0; i < validValues.length; i++) { in GetInstance02()
237 String alg = validValues[i].concat(post); in GetInstance02()
[all …]
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
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";
135 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
136 tmf = TrustManagerFactory.getInstance(validValues[i]); in testGetInstance01()
140 validValues[i]); in testGetInstance01()
173 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
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";
146 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
147 keyMF = KeyManagerFactory.getInstance(validValues[i]); in testGetInstance01()
151 validValues[i]); in testGetInstance01()
184 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DSSLContext2Test.java50 private static final String[] validValues; field in SSLContext2Test
53 validValues = new String[4];
54 validValues[0] = defaultProtocol;
55 validValues[1] = defaultProtocol.toLowerCase();
56 validValues[2] = "s+S+L";
57 validValues[3] = "S+s+L";
172 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
173 sslC = SSLContext.getInstance(validValues[i]); in testGetInstance01()
177 validValues[i]); in testGetInstance01()
211 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]
DTrustManagerFactory1Test.java57 private static String[] validValues = new String[3]; field in TrustManagerFactory1Test
68 validValues[0] = defaultAlgorithm;
69 validValues[1] = defaultAlgorithm.toUpperCase();
70 validValues[2] = defaultAlgorithm.toLowerCase();
131 for (int i = 0; i < validValues.length; i++) { in testTrustManagerFactory01()
132 trustMF = TrustManagerFactory.getInstance(validValues[i]); in testTrustManagerFactory01()
136 validValues[i]); in testTrustManagerFactory01()
176 for (int i = 0; i < validValues.length; i++) { in testTrustManagerFactory03()
178 TrustManagerFactory.getInstance(validValues[i], provider); in testTrustManagerFactory03()
183 TrustManagerFactory.getInstance(validValues[i], ""); in testTrustManagerFactory03()
[all …]
DKeyManagerFactory1Test.java58 private static String[] validValues = new String[3]; field in KeyManagerFactory1Test
69 validValues[0] = defaultAlgorithm;
70 validValues[1] = defaultAlgorithm.toUpperCase();
71 validValues[2] = defaultAlgorithm.toLowerCase();
133 for (int i = 0; i < validValues.length; i++) { in testKeyManagerFactory01()
134 keyMF = KeyManagerFactory.getInstance(validValues[i]); in testKeyManagerFactory01()
138 validValues[i]); in testKeyManagerFactory01()
177 for (int i = 0; i < validValues.length; i++) { in testKeyManagerFactory03()
179 KeyManagerFactory.getInstance(validValues[i], provider); in testKeyManagerFactory03()
184 KeyManagerFactory.getInstance(validValues[i], ""); in testKeyManagerFactory03()
[all …]
DSSLContext1Test.java71 private static String[] validValues = new String[3]; field in SSLContext1Test
79 validValues[0] = defaultProtocol;
80 validValues[1] = defaultProtocol.toUpperCase();
81 validValues[2] = defaultProtocol.toLowerCase();
123 for (int i = 0; i < validValues.length; i++) { in testSSLContext01()
124 sslContext = SSLContext.getInstance(validValues[i]); in testSSLContext01()
128 validValues[i]); in testSSLContext01()
166 for (int i = 0; i < validValues.length; i++) { in testSSLContext03()
217 for (int j = 0; j < validValues.length; j++) { in testSSLContext05()
219 SSLContext.getInstance(validValues[j], invalidValues[i]); in testSSLContext05()
[all …]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java63 public static final String[] validValues = new String[2]; field in SecretKeyFactoryTest
74 validValues[0] = defaultAlgorithm.toUpperCase();
75 validValues[1] = defaultAlgorithm.toLowerCase();
83 validValues[0] = defaultAlgorithm.toUpperCase();
84 validValues[2] = defaultAlgorithm.toLowerCase();
173 for (int i = 0; i < validValues.length; i++) { in testSecretKeyFactory03()
175 .getInstance(validValues[i]); in testSecretKeyFactory03()
177 validValues[i]); in testSecretKeyFactory03()
225 for (int i = 0; i < validValues.length; i++) { in testSecretKeyFactory05()
227 SecretKeyFactory.getInstance(validValues[i], prov); in testSecretKeyFactory05()
[all …]
DKeyGeneratorTest.java69 private static String[] validValues = new String[3]; field in KeyGeneratorTest
80 validValues[0] = defaultAlgorithm;
81 validValues[1] = defaultAlgorithm.toUpperCase();
82 validValues[2] = defaultAlgorithm.toLowerCase();
177 for (int i = 0; i < validValues.length; i++) { in testGetInstanceString02()
178 keyG = KeyGenerator.getInstance(validValues[i]); in testGetInstanceString02()
179 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceString02()
224 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString02()
226 KeyGenerator.getInstance(validValues[i], provider); in testGetInstanceStringString02()
231 KeyGenerator.getInstance(validValues[i], ""); in testGetInstanceStringString02()
[all …]
DKeyAgreementTest.java68 private static String[] validValues = { "DH", "dH", field in KeyAgreementTest
142 for (int i = 0; i < validValues.length; i++) { in testGetInstanceString02()
143 keyA = KeyAgreement.getInstance(validValues[i]); in testGetInstanceString02()
145 validValues[i]); in testGetInstanceString02()
190 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString02()
192 KeyAgreement.getInstance(validValues[i], provider); in testGetInstanceStringString02()
197 KeyAgreement.getInstance(validValues[i], ""); in testGetInstanceStringString02()
203 KeyAgreement.getInstance(validValues[i], invalidValues[j]); in testGetInstanceStringString02()
205 .concat(validValues[i]).concat(" provider: ") in testGetInstanceStringString02()
225 for (int i = 0; i < validValues.length; i++) { in testGetInstanceStringString03()
[all …]
DMacTest.java66 private static String[] validValues = new String[3]; field in MacTest
80 validValues[0] = defaultAlgorithm;
81 validValues[1] = defaultAlgorithm.toUpperCase();
82 validValues[2] = defaultAlgorithm.toLowerCase();
137 for (int i = 0; i < validValues.length; i++) { in testMac02()
138 mac = Mac.getInstance(validValues[i]); in testMac02()
139 assertEquals("Incorrect algorithm", mac.getAlgorithm(), validValues[i]); in testMac02()
155 for (int i = 0; i < validValues.length; i++) { in testMac03()
157 Mac.getInstance(validValues[i], provider); in testMac03()
162 Mac.getInstance(validValues[i], ""); in testMac03()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DKeyStore_Impl2Test.java60 private static final String[] validValues; field in KeyStore_Impl2Test
63 validValues = new String[4];
64 validValues[0] = defaultAlg;
65 validValues[1] = defaultAlg.toLowerCase();
66 validValues[2] = "kEyStOrE";
67 validValues[3] = "KeysTORE";
316 for (int i = 0; i < validValues.length; i++) { in testGetInstance01()
317 keyS = KeyStore.getInstance(validValues[i]); in testGetInstance01()
318 assertEquals("Incorrect type", keyS.getType(), validValues[i]); in testGetInstance01()
353 for (int i = 0; i < validValues.length; i++) { in testGetInstance02()
[all …]

12