pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1868141 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
Date Tue, 08 Oct 2019 16:02:37 GMT
Author: tilman
Date: Tue Oct  8 16:02:36 2019
New Revision: 1868141

URL: http://svn.apache.org/viewvc?rev=1868141&view=rev
Log:
PDFBOX-3017: use base class

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java?rev=1868141&r1=1868140&r2=1868141&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
Tue Oct  8 16:02:36 2019
@@ -50,7 +50,6 @@ import org.apache.commons.logging.LogFac
 import org.apache.pdfbox.io.IOUtils;
 import org.apache.pdfbox.pdmodel.encryption.SecurityProvider;
 import org.bouncycastle.asn1.ASN1Encodable;
-import org.bouncycastle.asn1.ASN1ObjectIdentifier;
 import org.bouncycastle.asn1.ASN1OctetString;
 import org.bouncycastle.asn1.ASN1Primitive;
 import org.bouncycastle.asn1.ASN1Sequence;
@@ -393,7 +392,7 @@ public final class CertificateVerifier
             {
                 // AccessDescription
                 ASN1Sequence obj = (ASN1Sequence) objects.nextElement();
-                ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) obj.getObjectAt(0);
+                ASN1Encodable oid = obj.getObjectAt(0);
                 // accessLocation
                 ASN1TaggedObject location = (ASN1TaggedObject) obj.getObjectAt(1);
                 if (X509ObjectIdentifiers.id_ad_ocsp.equals(oid)



Mime
View raw message