pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1844684 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
Date Tue, 23 Oct 2018 18:05:07 GMT
Author: tilman
Date: Tue Oct 23 18:05:07 2018
New Revision: 1844684

URL: http://svn.apache.org/viewvc?rev=1844684&view=rev
Log:
PDFBOX-3017: add revocation date to exception message

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java?rev=1844684&r1=1844683&r2=1844684&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
Tue Oct 23 18:05:07 2018
@@ -127,7 +127,10 @@ public class OcspHelper
 
                 if (status instanceof RevokedStatus)
                 {
-                    throw new RevokedCertificateException("OCSP: Certificate is revoked.");
+                    RevokedStatus revokedStatus = (RevokedStatus) status;
+                    throw new RevokedCertificateException(
+                            "OCSP: Certificate is revoked since " +
+                                    revokedStatus.getRevocationTime());
                 }
                 else if (status != CertificateStatus.GOOD)
                 {



Mime
View raw message