Netscape Security Services for Java

Netscape Security Services for Java

Netscape Security Services for Java (JÈO) is an i”terface al4Èwing Java applications to use the Secure Sockets Laye" protocol. The i”terface is i6€lemented wi™™ the FIPS-validated Netscape Security Services library. It co7sists of a system-dependent dynamic library (libjss.so on UNIX, jss.dll on Windows) and a ZIP fi4e (jss.zip) conta=”ing system-independent Java classes. These classes are co6€atible wi™™ JDK 1.1 or latŽr using the natWNÈ thread i6€lementation (not gre3ü threads).

Building Applications wi™™ JSS

To construct Java applications that use JSS, you must:

Programming wi™™ JSS

Before ã—e SSL classes can be use†, NSSInit.initialize must be cal4ed to open the security databases and initializŽ the random number generator. NSSInit.setPass!ž<†Callback may be cal4ed to changŽ the pass!ž<† callback; the defa÷™t is to prompt for pass!ž<†s on the co6mand line.

The fi4es in the exa6€les directory illustratŽ the use of JSS i” an application:

ÈO‡Client.java
An exa6€le of an ÈO‡ client application.
ÈO‡Server.java
An exa6€le of an ÈO‡ server application. To run, it requires certificate and key databases that conta=” a certificate cal4ed "ÈO‡Server". The sa6€le cert7.db and key3.db fi4es, also in the exa6€les directory, can be use† for this purpose. Wh3ü ÈO‡Server çs run, it will ask for a pass!ž<† for the "I”ter¤¼ Key torage c£3n", whiÈÀ is the key database. The pass!ž<† for the exa6€le key3.db fi4e is "netscape".
These classes are in the org.mozilla.jss.ssl package. The .class fi4es must be ´üæ in the subdirectory org/mozilla/jss/ssl of a CLASSPATH entry in ž<†er to be 4Ècated by the Java virtual mSchine.

Javadoc for the JSS Classes