HomeSort by relevance Sort by last modified time
    Searched defs:validValues (Results 26 - 50 of 51) sorted by null

12 3

  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
KeyStore_Impl2Test.java 61 private static final String[] validValues;
64 validValues = new String[4];
65 validValues[0] = defaultAlg;
66 validValues[1] = defaultAlg.toLowerCase();
67 validValues[2] = "kEyStOrE";
68 validValues[3] = "KeysTORE";
318 for (int i = 0; i < validValues.length; i++) {
319 keyS = KeyStore.getInstance(validValues[i]);
320 assertEquals("Incorrect type", keyS.getType(), validValues[i]);
355 for (int i = 0; i < validValues.length; i++)
    [all...]
KSBuilder_ImplTest.java 60 public static String[] validValues = KeyStoreTestSupport.validValues;
KeyStore_Impl1Test.java 53 public static String[] validValues = KeyStoreTestSupport.validValues;
85 for (int i = 0; i < validValues.length; i++) {
86 ks = KeyStore.getInstance(validValues[i]);
87 assertEquals("Incorrect type", ks.getType(), validValues[i]);
98 for (int i = 0; i < validValues.length; i++) {
100 KeyStore.getInstance(validValues[i], provider);
102 .concat(validValues[i]).concat(" )"));
106 KeyStore.getInstance(validValues[i], "");
108 .concat(validValues[i]).concat(" )"))
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
CertStore_ImplTest.java 56 private static final String[] validValues;
59 validValues = new String[4];
60 validValues[0] = defaultAlg;
61 validValues[1] = defaultAlg.toLowerCase();
62 validValues[2] = "CeRTSTore";
63 validValues[3] = "CERTstore";
123 for (int i = 0; i < validValues.length; i++) {
125 CertStore.getInstance(validValues[i], null);
130 CertStore.getInstance(validValues[i], mp);
137 for (int i = 0; i < validValues.length; i++)
    [all...]
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
KeyManagerFactory1Test.java 59 private static String[] validValues = new String[3];
69 validValues[0] = defaultAlgorithm;
70 validValues[1] = defaultAlgorithm.toUpperCase();
71 validValues[2] = defaultAlgorithm.toLowerCase();
133 for (int i = 0; i < validValues.length; i++) {
134 keyMF = KeyManagerFactory.getInstance(validValues[i]);
138 validValues[i]);
177 for (int i = 0; i < validValues.length; i++) {
179 KeyManagerFactory.getInstance(validValues[i], provider);
184 KeyManagerFactory.getInstance(validValues[i], "")
    [all...]
KeyManagerFactory2Test.java 50 private static final String[] validValues;
53 validValues = new String[4];
54 validValues[0] = defaultAlg;
55 validValues[1] = defaultAlg.toLowerCase();
56 validValues[2] = "Keymf";
57 validValues[3] = "kEYMF";
146 for (int i = 0; i < validValues.length; i++) {
147 keyMF = KeyManagerFactory.getInstance(validValues[i]);
151 validValues[i]);
184 for (int i = 0; i < validValues.length; i++)
    [all...]
SSLContext2Test.java 51 private static final String[] validValues;
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++) {
173 sslC = SSLContext.getInstance(validValues[i]);
177 validValues[i]);
211 for (int i = 0; i < validValues.length; i++)
    [all...]
TrustManagerFactory1Test.java 58 private static String[] validValues = new String[3];
68 validValues[0] = defaultAlgorithm;
69 validValues[1] = defaultAlgorithm.toUpperCase();
70 validValues[2] = defaultAlgorithm.toLowerCase();
130 for (int i = 0; i < validValues.length; i++) {
131 trustMF = TrustManagerFactory.getInstance(validValues[i]);
135 validValues[i]);
175 for (int i = 0; i < validValues.length; i++) {
177 TrustManagerFactory.getInstance(validValues[i], provider);
182 TrustManagerFactory.getInstance(validValues[i], "")
    [all...]
SSLContext1Test.java 72 private static String[] validValues = new String[3];
79 validValues[0] = defaultProtocol;
80 validValues[1] = defaultProtocol.toUpperCase();
81 validValues[2] = defaultProtocol.toLowerCase();
123 for (int i = 0; i < validValues.length; i++) {
124 sslContext = SSLContext.getInstance(validValues[i]);
128 validValues[i]);
166 for (int i = 0; i < validValues.length; i++) {
217 for (int j = 0; j < validValues.length; j++) {
219 SSLContext.getInstance(validValues[j], invalidValues[i])
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
SecretKeyFactoryTest.java 66 public static final String[] validValues = new String[2];
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++) {
178 .getInstance(validValues[i]);
180 validValues[i]);
228 for (int i = 0; i < validValues.length; i++) {
230 SecretKeyFactory.getInstance(validValues[i], prov)
    [all...]
KeyAgreementTest.java 71 private static String[] validValues = { "DH", "dH",
145 for (int i = 0; i < validValues.length; i++) {
146 keyA = KeyAgreement.getInstance(validValues[i]);
148 validValues[i]);
193 for (int i = 0; i < validValues.length; i++) {
195 KeyAgreement.getInstance(validValues[i], provider);
200 KeyAgreement.getInstance(validValues[i], "");
206 KeyAgreement.getInstance(validValues[i], invalidValues[j]);
208 .concat(validValues[i]).concat(" provider: ")
228 for (int i = 0; i < validValues.length; i++)
    [all...]
KeyGeneratorTest.java 75 private static String[] validValues = new String[3];
86 validValues[0] = defaultAlgorithm;
87 validValues[1] = defaultAlgorithm.toUpperCase();
88 validValues[2] = defaultAlgorithm.toLowerCase();
183 for (int i = 0; i < validValues.length; i++) {
184 keyG = KeyGenerator.getInstance(validValues[i]);
185 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]);
230 for (int i = 0; i < validValues.length; i++) {
232 KeyGenerator.getInstance(validValues[i], provider);
237 KeyGenerator.getInstance(validValues[i], "")
    [all...]
MacTest.java 70 private static String[] validValues = new String[3];
84 validValues[0] = defaultAlgorithm;
85 validValues[1] = defaultAlgorithm.toUpperCase();
86 validValues[2] = defaultAlgorithm.toLowerCase();
141 for (int i = 0; i < validValues.length; i++) {
142 mac = Mac.getInstance(validValues[i]);
143 assertEquals("Incorrect algorithm", mac.getAlgorithm(), validValues[i]);
158 for (int i = 0; i < validValues.length; i++) {
160 Mac.getInstance(validValues[i], provider);
165 Mac.getInstance(validValues[i], "")
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairGenerator2Test.java 57 private static final String[] validValues;
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++) {
202 String alg = validValues[i].concat(post);
240 for (int i = 0; i < validValues.length; i++) {
241 String alg = validValues[i].concat(post)
    [all...]
KeyStoreBuilderTest.java 58 public static String[] validValues = KeyStoreTestSupport.validValues;
  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
SSLContext2Test.java 48 private static final String[] validValues;
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++) {
169 sslC = SSLContext.getInstance(validValues[i]);
171 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]);
206 for (int i = 0; i < validValues.length; i++)
    [all...]
KeyManagerFactory1Test.java 62 private static String[] validValues = new String[3];
72 validValues[0] = defaultAlgorithm;
73 validValues[1] = defaultAlgorithm.toUpperCase();
74 validValues[2] = defaultAlgorithm.toLowerCase();
157 for (int i = 0; i < validValues.length; i++) {
158 keyMF = KeyManagerFactory.getInstance(validValues[i]);
161 validValues[i]);
200 for (int i = 0; i < validValues.length; i++) {
202 KeyManagerFactory.getInstance(validValues[i], provider);
207 KeyManagerFactory.getInstance(validValues[i], "")
    [all...]
SSLContext1Test.java 59 private static String[] validValues = new String[3];
66 validValues[0] = defaultProtocol;
67 validValues[1] = defaultProtocol.toUpperCase();
68 validValues[2] = defaultProtocol.toLowerCase();
201 for (int i = 0; i < validValues.length; i++) {
202 sslContext = SSLContext.getInstance(validValues[i]);
204 assertEquals("Invalid protocol", validValues[i],
243 for (int i = 0; i < validValues.length; i++) {
294 for (int j = 0; j < validValues.length; j++) {
296 SSLContext.getInstance(validValues[j], invalidValues[i])
    [all...]
  /libcore/luni/src/test/java/tests/security/cert/
CertPathBuilder1Test.java 56 public static final String [] validValues = {
138 for (int i = 0; i < validValues.length; i++) {
139 CertPathBuilder cpb = CertPathBuilder.getInstance(validValues[i]);
140 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]);
156 for (int i = 0; i < validValues.length; i++) {
158 CertPathBuilder.getInstance(validValues[i], provider);
163 CertPathBuilder.getInstance(validValues[i], "");
181 for (int i = 0; i < validValues.length; i++ ) {
184 CertPathBuilder.getInstance(validValues[i], invalidValues[j]);
228 for (int i = 0; i < validValues.length; i++)
    [all...]
CertPathValidator1Test.java 52 public static final String [] validValues = {
154 for (int i = 0; i < validValues.length; i++) {
155 certPV = CertPathValidator.getInstance(validValues[i]);
156 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), validValues[i]);
172 for (int i = 0; i < validValues.length; i++) {
174 CertPathValidator.getInstance(validValues[i], provider);
179 CertPathValidator.getInstance(validValues[i], "");
195 for (int t = 0; t < validValues.length; t++) {
198 CertPathValidator.getInstance(validValues[t],
244 for (int i = 0; i < validValues.length; i++)
    [all...]
CertStore1Test.java 54 public static final String [] validValues = {
106 dValid = (CollectionSupport ? validValuesC : validValues );
CertificateFactory2Test.java 55 private static final String[] validValues;
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++) {
198 cerF = CertificateFactory.getInstance(validValues[i]);
199 assertEquals("Incorrect type", cerF.getType(), validValues[i]);
233 for (int i = 0; i < validValues.length; i++)
    [all...]
CertificateFactory1Test.java 66 public static final String[] validValues = {
112 for (int i = 0; i < validValues.length; i++) {
114 .getInstance(validValues[i]);
115 assertEquals("Incorrect type: ", validValues[i], certF.getType());
153 for (int i = 0; i < validValues.length; i++) {
155 CertificateFactory.getInstance(validValues[i], provider);
160 CertificateFactory.getInstance(validValues[i], "");
208 for (int i = 0; i < validValues.length; i++) {
209 certF = CertificateFactory.getInstance(validValues[i],
211 assertEquals("Incorrect type", certF.getType(), validValues[i])
    [all...]
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
MacTest.java 67 private static String[] validValues = new String[3];
81 validValues[0] = defaultAlgorithm;
82 validValues[1] = defaultAlgorithm.toUpperCase();
83 validValues[2] = defaultAlgorithm.toLowerCase();
138 for (int i = 0; i < validValues.length; i++) {
139 mac = Mac.getInstance(validValues[i]);
140 assertEquals("Incorrect algorithm", mac.getAlgorithm(), validValues[i]);
155 for (int i = 0; i < validValues.length; i++) {
157 Mac.getInstance(validValues[i], provider);
162 Mac.getInstance(validValues[i], "")
    [all...]
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
CertificateFactory1Test.java 76 public static final String[] validValues = {
122 for (int i = 0; i < validValues.length; i++) {
124 .getInstance(validValues[i]);
125 assertEquals("Incorrect type: ", validValues[i], certF.getType());
163 for (int i = 0; i < validValues.length; i++) {
165 CertificateFactory.getInstance(validValues[i], provider);
170 CertificateFactory.getInstance(validValues[i], "");
219 for (int i = 0; i < validValues.length; i++) {
220 certF = CertificateFactory.getInstance(validValues[i],
222 assertEquals("Incorrect type", certF.getType(), validValues[i])
    [all...]

Completed in 1028 milliseconds

12 3