Intel

Developer Zone

CLSClient


com.intel.util
Interface CLSClient


public interface CLSClient

The interface to be implemented by applet to receive notifications about iCLS permit events. The interface should be provided to register method in CLSManager class.

See Also:
CLSManager

Method Summary
void onPermitCreate(short subclass, byte[] data)
This method will be invoked by the system at the beginning of the iCLS transaction after M0 was generated and populated by the registration info (Capability Descriptor and Feature flags), and the permit request (M1) is about to be sent to the SW application (followed by M1+M2 being sent by the SW application to the Permit Server).
void onPermitReceived(short subclass, byte[] data)
This method will be invoked by the system at the end of the iCLS transactions when the permit response (M3) is received from Permit Server through the SW application and iCLS FW.

Method Detail

onPermitCreate

void onPermitCreate(short subclass,
                    byte[] data)
This method will be invoked by the system at the beginning of the iCLS transaction after M0 was generated and populated by the registration info (Capability Descriptor and Feature flags), and the permit request (M1) is about to be sent to the SW application (followed by M1+M2 being sent by the SW application to the Permit Server). Note that this method invocation is not synchronized in any way with the communication between iCLS FW infrastructure and SW application and cannot block the iCLS transaction flow. In addition, the infrastructure does not guarantee that this method will indeed be called if the system resources are exhausted. Therefore, the applet should synchronize with its calling SW application to verify the actual occurrence of the iCLS transaction.

Parameters:
subclass - the subclass of the permit from the request
data - the updated capability descriptor that will be sent in the permit request

onPermitReceived

void onPermitReceived(short subclass,
                      byte[] data)
This method will be invoked by the system at the end of the iCLS transactions when the permit response (M3) is received from Permit Server through the SW application and iCLS FW. Note that this method invocation is not synchronized in any way with the communication between iCLS FW infrastructure and SW application and cannot block the iCLS transaction flow. In addition, the infrastructure does not guarantee that this method will indeed be called if the system resources are exhausted. Therefore, the applet should synchronize with its calling SW application to verify the actual occurrence of the iCLS transaction.

Parameters:
subclass - the subclass of the permit received
data - the capability descriptor from the received permit