Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 24th, 2013, 05:01 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 NoSuchFieldError: AuthorityKeyIdentifier

Hello, I have been trying to dig into the book for some weeks now and the going in the later stages of this book are showing a definite pattern when running the examples.

Case-in-point: attempts to run the chapter 7 class: X509CRLExample would not run without using a much older jar: bcprov-jdk16-140.jar. Reason is the class: NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable does not exist in the newer jar: bcprov-jdk15on-148.jar.

Once I got the example to run I am now confronted with the following exception:
NoSuchFieldError: AuthorityKeyIdentifier
at chapter7.X509CRLExample.createCRL(Unknown Source)
at chapter7.X509CRLExample.main(Unknown Source)

I really don't have the expertise to understand how to resolve this issue (the reason why I bought the book).

The examples in the book must be very much out-of-date with respect to the new BC jar API that is provided.

The examples are working fairly well thru ch. 4 or 5 or so but starting with ch. 6 and 7 nothing will run and therefore my progress on learning Java Crytography is waining.

And, I definitely need the use of Certs, paths, and keystores but with the examples I have now there is no way of making this stuff work without rewriting some of the code to work with the newer jar API.

An exhaustive search for an alternative on the net turns up not much.

Any suggestions welcomed.
Reply With Quote
  #2 (permalink)  
Old May 24th, 2013, 05:44 PM
dgh dgh is offline
Wrox Author
Points: 864, Level: 11
Points: 864, Level: 11 Points: 864, Level: 11 Points: 864, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Yes, unfortunately some parts of the book are now out of date.

You can find the extra information you need at:

http://www.bouncycastle.org/wiki/dis...Version+2+APIs
http://www.bouncycastle.org/wiki/dis...1.47+and+later

There are also some further references on:

http://www.bouncycastle.org/documentation.html

Regards,

David
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 --> Chapter 5 Continuity?? theboffin BOOK: Professional ASP.NET MVC 4 4 July 8th, 2013 03:36 AM
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM



All times are GMT -4. The time now is 09:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.