< prev index next >
src/share/classes/sun/security/x509/X509CRLImpl.java
Print this page
rev 12532 : 8171319: keytool should print out warnings when reading or generating cert/cert req using weak algorithms
Reviewed-by: coffeys
@@ -534,14 +534,19 @@
* Returns a printable string of this CRL.
*
* @return value of this CRL in a printable form.
*/
public String toString() {
+ return toStringWithAlgName("" + sigAlgId);
+ }
+
+ // Specifically created for keytool to append a (weak) label to sigAlg
+ public String toStringWithAlgName(String name) {
StringBuffer sb = new StringBuffer();
sb.append("X.509 CRL v" + (version+1) + "\n");
if (sigAlgId != null)
- sb.append("Signature Algorithm: " + sigAlgId.toString() +
+ sb.append("Signature Algorithm: " + name.toString() +
", OID=" + (sigAlgId.getOID()).toString() + "\n");
if (issuer != null)
sb.append("Issuer: " + issuer.toString() + "\n");
if (thisUpdate != null)
sb.append("\nThis Update: " + thisUpdate.toString() + "\n");
< prev index next >