com.licel.jcardsim.samples.SampleLibrary
Interface JavaLoyaltyInterface

All Superinterfaces:
Shareable
All Known Implementing Classes:
JavaLoyalty

public interface JavaLoyaltyInterface
extends Shareable

Shareable Loyalty Interface


Method Summary
 void grantPoints(byte[] buffer)
          Used to ask JavaLoyalty Card applet to grant points.
 

Method Detail

grantPoints

void grantPoints(byte[] buffer)
Used to ask JavaLoyalty Card applet to grant points.

Only primitive values, global arrays and Shareable Interface Objects should be passed as parameters and results across a context switch. The byte array buffer is APDU buffer in classes implementing this interface. See Java Card Runtime Environment (JCRE) Specification for details.

The format of data in the buffer is subset of Transaction Log record format: 2 bytes of 0, 1 byte of transaction type, 2 bytes amount of transaction, 4 bytes of CAD ID, 3 bytes of date, and 2 bytes of time.

Parameters:
buffer - Apdu buffer containing transaction data.