Package uicc.connection
Interface BIPLink
-
- All Superinterfaces:
Observable
public interface BIPLink extends Observable
TheBIPLinkinterface represents a pure BIP logical connection to a remote entity. Objects implementingBIPLinkinterface and returned by theConnectionServer.getConnectionmethod are Permanent Entry Point Objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanclose()Closes the BIP link.shortopen()It request the opening of the BIP link.booleansend(byte[] baData, short sOffset, short sLength)Sends data on the BIP link without any additional on-card reliable level.
-
-
-
Method Detail
-
open
short open() throws ConnectionExceptionIt 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
boolean close() throws ConnectionExceptionCloses 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 java.lang.ArrayIndexOutOfBoundsException, ConnectionException, java.lang.NullPointerExceptionSends 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:
java.lang.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
java.lang.NullPointerException- ifbaDatais equal tonull
-
-