pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java?rev=1868144&r1=1868143&r2=1868144&view=diff
==============================================================================
--- pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
(original)
+++ pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
Tue Oct  8 16:02:50 2019
@@ -49,7 +49,7 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.pdfbox.io.IOUtils;
 import org.apache.pdfbox.pdmodel.encryption.SecurityProvider;
-import org.bouncycastle.asn1.ASN1ObjectIdentifier;
+import org.bouncycastle.asn1.ASN1Encodable;
 import org.bouncycastle.asn1.ASN1OctetString;
 import org.bouncycastle.asn1.ASN1Primitive;
 import org.bouncycastle.asn1.ASN1Sequence;
@@ -297,7 +297,7 @@ public final class CertificateVerifier
         {
             // AccessDescription
             ASN1Sequence obj = (ASN1Sequence) objects.nextElement();
-            ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) obj.getObjectAt(0);
+            ASN1Encodable oid = obj.getObjectAt(0);
             if (!X509ObjectIdentifiers.id_ad_caIssuers.equals(oid))
             {
                 continue;
@@ -411,7 +411,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