272 KeyManagerFactory kmf = KeyManagerFactory.getInstance("NewSunX509");
273 kmf.init(ks, passphrase);
274
275 ctx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
276 ks = null;
277 } else {
278 ctx.init(null, tmf.getTrustManagers(), null);
279 }
280
281 return ctx;
282 }
283
284
285 // use any free port by default
286 volatile int serverPort = 0;
287
288 volatile Exception serverException = null;
289 volatile Exception clientException = null;
290
291 public static void main(String[] args) throws Exception {
292 if (debug)
293 System.setProperty("javax.net.debug", "all");
294
295 /*
296 * Get the customized arguments.
297 */
298 parseArguments(args);
299
300 /*
301 * Start the tests.
302 */
303 new DisabledShortDSAKeys();
304 }
305
306 Thread clientThread = null;
307 Thread serverThread = null;
308
309 /*
310 * Primary constructor, used to drive remainder of the test.
311 *
312 * Fork off the other side, then do your work.
313 */
|
272 KeyManagerFactory kmf = KeyManagerFactory.getInstance("NewSunX509");
273 kmf.init(ks, passphrase);
274
275 ctx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
276 ks = null;
277 } else {
278 ctx.init(null, tmf.getTrustManagers(), null);
279 }
280
281 return ctx;
282 }
283
284
285 // use any free port by default
286 volatile int serverPort = 0;
287
288 volatile Exception serverException = null;
289 volatile Exception clientException = null;
290
291 public static void main(String[] args) throws Exception {
292 Security.setProperty("jdk.certpath.disabledAlgorithms",
293 "DSA keySize < 1024");
294 Security.setProperty("jdk.tls.disabledAlgorithms",
295 "DSA keySize < 1024");
296
297 if (debug) {
298 System.setProperty("javax.net.debug", "all");
299 }
300
301 /*
302 * Get the customized arguments.
303 */
304 parseArguments(args);
305
306 /*
307 * Start the tests.
308 */
309 new DisabledShortDSAKeys();
310 }
311
312 Thread clientThread = null;
313 Thread serverThread = null;
314
315 /*
316 * Primary constructor, used to drive remainder of the test.
317 *
318 * Fork off the other side, then do your work.
319 */
|