Java technologies include APIs for signing and verifying signed data, encrypting and
decrypting data, and writing a security manager. A security manager is a Java virtual machine
(JVM1)
object that implements a security policy such as prompting an end user for
password verification. However, for export reasons, code for encrypting and decrypting data
cannot be shown on the Web.
writeFile.java is another version of an applet that uses Java Network Launch Protocol
(JNLP) to write to a user-selected file. The applet is run securely with Java Web Start.
For supporting information see
Java
Web Start to the Rescue.
Signing and Verifying Signed Data
GenSig.java
shows how to generate a digital signature on data.
VerSig.java
shows how to verify a digital signature on data.
Writing a Security Manager
FileIO.java
has a security manager that prompts the end user to enter a password before it allows a read or write operation.