Sun Java Solaris Communities My SDN Account Join SDN
 
Index of Code Samples

Security Code Samples

 

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.

Java Cryptography Extension (JCE) Java Web Start and Security 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
1 As used on this web site, the terms Java virtual machine or JVM mean a virtual machine for the Java platform.