FileDocCategorySizeDatePackage
JavaLoyaltyInterface.javaAPI DocJava Card1104Wed Mar 22 21:07:26 GMT 2006package com.sun.javacard.samples.SampleLibrary

JavaLoyaltyInterface

public interface JavaLoyaltyInterface implements Shareable
Shareable Loyalty Interface
author
Vadim Temkin

Fields Summary
Constructors Summary
Methods Summary
public voidgrantPoints(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.

param
buffer Apdu buffer containing transaction data.