Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-16 Thread Paulo Soares
Thank you. Paulo On Mon, Apr 16, 2012 at 11:29 AM, David Hook wrote: > > getContent call in > > envelopedData = recipientInfo.getContent(certificateKey, > certificateKeyProvider); > > Should be: > > getContent(new > JceKeyTransEnvelopedRecipient(certificateKey).setProvider(certificateKeyProvider

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-16 Thread David Hook
getContent call in envelopedData = recipientInfo.getContent(certificateKey, certificateKeyProvider); Should be: getContent(new JceKeyTransEnvelopedRecipient(certificateKey).setProvider(certificateKeyProvider)); I'd also suggest allowing people to specify a content provider, the original BC app

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-15 Thread Paulo Soares
Hi David, Thank you for the assistance. The particular code is at http://itext.svn.sourceforge.net/viewvc/itext/trunk/itext/src/main/java/com/itextpdf/text/pdf/PdfReader.java?revision=5118&view=markup line 743. certificateKey is the private key used to decrypt the PDF. Paulo On Sat, Apr 14, 2012

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-13 Thread David Hook
Hi Paulo, if the deprecated method is still been used in the latest svn version, let me know the details and I'll help you get it sorted out. Regards, David -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-5-2-1-and-Bouncycastle-1-47-tp4544704p4556602.html Sen

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-11 Thread Paulo Soares
The change was done in revision 5114. Just get the latest. Paulo On Wed, Apr 11, 2012 at 2:01 PM, Valentin Ivanov wrote: > Hello Paulo, > > at first glance i did not find the svn repository. But now i download iText > revision 5117, is this the right lib you are talking about? > > -- > View this

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-11 Thread Valentin Ivanov
Hello Paulo, at first glance i did not find the svn repository. But now i download iText revision 5117, is this the right lib you are talking about? -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-5-2-1-and-Bouncycastle-1-47-tp4544704p4548819.html Sent from the

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-11 Thread Paulo Soares
Does anyone read the past messages in this thread? iText SVN HEAD supports BC 1.47. It's already there, it's done, try it. Paulo On Wed, Apr 11, 2012 at 11:38 AM, Valentin Ivanov wrote: > I have the same issue during PDF encription. In addition > http://www.bouncycastle.org/wiki/display/JA1/Port

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-11 Thread Valentin Ivanov
I have the same issue during PDF encription. In addition http://www.bouncycastle.org/wiki/display/JA1/Porting+from+earlier+BC+releases+to+1.47+and+later HERE is the table of changes in BC1.47. -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-5-2-1-and-Bouncycas

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-10 Thread Kwan Hon Luen
ril 10, 2012 5:25 PM Subject: Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47 The SVN version is compatible with BC 1.47. It still calls a deprecated method that I'm not sure what to replace with. Paulo On Tue, Apr 10, 2012 at 7:50 AM, Andreas Kuehne wrote: > Hi Kwan Hon Luen, >

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-10 Thread Paulo Soares
The SVN version is compatible with BC 1.47. It still calls a deprecated method that I'm not sure what to replace with. Paulo On Tue, Apr 10, 2012 at 7:50 AM, Andreas Kuehne wrote: > Hi Kwan Hon Luen, > > Bouncy Castle is undergoing some major/severe refactorings with incompatible > changes at re

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-09 Thread Andreas Kuehne
Hi Kwan Hon Luen, Bouncy Castle is undergoing some major/severe refactorings with incompatible changes at relevant API interfaces. So version dependecy not a problem of iText but all 'users' of BC. It hurts a lot! Greetings Andreas > It appears that iText 5.2.1 is not compatible with Bouncycastl

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread Balder VC
On 09/21/2011 11:50 AM, 1T3XT BVBA wrote: > And if you use the POM, then you don't even have to worry about BC. > The correct versions are downloaded automagically, aren't they? They are not, since not every one needs signing. They are marked as optional. In your IDE ( if it supports maven) it

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread Cristian
Thank you. Used maven and problems gone! -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread mingqiang yu
I have had similar problem when I tried to use PdfReader on a secure pdf: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1ObjectIdentifier at com.itextpdf.text.pdf.PdfEncryption.(PdfEncryption.java:147) I got the newest version of itext through maven. But after I added the bcmai

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread 1T3XT BVBA
On 21/09/2011 12:05, Cristian wrote: > Thank you for your reply 1T3XT BVBA. Yes IText version is 5.1.2 > sorry for the mistake. > > I used the libraries that you suggested and I got this exception: > > Exception in thread "main" java.lang.NoSuchMethodError: > org.bouncycastle.asn1.DERSequence.(Lorg

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread Cristian
Thank you for your reply 1T3XT BVBA. Yes IText version is 5.1.2 sorry for the mistake. I used the libraries that you suggested and I got this exception: Exception in thread "main" java.lang.NoSuchMethodError: org.bouncycastle.asn1.DERSequence.(Lorg/bouncycastle/asn1 /ASN1EncodableVector;)V Any

Re: [iText-questions] IText 5.2.1 and BouncyCastle

2011-09-21 Thread 1T3XT BVBA
On 21/09/2011 11:25, Cristian wrote: Hi, Before posting on the mailing list I googled and tested a lot. I tried to use IText 5.2.1 There is no iText 5.2.1 yet. The most recent version is iText 5.1.2. with BouncyCastle but I am experiencing different errors on BouncyCastle (methods not fou