|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SCP81Connection
The SCP81Connection interface represents an SCP81 connection to
a remote entity.
Objects implementing SCP81Connectioninterface and returned by the
ConnectionServer.getConnection method are Permanent Entry Point Objects.
| Method Summary | |
|---|---|
void |
close()
Close the SCP81 Connection. |
void |
open(byte[] triggeringParameters,
short parameterOffset,
short parameterLength,
byte[] contentType,
short contentTypeOffset,
short contentTypeLength)
Request to open the SCP81 connection. |
void |
send(byte[] baData,
short sOffset,
short sLength)
Sends data on the SCP81 Connection. |
| Method Detail |
|---|
void open(byte[] triggeringParameters,
short parameterOffset,
short parameterLength,
byte[] contentType,
short contentTypeOffset,
short contentTypeLength)
throws ConnectionException
The associated (directly or indirectly) Security Domain of the calling application will handle the PSK TLS security of the communication.
The calling application will be notified once the connection is opened or once the setup failed. This method is non-blocking. Note:
SCP81ConnectionStatus event.
triggeringParameters - this buffer contains the administration session triggering parameters
as defined in table 4-3 of Amendment B of Global Platform Card Specification version 2.2. Tag '81' and
Length shall be present. Connection parameters defined in Tag '84' may be used if TCP/IP transport is
provided by the Bearer Independent Protocol of TS 102 223 [4]. Note: If a direct IP connection as specified in TS 102 483 [YY] is used these parameters will be ignored.parameterOffset - the starting offset of the parameters in the triggeringParameters byte arrayparameterLength - the length of the parameterscontentType - this buffer contains the Content-Type header value to be used
when sending an HTTP POST request through this connection.contentTypeOffset - the starting offset of the content-type in the contentType byte arraycontentTypeLength - the length of the content-type
ConnectionException - with the following reason code:
INVALID_STATE if the connection is already opened.
INVALID_PARAMETERS if the triggering parameters are not correct or if
the Content-Type header value defined in the parameters is reserved (for example for
RAM/RFM over HTTP or for SCWS remote administration).
SCP81_KEY_NOT_FOUNDif this requested SCP81 key could no be found
in the associated (directly or indirectly) Security Domain of the calling application. INVALID_HEADER_FIELDif Content-Type header field does not conform
with the rules defined in this specification. java.lang.ArrayIndexOutOfBoundsException - if parameterOffset and parameterLength are causing access
outside of triggeringParameters array bounds or
if contentTypeOffset and contentTypeLength are causing access
outside of contentType array bounds.
java.lang.NullPointerException - if triggeringParameters
or contentType are equal to null
void close()
throws ConnectionException
ConnectionException - with the following reason code:
INVALID_STATE if the connection is not open.
void send(byte[] baData,
short sOffset,
short sLength)
throws java.lang.ArrayIndexOutOfBoundsException,
ConnectionException,
java.lang.NullPointerException
Note: The applet execution is resumed once the HTTP POST request containing the data has been sent.
Note: The chunked transfer coding may be used if necessary.
baData - byte array containing the data to be sentsOffset - the starting offset of the data to be sent in the baData byte arraysLength - the length of the data to be sent
java.lang.ArrayIndexOutOfBoundsException - if sOffset and sLength are causing access
outside of baData array bounds
ConnectionException - with the following reason code:
INVALID_STATE if
java.lang.NullPointerException - if baData is equal to null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||