Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Accessing the public key stored in a signed jar
Hello,

I signed a jar file and a document (later on) with the same private
key.

Now I want to use the public key stored in a jar file to verify the
signed document. Is there a class available in the SDK to access the
private key from within the *.dsa file?

Or do I miss someting and this makes no sense?

Thanks,
Peter

Report this thread to moderator Post Follow-up to this message
Old Post
Peter Mueller
03-15-08 12:41 AM


Re: Accessing the public key stored in a signed jar
Peter Mueller wrote:
> Hello,
>
> I signed a jar file and a document (later on) with the same private
> key.
>
> Now I want to use the public key stored in a jar file to verify the
> signed document. Is there a class available in the SDK to access the
> private key from within the *.dsa file?
>

When you save a key you can look at the format (key.getFormat() or
something). If it is PKCS8 you could recreated the key using the the
"PKCS8" parameter for KeyFactory. Unfortunately I don't have the code
for that right here.

Not a complete solution, but maybe this points you in the right direction...

Regards,
Maarten

Report this thread to moderator Post Follow-up to this message
Old Post
Maarten Bodewes
03-23-08 12:20 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Security archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:55 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.