Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to install the static provider there are two steps necessary. First we have to install just copy the jar-library to the "Java\lib\ext" folder where Java points to the location of your installed JRE. Afterwards we have to edit the "java.security" file stored in "Java\lib\security" and add the following line where X is a number starting at 1:
security.provider.X=com.certgateAirID.jce.staticinstall.StaticSmartCardAuthProvider



Higher numbers mean lower priority. The priority can be seen as a order for asking the providers if they support a demanded algorithm when it is equal where the algorithm comes from. We suggest using 1 as priority and increment all other providers previously listed in that file. After a restart of the JRE each Java program will be able to use our provider. The provider - if necessary - can be retrieved by using the following lines of code:
AuthProvider p = Security.getProvider("CERTGATE AirID SmartCard Provider");



When this line is executed the first time within a program the StaticSmartCardAuthProvider is initialized and will use the first reader which has a smartcard present. When no reader is found or no reader has a smartcard inserted the reader returned by getFirstAdditionallyReader is used (see 3.1 for more information).

...