// oid for CRL Distribution Points = 2.5.29.31 byte[] CDPExtBytes = cert.getExtensionValue("2.5.29.31");
DerValue val = new DerValue(CDPExtBytes); byte[] data = val.getOctetString();
CRLDistributionPointsExtension CDPExt
= new CRLDistributionPointsExtension(false, data);
}
publicstaticvoid main(String[] args) throws Exception { /* Try to parse a CRLDistributionPointsExtension URI with a space. */ try {
CRLDistributionPointsExtensionTest(certWithSpaceInCDPStr); thrownew RuntimeException("Illegally parsed a "
+ "CRLDistributionPointsExtension uri with a space.");
} catch (IOException e) {
System.out.println("Caught the correct exception.");
}
/* Try to parse a CRLDistributionPointsExtension URI with backslashes. */ try {
CRLDistributionPointsExtensionTest(certWithBackslashesInCDPStr); thrownew RuntimeException("Illegally parsed a "
+ "CRLDistributionPointsExtension uri with a backslashes.");
} catch (IOException e) {
System.out.println("Caught the correct exception.");
}
/* Try to construct a URIName from a uri with a space. */
String uriWithSpace = "file://crl file.crl";
URIName name; try {
name = new URIName(uriWithSpace); thrownew RuntimeException("Illegally created a URIName "
+ "from a uri with a space.");
} catch (IOException e) {
System.out.println("Caught the correct exception.");
}
/* Try to construct a URIName from a uri with backslashes. */
String uriWithBackslashes = "file://\\\\CRL\\crl_file.crl"; try {
name = new URIName(uriWithBackslashes); thrownew RuntimeException("Illegally created a URIName "
+ "from a uri with backslashes.");
} catch (IOException e) {
System.out.println("Caught the correct exception.");
}
System.out.println("Tests passed.");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 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.