@@ -402,7 +402,7 @@ public Object parseObject(PemObject obj)
402402 }
403403 catch (Exception e )
404404 {
405- throw new PEMException ("problem parsing cert : " + e .toString (), e );
405+ throw new PEMException ("problem parsing certificate : " + e .toString (), e );
406406 }
407407 }
408408 }
@@ -411,9 +411,9 @@ private static class X509TrustedCertificateParser
411411 implements PemObjectParser
412412 {
413413 /**
414- * Reads in a X509Certificate .
414+ * Reads in a X509TrustedCertificateBlock .
415415 *
416- * @return the X509Certificate
416+ * @return the X509TrustedCertificateBlock
417417 * @throws java.io.IOException if an I/O error occured
418418 */
419419 public Object parseObject (PemObject obj )
@@ -425,7 +425,7 @@ public Object parseObject(PemObject obj)
425425 }
426426 catch (Exception e )
427427 {
428- throw new PEMException ("problem parsing cert : " + e .toString (), e );
428+ throw new PEMException ("problem parsing trusted certificate : " + e .toString (), e );
429429 }
430430 }
431431 }
@@ -436,7 +436,7 @@ private static class X509CRLParser
436436 /**
437437 * Reads in a X509CRL.
438438 *
439- * @return the X509Certificate
439+ * @return the X509CRL
440440 * @throws java.io.IOException if an I/O error occured
441441 */
442442 public Object parseObject (PemObject obj )
@@ -448,7 +448,7 @@ public Object parseObject(PemObject obj)
448448 }
449449 catch (Exception e )
450450 {
451- throw new PEMException ("problem parsing cert : " + e .toString (), e );
451+ throw new PEMException ("problem parsing CRL : " + e .toString (), e );
452452 }
453453 }
454454 }
0 commit comments