Package uicc.connection
Interface BIPLink
- All Superinterfaces:
Observable
The
BIPLink interface represents a pure BIP logical connection to a remote entity.
Objects implementing BIPLink interface and returned by the ConnectionServer.getConnection method
are Permanent Entry Point Objects.-
Method Summary
-
Method Details
-
open
It request the opening of the BIP link.- Returns:
- the size of the allocated PDU buffer or
0if the proactive command was not successful. - Throws:
ConnectionException- with the following reason code:TOOLKIT_RESOURCE_NOT_AVAILABLEif the proactive command could not be issued.INVALID_STATEif the BIP link is already opened.USER_CANCELLATIONif the user cancelled the opening of the BIP link.UNSUPPORTED_OPERATIONif the Terminal Equipment does not support the required mechanisms to perform the action.RESOURCE_NOT_AVAILABLEif there are not sufficient resources available (on the UICC or on the terminal).
-
close
Closes the BIP link.- Returns:
trueif the proactive command has been successfully executed by the Terminal Equipmentfalseotherwise.- Throws:
ConnectionException- with the following reason code:TOOLKIT_RESOURCE_NOT_AVAILABLEif the proactive command could not be issued.USER_CANCELLATIONif the user cancelled the closing of the BIP link
-
send
boolean send(byte[] baData, short sOffset, short sLength) throws ArrayIndexOutOfBoundsException, ConnectionException, NullPointerException Sends data on the BIP link without any additional on-card reliable level.Note: The applet execution is resumed once the data has been sent.
- Parameters:
baData- byte array containing the data to be sentsOffset- the starting offset of the data to be sent in thebaDatabyte arraysLength- the length of the data to be sent- Returns:
trueif the proactive command has been successfully executed by the Terminal Equipment;falseotherwise.- Throws:
ArrayIndexOutOfBoundsException- ifsOffsetandsLengthare causing access outside ofbaDataarray boundsConnectionException- with the following reason code:TOOLKIT_RESOURCE_NOT_AVAILABLEif the proactive command could not be issued.INVALID_STATEif the BIP link is not opened.USER_CANCELLATIONif the user cancelled the connecting of the BIP link
NullPointerException- ifbaDatais equal tonull
-