⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jcrespec08rmi.html

📁 JAVA CARD 开发包规格说明,版本为2.2.2
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TABLE CLASS="Code" BORDER=1 BORDERCOLORLIGHT="#FFFFFF" BORDERCOLORDARK="#000000" CELLPADDING=5 CELLSPACING=0 DIR="LTR"><TBODY><TR><TD SCOPE="ROW"><PRE CLASS="ScreenText"><A NAME="pgfId-429846"></A>exception_subclass_response {</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429848"></A>      u1 exception_subclass_tag = 0x83</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429850"></A>      u1 exception_type</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429852"></A>      s2 reason</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429854"></A>    }</PRE></TD></TR></TBODY></TABLE><BR></DIV><H4 CLASS="Head3"><A NAME="pgfId-412742"></A>8.3.5.3	<A NAME="47978"></A>Error<A NAME="marker-420194"></A> Response Encoding</H4><P CLASS="Paragraph"><A NAME="pgfId-429930"></A>The following encoding represents an error condition on the card. The error may occur due to marshalling, unmarshalling or resource-related problems.</P><DIV CLASS="Code"><BR><TABLE CLASS="Code" BORDER=1 BORDERCOLORLIGHT="#FFFFFF" BORDERCOLORDARK="#000000" CELLPADDING=5 CELLSPACING=0 DIR="LTR"><TBODY><TR><TD SCOPE="ROW"><PRE CLASS="ScreenText"><A NAME="pgfId-429933"></A>error_response {</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429935"></A>      u1 error_tag = 0x99</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429937"></A>      s2 error_detail</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-429939"></A>    }</PRE></TD></TR></TBODY></TABLE><BR></DIV><P CLASS="Paragraph"><A NAME="pgfId-427468"></A>Following are the values of the <KBD CLASS="Filename-Command">error_detail</KBD> item:</P><UL><LI CLASS="Bullet1"><A NAME="pgfId-413368"></A>The Remote Object Identifier is invalid or ineligible for Java Card RMI<KBD CLASS="Filename-Command"> = 0x0001</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-413403"></A>The Remote Method could not be identified = <KBD CLASS="Filename-Command">0x0002</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-413372"></A>The Remote Method signature did not match the parameter format = <KBD CLASS="Filename-Command">0x0003</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-413374"></A>Insufficient resources available to unmarshall parameters = <KBD CLASS="Filename-Command">0x0004</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-413376"></A>Insufficient resources available to marshall response = <KBD CLASS="Filename-Command">0x0005</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-417539"></A>Java Card Remote Method Invocation protocol error = <KBD CLASS="Filename-Command">0x0006</KBD></LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-419296"></A>Internal Error occurred = <KBD CLASS="Filename-Command">0xFFFF</KBD></LI><P CLASS="Linebreak"></P></UL><H2 CLASS="Head1"><A NAME="pgfId-411450"></A><DIV><HR ALIGN=left SIZE=6 WIDTH=15% noshade></DIV>8.4	<A NAME="marker-420195"></A>APDU Command<A NAME="marker-420196"></A> Formats</H2><P CLASS="Paragraph"><A NAME="pgfId-411451"></A><A HREF="JCRESpec08rmi.html#63243" CLASS="XRef">Section 8.3, Data Formats</A> described the various elements included in the data portion of the Java Card RMI messages. This section describes the complete format of the APDU commands: the header as well as the data portion containing the message elements described earlier.</P><BR><HR NOSHADE SIZE=1><TABLE CLASS="TipNote" DIR="LTR" WIDTH="100%" SUMMARY="TipNote"><COLGROUP SPAN="1" WIDTH="100%"><TR ALIGN="left" VALIGN="top"><TD ROWSPAN="1" COLSPAN="1" ABBR="TipNoteText"><P CLASS="TipNote"><B CLASS="TipNote">Note - </B><A NAME="pgfId-428255"></A>Java Card RMI message protocol supports only the 1 byte encodings of the Lc and Le values of the APDU data length. </P></TD></TR></TABLE><HR NOSHADE SIZE=1><BR><H3 CLASS="Head2"><A NAME="pgfId-416432"></A>8.4.1	<A NAME="79682"></A>SELECT FILE <A NAME="marker-420197"></A>Command </H3><P CLASS="Paragraph"><A NAME="pgfId-427501"></A><A HREF="JCRESpec08rmi.html#96050" CLASS="XRef">TABLE 8-1</A> lists the formats required for the Select command for an RMI-based applet.</P><BR><HR NOSHADE SIZE=1><TABLE CLASS="TipNote" DIR="LTR" WIDTH="100%" SUMMARY="TipNote"><COLGROUP SPAN="1" WIDTH="100%"><TR ALIGN="left" VALIGN="top"><TD ROWSPAN="1" COLSPAN="1" ABBR="TipNoteText"><P CLASS="TipNote"><B CLASS="TipNote">Note - </B><A NAME="pgfId-428132"></A>(%b) indicates binary notation using bit numbering as in the ISO 7816 specification. The most significant bit is b8. The least significant bit is b1. An &quot;x&quot; notation represents a &quot;don't care&quot;.</P></TD></TR></TABLE><HR NOSHADE SIZE=1><BR><BR><TABLE CLASS="Titled" BORDER=1 BORDERCOLORLIGHT="#FFFFFF" BORDERCOLORDARK="#000000" CELLPADDING=5 CELLSPACING=0 DIR="LTR"><CAPTION CLASS="TableCaption"><A NAME="pgfId-428136"> </A> TABLE 8-1 	 <A NAME="96050"> </A> Select File Command </CAPTION><THEAD><TR><TH SCOPE="COL" ROWSPAN="1" COLSPAN="1" BGCOLOR="#CCCCCC"><P CLASS="TableHead"><A NAME="pgfId-428142"></A>Field</P></TH><TH SCOPE="COL" ROWSPAN="1" COLSPAN="1" BGCOLOR="#CCCCCC"><P CLASS="TableHead"><A NAME="pgfId-428144"></A>Value</P></TH><TH SCOPE="COL" ROWSPAN="1" COLSPAN="1" BGCOLOR="#CCCCCC"><P CLASS="TableHead"><A NAME="pgfId-428146"></A>Description</P></TH></TR></THEAD><TBODY><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428148"></A>CLA</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428150"></A><KBD CLASS="Filename-Command">%b000000cc</KBD></P><P CLASS="TableText"><A NAME="pgfId-428469"></A>or</P><P CLASS="TableText"><A NAME="pgfId-428471"></A>%b<KBD CLASS="Filename-Command">0100dddd</KBD></P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428152"></A>The <KBD CLASS="Filename-Command">cc</KBD> in bits (b2,b1) denote the origin logical channels number in the range 0-3.</P><P CLASS="TableText"><A NAME="pgfId-428461"></A>The <KBD CLASS="Filename-Command">dddd</KBD> in bits (b4-b1) denote the origin logical channel number 4-19 using <KBD CLASS="Filename-Command">0</KBD> origin notation.</P><P CLASS="TableText"><A NAME="pgfId-428528"></A>See <A HREF="JCRESpec04selection.html#59337" CLASS="XRef">TABLE 4-1</A> for CLA field encoding format.</P></TD></TR><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428154"></A>INS</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428156"></A>0xA4</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428158"></A>SELECT FILE</P></TD></TR><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428160"></A>P1</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428162"></A>0x04</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428164"></A>Select by AID</P></TD></TR><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428166"></A>P2</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428168"></A>%b000x00xx</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428170"></A>Return FCI information. The bits (b2,b1) are used for partial selection, if supported. If bit b5 is 1, the remote reference descriptor uses the <KBD CLASS="Filename-Command">remote_ref_with_interfaces</KBD> format, otherwise it uses the alternate <KBD CLASS="Filename-Command">remote_ref_with_class</KBD> format.</P></TD></TR><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428189"></A>Lc</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428191"></A><EM CLASS="Emphasis">Lc</EM></P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428193"></A>Length of the AID</P></TD></TR><TR><TD SCOPE="ROW" ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428183"></A>Data</P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428185"></A><EM CLASS="Emphasis">AID</EM></P></TD><TD ROWSPAN="1" COLSPAN="1"><P CLASS="TableText"><A NAME="pgfId-428187"></A>AID of the applet to be selected (between 5 and 16 bytes)</P></TD></TR></TBODY></TABLE><BR><P CLASS="Paragraph"><A NAME="pgfId-427512"></A>Following is the format of the response. Note that the applet may extend the format to include additional information, if necessary before sending the response back to the CAD. The additional information must retain the TLV format and must not introduce any additional information under the <KBD CLASS="Filename-Command">jc_rmi_data_tag</KBD>.</P><DIV CLASS="Code"><BR><TABLE CLASS="Code" BORDER=1 BORDERCOLORLIGHT="#FFFFFF" BORDERCOLORDARK="#000000" CELLPADDING=5 CELLSPACING=0 DIR="LTR"><TBODY><TR><TD SCOPE="ROW"><PRE CLASS="ScreenText"><A NAME="pgfId-430006"></A>select_response {</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-430008"></A>    u1 fci_tag = 0x6F</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-430010"></A>    u1 fci_length</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-430012"></A>        u1 application_data_tag = 0x6E</PRE><PRE CLASS="ScreenText"><A NAME="pgfId-430014"></A>        u1 application_data_length</PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -