Excelsior Logo Excelsior Logo
Company Products Services Resources Blog Contact
Store Buy    Download Download    Support Support    Forum  Forum    Search  Search   
Request a Call  Request a Call   

HOWTO: Compile an application that uses a security provider

Article ID: 000029
Last Revised On: 25-Jul-2006

PDF Version: 000029.pdf

The information in this article applies to:

  • Excelsior JET 4.5 and above

The similar article for Excelsior JET 4.1 and below can be found here 000005.

SUMMARY

To enable the use of security providers in JET-compiled applications, their implementing JARs must be handled in a special way, namely they should be packed to the resulting executable as a whole.

An example of using the BouncyCastle security provider [1] can be found here.

DETAILS

Typically, security provider APIs check their implementing classes for consistency at run-time. Therefore the original security provider classes should be available to the running application. The JET Optimizer provides an option to pack JARs into executables, which can be used to pack a security provider JAR.

You can easy do this in JET Control Panel. The central area of the "Classpath" page of JET Control Panel is occupied by the classpath grid. Each line in the grid corresponds to a single classpath entry - a directory or a JAR file. The last column, named Pack into exe, specifies the resource packing mode for each entry. Click the cell for a security provider JAR, and select the "original jar/zip" item.

REFERENCES

  1. BouncyCastle security provider http://www.bouncycastle.org
  2. JET User’s Guide http://www.excelsior-usa.com/jetdoc.html, The JET Control Panel, Step 3: Selecting a compilation mode, Classpath grid
  3. Excelsior JET User’s Guide (http://www.excelsior-usa.com/jetdoc.html), Chapter “Application Considerations”, section “Resource packing”.

Copyright © 2003-2006 Excelsior LLC. All rights reserved.

Rate this article
Was this article helpful?
Was this article easy to find?

Home | Company | Products | Services | Resources | Blog | Contact | Request a Call

Site: Search | Forum | Credits

© 1999-2006 Excelsior LLC. All Rights Reserved.