Java Reference
In-Depth Information
Typically, when the user attempts to start the JavaFX applet, this name is pre-
sented to the user and the user must accept it before the applet will actually start.
For more information, consult the Java documentation for the keytool command.
keytool -genkey -keystore ./myKeystore -storepass password
-alias myKey -keypass password
-dname CN=JFXBOOK
After the key is generated, you need to create a self-signed certificate, again
using the Java keytool command.
keytool -selfcert -alias myKey -keystore ./myKeystore
-storepass password
Using a Verified Certificate
Using a self-signed certificate is useful for testing, but when your application goes
into production, you should sign the JAR files with a valid certificate. A valid certifi-
cate can be obtained from a Certificate Authority such as Verisign ( http://www.veri-
sign.com/) or Thawte ( http://www.thawte.com/). Consult the Java documentation
on how to obtain a valid certificate and then how to import that certificate into the
keystore. A good source detailing this entire procedure can be found at http://
java.sun.com/docs/books/tutorial/security/sigcert/index.html.
Lastly, you need to sign the JAR file with a self-signed or a trusted certificate by
using the Java jarsigner command.
jarsigner -keystore ./myKeystore -storepass password
NasaImageBrowser.jar myKey
All these examples assume you are in the same directory as the directory con-
taining the NasaImageBrowser.jar file.
JNLP File
The new applet browser plug-in software leverages the Java Network Launching
Protocol (JNLP) first introduced with Java Web Start. Java Web Start allows you
to start an Internet Java application outside of the browser. This capability is now
being applied to applets themselves, so that applets no longer run within the
browser application, but rather run in a background Java process with a window
on the browser page. Using JNLP makes dealing with issues like security and
runtime settings easier to maintain in a downloadable form.
Search WWH ::




Custom Search