publicstaticvoid main(String[] args) throws Exception { // reset security properties to make sure that the algorithms // and keys used in this test are not disabled.
Security.setProperty("jdk.tls.disabledAlgorithms", "");
Security.setProperty("jdk.certpath.disabledAlgorithms", "");
if (debug) {
System.setProperty("javax.net.debug", "all");
}
publicstaticvoid main0(String[] args) throws Exception {
Provider p = Security.getProvider("SunEC");
if (p == null) { thrownew NoSuchProviderException("Can't get SunEC provider");
}
System.out.println("Running tests with " + p.getName() + " provider...\n"); long start = System.currentTimeMillis();
/* *Theentrypointusedforeachtestisitsinstancemethod *calledmain(notitsstaticmethodcalledmain).
*/
System.out.println("TestECDH"); new TestECDH().main(p);
System.out.println("TestECDSA"); new TestECDSA().main(p);
System.out.println("TestCurves"); new TestCurves().main(p);
System.out.println("TestKeyFactory"); new TestKeyFactory().main(p);
System.out.println("TestECGenSpec"); new TestECGenSpec().main(p);
System.out.println("ReadPKCS12"); new ReadPKCS12().main(p);
System.out.println("ReadCertificate"); new ReadCertificates().main(p);
System.out.println("ClientJSSEServerJSSE"); new ClientJSSEServerJSSE().main(p);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.