Error 500 Org.bouncycastle.asn1.derencodable
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up iText/BouncyCastle ClassNotFound org.bouncycastle.asn1.DEREncodable and org.bouncycastle.tsp.TimeStampTokenInfo up vote 12 down vote favorite 6 I'm trying to use iText Java. When you run the example "how to sign" the following error occurs: Caused by: java.lang.ClassNotFoundException: org.bouncycastle.tsp.TimeStampTokenInfo According "Getting Started with iText - How to sign a PDF using iText", I have to use the BouncyCastle. I downloaded the file: bcprov-jdk15on-147.jar from BouncyCastle download page. And added to the project: Java Build Path/Libraries/Add External JARs... I added the following line: Security.addProvider(new BouncyCastleProvider()); When you run the example the same error occurs. So I downloaded another file: bcpkix-jdk15on-147.jar entitled "PKIX/CMS/EAC/PKCS/OCSP/TSP/OPENSSL" And added to the project: Java Build Path/Libraries/Add External JARs... Now I have two Jars. When you run the example the following error occurs: Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DEREncodable I tried downloading the file "bcprov-ext-jdk15on-147.jar" but did not solve the problem. I am using iText 5.2.1 and eclipse on Windows 7 64 bits. java exception cryptography itext bouncycastle share|improve this question edited Apr 30 '12 at 22:19 asked Apr 30 '12 at 22:13 Cobaia 56221333 add a comment| 7 Answers 7 active oldest votes up vote 17 down vote accepted BouncyCastle libs are undergoing heavy API changes that broke the compatibility with other libs like iText. Either use a previous version of BouncyCastle libs. Old versions can be found here. However, you'll have to find the right version of iText that was compatible with this particular version of BC. make your own build of iText (the SVN trunk has been fixed). iText can be build with Maven (there's a short readme file at the root of the SVN). Please note that it's at your own risk, there may be bugs in trunk. wait for the next version of iText. From my experience, iText releases come every couple of months, sometime more often, sometimes less. I'm not an iText committer t
JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > Support > Openfire Support > Discussions Please enter a title. You can not post a blank message. http://stackoverflow.com/questions/10391271/itext-bouncycastle-classnotfound-org-bouncycastle-asn1-derencodable-and-org-boun Please type your message and try again. 0 Replies Latest reply on Jun 6, 2012 7:46 PM by cinglese Error 500 org.bouncycastle.asn1.DERTaggedObject.
iText 7 - pdfCalligraph XFA Worker Earlier http://www.programcreek.com/java-api-examples/index.php?api=org.bouncycastle.asn1.DEREncodable releases Expertise Insights and thoughts Case Studies iText Customers Event Downloads Speaking Slots Glossary Pricing License overview Unit-based Volume-based OEM Distribution Support Partners Find a Partner Become a Partner Developers BouncyCastle error 500 Why do I get a BouncyCastle NoClassDefFoundError?Posted:05/31/2016Tags:BouncyCastleencryptionNoClassDefFoundErroriText 7 I want to encrypt my PDF but there seems to be an error: Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1EncodableRead more Why do I get a BouncyCastle NoClassDefFoundError?Posted:11/05/2015Tags:BouncyCastleencryptionNoClassDefFoundErroriText 5 I want to encrypt error 500 org.bouncycastle.asn1.derencodable my PDF but there seems to be an error: Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1EncodableRead more Company About Us Blog Press Releases Events Awards Legal Contact Us Jobs Customers Customer Portal Customer Support FAQ How To Buy Explore Pricing Request a Quote Find a Partner Get Products Product Overview Downloads Developers Developer Portal Q&A Release Notes API Docs Asia, Oceania 15 Scotts Road #04-08 Thong Teck Building Singapore 228218 sales.isa@itextpdf.com +65 67 16 97 85 Europe, Middle East, Africa Business Center "De Punt" Kerkstraat 108 9050 Gentbrugge (Ghent) Belgium sales.isb@itextpdf.com +32 9 298 02 31 North America, South America 47 3rd Street, Suite 301 Cambridge, MA 02141 USA sales.isc@itextpdf.com +1 617 982 2646 © 2016, iText Group NV
java.security.NoSuchAlgorithmException org.bouncycastle.asn1.DERObject java.io.IOException org.bouncycastle.asn1.ASN1Set org.bouncycastle.asn1.ASN1TaggedObject org.bouncycastle.asn1.DERObjectIdentifier org.bouncycastle.asn1.DERNull org.bouncycastle.asn1.ASN1Sequence Java Code Examples for org.bouncycastle.asn1.DEREncodable The following are top voted examples for showing how to use org.bouncycastle.asn1.DEREncodable. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples. + Save this class to your library Example 1 Project: cryptoapplet File: CMSSignedHelper.java View source code 7 votes X509Store createAttributeStore( String type, Provider provider, ASN1Set certSet) throws NoSuchStoreException, CMSException { List certs = new ArrayList(); if (certSet != null) { Enumeration e = certSet.getObjects(); while (e.hasMoreElements()) { try { DERObject obj = ((DEREncodable)e.nextElement()).getDERObject(); if (obj instanceof ASN1TaggedObject) { ASN1TaggedObject tagged = (ASN1TaggedObject)obj; if (tagged.getTagNo() == 2) { certs.add(new X509V2AttributeCertificate(ASN1Sequence.getInstance(tagged, false).getEncoded())); } } } catch (IOException ex) { throw new CMSException( "can't re-encode attribute certificate!", ex); } } } try { return X509Store.getInstance( "AttributeCertificate/" +type, new X509CollectionStoreParameters(certs), provider); } catch (IllegalArgumentException e) { throw new CMSException("can't setup the X509Store", e); } } Example 2 Project: voms-api-java File: VOMSACGenerator.java View source code 6 votes private DEREncodable getCertAsDEREncodable(X509Certificate cert) { try { byte[] certBytes = cert.getEncoded(); ByteArrayInputStream bais = new ByteArrayInputStream(certBytes); ASN1InputStream is = new ASN1InputStream(bais); DERObject derCert = is.readObject(); is.close(); return derCert; } catch (CertificateEncodingException e) { throw new VOMSError("Error encoding X509 certificate: " + e.getMessage(), e