Copyright  2016 HID Global Corporation/ASSA ABLOY AB. All rights reserved.

==============================
HID Global BSI API Java sample
==============================

This sample demonstrates how to use the BSI API version 2.1 provided with ActivID ActivClient 7.1 from a Java program.
It implements the following scenarios:
-	How to use a private key to sign data.
-	How to read data items from the card.
-	How to send APDUs to an applet instance.

		----------------------------------------------------

1 - Required runtime environment

	- Microsoft Windows 7 SP1 or later (32 and 64-bit editions)
	- ActivID ActivClient 7.1
	- Oracle Java Runtime Environment 1.7 or later

		----------------------------------------------------

2 - Recommended development environment

	- Oracle Java Development Kit 1.7 or later

	Sample sources are located in the SDK\BSI\Java\Sample folder.

	Add the ActivClient 7.1 installation directory to the CLASSPATH environment variable (for example: set CLASSPATH=%CLASSPATH%;C:\Program Files\HID Global\ActivClient\).
	
	The Java sample is provided together with two batch files. Simply copy the SDK\BSI\Java\Sample folder from the ActivClient distribution CD to a hard disk location, and open a command prompt at that location.
	
	First, run 'bsi.javasample_compilation.bat' to  produce the .\Binaries\bsi.javasample.jar file.
	Then, run 'bsi.javasample_execution.bat' to run the sample.

		----------------------------------------------------

3 - Sample description

	You must be familiar with the BSI specifications to use this sample.
	
	This Java applet relies on acbsi21.dll implementing the BSI API, and on JNIBSI21.dll/bsi21classes.jar/bsi21interf.jar for the Java Native Interface.
	
	It demonstrates the following BSI functions:
gscBsiUtilGetVersion, 
gscBsiUtilConnect, 
gscBsiUtilDisconnect, 
gscBsiUtilAcquireContext, 
gscBsiUtilReleaseContext, 
gscBsiUtilBeginTransaction, 
gscBsiUtilEndTransaction, 
gscBsiUtilPassthru, 
gscBsiGcGetContainerProperties, 
gscBsiGcReadTagList, 
gscBsiGcReadValue,
gscBsiPkiCompute, 
gscBsiGetCryptoProperties, 
gscBsiUtilGetExtendedErrorText