pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1835653 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
Date Wed, 11 Jul 2018 17:55:39 GMT
Author: tilman
Date: Wed Jul 11 17:55:39 2018
New Revision: 1835653

URL: http://svn.apache.org/viewvc?rev=1835653&view=rev
Log:
PDFBOX-4071: replace deprecated method

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java?rev=1835653&r1=1835652&r2=1835653&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
Wed Jul 11 17:55:39 2018
@@ -38,7 +38,7 @@ import org.bouncycastle.asn1.DERTaggedOb
 import org.bouncycastle.asn1.DLSequence;
 import org.bouncycastle.asn1.x509.GeneralName;
 import org.bouncycastle.asn1.x509.X509ObjectIdentifiers;
-import org.bouncycastle.x509.extension.X509ExtensionUtil;
+import org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils;
 
 public class CertInformationHelper
 {
@@ -146,7 +146,7 @@ public class CertInformationHelper
     protected static void getAuthorityInfoExtensionValue(byte[] extensionValue,
             CertSignatureInformation certInfo) throws IOException
     {
-        ASN1Sequence asn1Seq = (ASN1Sequence) X509ExtensionUtil.fromExtensionValue(extensionValue);
+        ASN1Sequence asn1Seq = (ASN1Sequence) JcaX509ExtensionUtils.parseExtensionValue(extensionValue);
         Enumeration<?> objects = asn1Seq.getObjects();
         while (objects.hasMoreElements())
         {
@@ -180,7 +180,7 @@ public class CertInformationHelper
      */
     protected static String getCrlUrlFromExtensionValue(byte[] extensionValue) throws IOException
     {
-        ASN1Sequence asn1Seq = (ASN1Sequence) X509ExtensionUtil.fromExtensionValue(extensionValue);
+        ASN1Sequence asn1Seq = (ASN1Sequence) JcaX509ExtensionUtils.parseExtensionValue(extensionValue);
         Enumeration<?> objects = asn1Seq.getObjects();
 
         while (objects.hasMoreElements())



Mime
View raw message