jcrespec03appletlife.html

来自「JAVA CARD 开发包规格说明,版本为2.2.2」· HTML 代码 · 共 215 行 · 第 1/2 页

HTML
215
字号
<P CLASS="Paragraph"><A NAME="pgfId-418315"></A>This method is defined in the <KBD CLASS="Filename-Command">javacard.framework.AppletEvent</KBD> interface. When the Java Card RE is preparing to delete the applet instance, the Java Card RE calls this method, if implemented by the applet, to inform it of the deletion request. Upon return from this method, the Java Card RE checks for reference dependencies before deleting the applet instance.</P><P CLASS="Paragraph"><A NAME="pgfId-418313"></A>This method may be called multiple times, once for each applet deletion attempt.</P><H2 CLASS="Head1"><A NAME="pgfId-406271"></A><DIV><HR ALIGN=left SIZE=6 WIDTH=15% noshade></DIV>3.6	<A NAME="marker-415300"></A>Power Loss and Reset</H2><P CLASS="Paragraph"><A NAME="pgfId-406273"></A>Power loss occurs under one of the following conditions:</P><UL><LI CLASS="Bullet1"><A NAME="pgfId-419905"></A>The card is withdrawn from the CAD.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-419906"></A>When operating in contactless-only mode, the card loses carrier energy from the radio frequency (RF) field and enters the POWER OFF state as defined in the <EM CLASS="Emphasis">ISO 14443 Specification</EM> Parts 1-4.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-419908"></A>When operating in contactless-only mode, the card receives a Supervisory block (S-block) DESELECT command and enters the HALT state as defined in the <EM CLASS="Emphasis">ISO 14443 Specification</EM> Parts 1-4.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-419910"></A>A mechanical or electrical failure occurs on the card.</LI><P CLASS="Linebreak"></P></UL><P CLASS="Paragraph"><A NAME="pgfId-419912"></A>When power is reapplied to the card and on card reset (warm or cold) the Java Card RE shall ensure that:</P><UL><LI CLASS="Bullet1"><A NAME="pgfId-406275"></A>Transient data is reset to the default value.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-406277"></A>The transaction in progress, if any, when power was lost (or reset occurred) is aborted.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-412482"></A>All applet instances that were active when power was lost (or reset occurred) become implicitly deselected. In this case the <KBD CLASS="Filename-Command">deselect</KBD> method is not called.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1-"><A NAME="pgfId-419815"></A>If the Java Card RE implements default applet selection (see <A HREF="JCRESpec04selection.html#52464" CLASS="XRef">Section 4.1, Default Applets</A>), the default applet is selected as the active applet instance for the basic logical channel (channel 0), and the default applet's <KBD CLASS="Filename-Command">select</KBD> method is called. Otherwise, the Java Card RE sets its state to indicate that no applet is active on the basic logical channel.</LI><P CLASS="Linebreak"></P></UL><H3 CLASS="Head2"><A NAME="pgfId-419818"></A>3.6.1	<A NAME="14434"></A>Concurrent Operations Over Multiple Interfaces</H3><P CLASS="Paragraph"><A NAME="pgfId-419819"></A>A Java Card technology compliant proximity contactless card operates in the ACTIVE state and processes commands defined in the <EM CLASS="Emphasis">ISO 14443 Specification</EM> Parts 1-4.</P><P CLASS="Paragraph"><A NAME="pgfId-419573"></A>The Supervisory block (S-block) DESELECT command results in the proximity card entering the HALT state.</P><P CLASS="Paragraph"><A NAME="pgfId-419834"></A>A loss of RF field results in the proximity card entering the POWER OFF state.</P><P CLASS="Paragraph"><A NAME="pgfId-419826"></A>On a card which is concurrently operating over both the contacted as well as the contactless I/O interfaces, prior to entering the HALT state or POWER OFF state, the Java Card RE must ensure the following:</P><UL><LI CLASS="Bullet1"><A NAME="pgfId-419772"></A>The transaction in progress in the currently selected applet instance executing on a logical channel on the contactless I/O interface, if any, when the S-block DESELECT command is received, or when the loss of RF field occurs, is aborted.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1"><A NAME="pgfId-419574"></A>Each applet instance that was active on a logical channel over the contactless I/O interface when the S-block DESELECT command is received, or when the loss of RF field occurs, becomes implicitly deselected. In this case the <KBD CLASS="Filename-Command">deselect</KBD> method is not called.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1"><A NAME="pgfId-419602"></A>All the logical channels open on the contactless I/O interface are implicitly closed.</LI><P CLASS="Linebreak"></P><LI CLASS="Bullet1"><A NAME="pgfId-419603"></A>Transient data associated with each applet instance that was active on a logical channel over the contactless I/O interface and that does not have an applet instance from the same package active on any logical channel over the contacted I/O interface when the S-block DESELECT command is received, or when the loss of RF field occurs, is reset to the default value.</LI><P CLASS="Linebreak"></P></UL><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-419958"></A>To establish a card session over both contacted and contactless interfaces concurrently, the CAD must initiate the contacted session first. A power loss or card reset on the contacted interface results in a card tear and card reset event even if a contactless session is in progress. An RF signal loss on the contactless interface must not affect an ongoing contacted session.</P></TD></TR></TABLE><HR NOSHADE SIZE=1><BR><div class="navbar" align="center"><br><br><table dir="LTR" summary="Navigation bar, includes the book title and navigation buttons" width=100% cellpadding="0" cellspacing="0" border="0"><colgroup span="3" width="100%"><col id="1" span="1" width="45%"><col id="2" span="1" width="25%"><col id="3" span="1" width="30%"><tr bgcolor="#cccccc"><td class="navbartitle" align=left rowspan="1" colspan="1" abbr="ChapTitle">&nbsp;&nbsp;Runtime Environment Specification for the Java Card Platform, Version 2.2.2</td><td class="navbartitle" align=right rowspan="1" colspan="1" abbr="PartNum">3-8-06</td><td valign="top" align="right" rowspan="1" colspan="1" abbr="NavButtons"><a href="index.html"><img src="shared/toc01.gif" title="Table Of Contents" alt="Table Of Contents" width="30" height="26" border="0"></a><a href="JCRESpec02vmlife.html"><img src="shared/prev01.gif" title="Previous Chapter" alt="Previous Chapter" width="30" height="26" border="0"></a><a href="JCRESpec04selection.html"><img src="shared/next01.gif" title="Next Chapter" alt="Next Chapter" width="30" height="26" border="0"></a><a href="ix.html"><img src="shared/index01.gif" title="Book Index" alt="Book Index" width="30" height="26" border="0"></a></td></tr></table><br><br></div><P CLASS="copyrightlink"><a href="copyright.html">Copyright</a> &#169; 2005, Sun Microsystems, Inc.   All Rights Reserved.</P></BODY></HTML>

⌨️ 快捷键说明

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