A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://java.sun.com/docs/books/tutorial/security/apisign/step5.html below:

Compile and Run the Program (The Java™ Tutorials > Security Features in Java SE

Trail: Security Features in Java SE
Lesson: Generating and Verifying Signatures
Section: Generating a Digital Signature

The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Dev.java for updated tutorials taking advantage of the latest releases.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

Compile and Run the Program

Here is the complete source code for the GenSig.java program, with some comments added. Compile and run it. Remember, you need to specify the name of a file to be signed, as in

You can download and use this sample file named data or any other file you like. The file will not be modified. It will be read so that a signature can be generated for it.

After executing the program, you should see the saved suepk (public key) and sig (signature) files.

Previous page: Save the Signature and the Public Key in Files
Next page: Verifying a Digital Signature


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4