privatestaticfinal String TEST_SRC = System.getProperty("test.src"); privatestaticfinal String USER_DIR = System.getProperty("user.dir"); privatestaticfinal String CERT = TEST_SRC + "/../../pkcs12/trusted.pem"; privatestaticfinal String CONFIG = "file://" + TEST_SRC + "/domains.cfg"; privatestaticfinal Map<String, KeyStore.ProtectionParameter> PASSWORDS = new HashMap<String, KeyStore.ProtectionParameter>() {{
put("keystore", new KeyStore.PasswordProtection("test123".toCharArray()));
put("policy_keystore", new KeyStore.PasswordProtection( "Alias.password".toCharArray()));
put("pw_keystore", new KeyStore.PasswordProtection("test12".toCharArray()));
put("eckeystore1", new KeyStore.PasswordProtection("password".toCharArray()));
put("truststore", new KeyStore.PasswordProtection("changeit".toCharArray()));
put("empty", new KeyStore.PasswordProtection("passphrase".toCharArray()));
}};
privatestaticfinal Map<String, KeyStore.ProtectionParameter>
WRONG_PASSWORDS = new HashMap<String, KeyStore.ProtectionParameter>() {{
put("policy_keystore", new KeyStore.PasswordProtection( "wrong".toCharArray()));
put("pw_keystore", new KeyStore.PasswordProtection("wrong".toCharArray()));
put("eckeystore1", new KeyStore.PasswordProtection("wrong".toCharArray()));
}};
// checks if an exception was caused by specified exception class privatestaticboolean causedBy(Exception e, Class klass) {
Throwable cause = e; while ((cause = cause.getCause()) != null) { if (cause.getClass().equals(klass)) { returntrue;
}
} returnfalse;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-10-11)
¤
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.