Loading src/uicc/connection/ConnectionException.java +3 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,9 @@ public class ConnectionException extends CardRuntimeException /** Reason code to indicate that invalid header fields set by application */ public final static short INVALID_HEADER_FIELD = (short) 12; /** Reason code to indicate that no SCP82 key could be found to establish the DTLS session: 13 */ public final static short SCP82_KEY_NOT_FOUND = (short) 13; /** * Construct a ConnectionException instance with the specified reason. To * conserve on resources use <code>throwIt()</code> method to re-use the Loading src/uicc/connection/ConnectionServer.java +19 −1 Original line number Diff line number Diff line Loading @@ -122,6 +122,7 @@ public class ConnectionServer * Returns an instance providing an SCP81 connection. * The returned object is a Permanent Entry Point Object. * * @deprecated * @param oObserver the Observer to be used for notifications about state changes * @return a <code>SCP81Connection</code> instance. * @throws ConnectionException with the following reason code: Loading @@ -130,7 +131,24 @@ public class ConnectionServer * </ul> * @throws NullPointerException if<code>oObserver</code> is equal to <code>null</code> */ public static SCP81Connection createSCP81Connection(Observer oOserver) throws NullPointerException,ConnectionException public static SCP81Connection createSCP81Connection(Observer oObserver) throws NullPointerException,ConnectionException { return null; } /** * Returns an instance providing an SCP8X connection. * The returned object is a Permanent Entry Point Object. * * @param oObserver the Observer to be used for notifications about state changes * @return a <code>SCP8XConnection</code> instance. * @throws ConnectionException with the following reason code: * <ul> * <li><code>TRANSPORT_PROTOCOL_NOT_SUPPORTED</code> if this type of connection is not supported. </li> * </ul> * @throws NullPointerException if<code>oObserver</code> is equal to <code>null</code> */ public static SCP8XConnection createSCP8XConnection(Observer oObserver) throws NullPointerException,ConnectionException { return null; } Loading src/uicc/connection/DataReceived.java +3 −1 Original line number Diff line number Diff line Loading @@ -13,12 +13,14 @@ public interface DataReceived extends Event /** * Returns the amount of data received, or -1 if data length is unknown (chunked transfer encoding is used), * or 0 if all received data have been read or discarded by the <code>Observer</code>. * * @return data length received or 0 if all data have been received or -1 if data length is unknown */ public int getReceivedDataLength(); /** * Copy the received data in a buffer. Data are handled as a stream, and are received upon applet request. * It is not possible to move backward in the data by using the <code>srcOffset>/code> parameter. * It is not possible to move backward in the data by using the <code>srcOffset</code> parameter. * This is a non-blocking methid. * * @param srcOffset the offset of the first byte to copy in the received data Loading src/uicc/connection/SCP81Connection.java +5 −3 Original line number Diff line number Diff line Loading @@ -8,7 +8,10 @@ package uicc.connection; * Objects implementing <code>SCP81Connection</code>interface and returned by the * <code>ConnectionServer.getConnection</code> method are <b>Permanent Entry Point Objects</b>. * * @deprecated This interface is obsolete use SCP8XConnection instead * */ @Deprecated public interface SCP81Connection extends Observable { /** * Request to open the SCP81 connection. Loading @@ -19,12 +22,11 @@ public interface SCP81Connection extends Observable { * * Note: * <ul> * <li><em>On invocation of this method, the Security Domain shall register this request. * <li><em>On invocation of this method, the Security Domain shall register this request.</em> * Once resources are available, the RTE/OPEN tries to open the connection, manage * the underlying protocol layers and performs the TLS handshake. The observer is then notified with * the </em><code>SCP81ConnectionStatus</code><em> event. * the <code>SCP81ConnectionStatus</code> event. * </ul> * <p> * * @param 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 Loading src/uicc/connection/SCP81ConnectionStatus.java +3 −1 Original line number Diff line number Diff line Loading @@ -9,8 +9,10 @@ package uicc.connection; * communication error (corresponds to unexpected communication breakdown) * server switch to other application (corresponds to server selecting another application via Content-Type header field) * The object implementing <code>SCP81ConnectionStatus</code> interface is a <b>Temporary Entry Point Object</b>. * * * @deprecated This interface is obsolete use SCP8XConnectionStatus instead */ @Deprecated public interface SCP81ConnectionStatus extends Event { /** This constant is used if the connection was successfully opened.. */ Loading Loading
src/uicc/connection/ConnectionException.java +3 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,9 @@ public class ConnectionException extends CardRuntimeException /** Reason code to indicate that invalid header fields set by application */ public final static short INVALID_HEADER_FIELD = (short) 12; /** Reason code to indicate that no SCP82 key could be found to establish the DTLS session: 13 */ public final static short SCP82_KEY_NOT_FOUND = (short) 13; /** * Construct a ConnectionException instance with the specified reason. To * conserve on resources use <code>throwIt()</code> method to re-use the Loading
src/uicc/connection/ConnectionServer.java +19 −1 Original line number Diff line number Diff line Loading @@ -122,6 +122,7 @@ public class ConnectionServer * Returns an instance providing an SCP81 connection. * The returned object is a Permanent Entry Point Object. * * @deprecated * @param oObserver the Observer to be used for notifications about state changes * @return a <code>SCP81Connection</code> instance. * @throws ConnectionException with the following reason code: Loading @@ -130,7 +131,24 @@ public class ConnectionServer * </ul> * @throws NullPointerException if<code>oObserver</code> is equal to <code>null</code> */ public static SCP81Connection createSCP81Connection(Observer oOserver) throws NullPointerException,ConnectionException public static SCP81Connection createSCP81Connection(Observer oObserver) throws NullPointerException,ConnectionException { return null; } /** * Returns an instance providing an SCP8X connection. * The returned object is a Permanent Entry Point Object. * * @param oObserver the Observer to be used for notifications about state changes * @return a <code>SCP8XConnection</code> instance. * @throws ConnectionException with the following reason code: * <ul> * <li><code>TRANSPORT_PROTOCOL_NOT_SUPPORTED</code> if this type of connection is not supported. </li> * </ul> * @throws NullPointerException if<code>oObserver</code> is equal to <code>null</code> */ public static SCP8XConnection createSCP8XConnection(Observer oObserver) throws NullPointerException,ConnectionException { return null; } Loading
src/uicc/connection/DataReceived.java +3 −1 Original line number Diff line number Diff line Loading @@ -13,12 +13,14 @@ public interface DataReceived extends Event /** * Returns the amount of data received, or -1 if data length is unknown (chunked transfer encoding is used), * or 0 if all received data have been read or discarded by the <code>Observer</code>. * * @return data length received or 0 if all data have been received or -1 if data length is unknown */ public int getReceivedDataLength(); /** * Copy the received data in a buffer. Data are handled as a stream, and are received upon applet request. * It is not possible to move backward in the data by using the <code>srcOffset>/code> parameter. * It is not possible to move backward in the data by using the <code>srcOffset</code> parameter. * This is a non-blocking methid. * * @param srcOffset the offset of the first byte to copy in the received data Loading
src/uicc/connection/SCP81Connection.java +5 −3 Original line number Diff line number Diff line Loading @@ -8,7 +8,10 @@ package uicc.connection; * Objects implementing <code>SCP81Connection</code>interface and returned by the * <code>ConnectionServer.getConnection</code> method are <b>Permanent Entry Point Objects</b>. * * @deprecated This interface is obsolete use SCP8XConnection instead * */ @Deprecated public interface SCP81Connection extends Observable { /** * Request to open the SCP81 connection. Loading @@ -19,12 +22,11 @@ public interface SCP81Connection extends Observable { * * Note: * <ul> * <li><em>On invocation of this method, the Security Domain shall register this request. * <li><em>On invocation of this method, the Security Domain shall register this request.</em> * Once resources are available, the RTE/OPEN tries to open the connection, manage * the underlying protocol layers and performs the TLS handshake. The observer is then notified with * the </em><code>SCP81ConnectionStatus</code><em> event. * the <code>SCP81ConnectionStatus</code> event. * </ul> * <p> * * @param 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 Loading
src/uicc/connection/SCP81ConnectionStatus.java +3 −1 Original line number Diff line number Diff line Loading @@ -9,8 +9,10 @@ package uicc.connection; * communication error (corresponds to unexpected communication breakdown) * server switch to other application (corresponds to server selecting another application via Content-Type header field) * The object implementing <code>SCP81ConnectionStatus</code> interface is a <b>Temporary Entry Point Object</b>. * * * @deprecated This interface is obsolete use SCP8XConnectionStatus instead */ @Deprecated public interface SCP81ConnectionStatus extends Event { /** This constant is used if the connection was successfully opened.. */ Loading