pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1807916 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
Date Sat, 09 Sep 2017 16:23:39 GMT
Author: tilman
Date: Sat Sep  9 16:23:39 2017
New Revision: 1807916

URL: http://svn.apache.org/viewvc?rev=1807916&view=rev
Log:
PDFBOX-3930: replace deprecated (in the future) TBSCertificateStructure

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java?rev=1807916&r1=1807915&r2=1807916&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
Sat Sep  9 16:23:39 2017
@@ -60,7 +60,7 @@ import org.bouncycastle.asn1.cms.Recipie
 import org.bouncycastle.asn1.cms.RecipientInfo;
 import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
 import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
-import org.bouncycastle.asn1.x509.TBSCertificateStructure;
+import org.bouncycastle.asn1.x509.TBSCertificate;
 import org.bouncycastle.cert.X509CertificateHolder;
 import org.bouncycastle.cms.CMSEnvelopedData;
 import org.bouncycastle.cms.CMSException;
@@ -453,10 +453,10 @@ public final class PublicKeySecurityHand
         throws IOException, CertificateEncodingException, InvalidKeyException,
             BadPaddingException, IllegalBlockSizeException
     {
-        TBSCertificateStructure certificate;
+        TBSCertificate certificate;
         try (ASN1InputStream input = new ASN1InputStream(x509certificate.getTBSCertificate()))
         {
-            certificate = TBSCertificateStructure.getInstance(input.readObject());
+            certificate = TBSCertificate.getInstance(input.readObject());
         }
 
         AlgorithmIdentifier algorithmId = certificate.getSubjectPublicKeyInfo().getAlgorithm();



Mime
View raw message