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

📄 applet.html

📁 JAVA CARD 开发包规格说明,版本为2.2.2
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 The implementation of this method provided by <code>Applet</code> class returns <code>true</code>.<p><P><DD><DL><DT><B>Returns:</B><DD><code>true</code> to indicate success, <code>false</code> otherwise</DL></DD></DL><HR><A NAME="deselect()"><!-- --></A><H3>deselect</H3><PRE>public void <B>deselect</B>()</PRE><DL><DD>Called by the Java Card runtime environment to inform that this currently selected applet is being deselected on this logical channel and no applet from the same package is still active on any other logical channel. After deselection, this logical channel will be closed or another applet  (or the same applet) will be selected on this logical channel. It is called when a SELECT APDU command or a MANAGE CHANNEL CLOSE APDU command is received by the Java Card runtime environment. This method is invoked prior to another applet's or this very applet's <code>select()</code> method being invoked. <p> A subclass of <code>Applet</code> should override this method if it has any cleanup or bookkeeping work to be performed before another applet is selected. <p> The default implementation of this method provided by <code>Applet</code> class does nothing.<p> Notes:<ul> <li><em>The <CODE>javacard.framework.MultiSelectable.deselect(</CODE>) method is not called if this method is invoked.</em> <li><em>Unchecked exceptions thrown by this method are caught by the Java Card runtime environment but the applet is deselected.</em> <li><em>Transient objects of </em><code>JCSystem.CLEAR_ON_DESELECT</code><em> clear event type  are cleared to their default value by the Java Card runtime environment after this method.</em> <li><em>This method is NOT called on reset or power loss.</em> </ul><P><DD><DL></DL></DD></DL><HR><A NAME="getShareableInterfaceObject(javacard.framework.AID, byte)"><!-- --></A><H3>getShareableInterfaceObject</H3><PRE>public <A HREF="../../javacard/framework/Shareable.html" title="interface in javacard.framework">Shareable</A> <B>getShareableInterfaceObject</B>(<A HREF="../../javacard/framework/AID.html" title="class in javacard.framework">AID</A>&nbsp;clientAID,                                             byte&nbsp;parameter)</PRE><DL><DD>Called by the Java Card runtime environment to obtain a shareable interface object from this server applet, on behalf of a request from a client applet. This method executes in the applet context of <code>this</code> applet instance. The client applet initiated this request by calling the <code>JCSystem.getAppletShareableInterfaceObject()</code> method. See <em>Runtime Environment Specification for the Java Card Platform</em>, section 6.2.4 for details. <p>Note:<ul> <li><em>The </em><code>clientAID</code><em> parameter is a Java Card runtime environment-owned </em><code>AID</code><em> instance. Java Card runtime environment-owned instances of <code>AID</code> are permanent Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these permanent objects can be stored and re-used.</em> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>clientAID</CODE> - the <code>AID</code> object of the client applet<DD><CODE>parameter</CODE> - optional parameter byte. The parameter byte may be used by the client to specify which shareable interface object is being requested.<DT><B>Returns:</B><DD>the shareable interface object or <code>null</code><DT><B>See Also:</B><DD><A HREF="../../javacard/framework/JCSystem.html#getAppletShareableInterfaceObject(javacard.framework.AID, byte)"><CODE>JCSystem.getAppletShareableInterfaceObject(AID, byte)</CODE></A></DL></DD></DL><HR><A NAME="register()"><!-- --></A><H3>register</H3><PRE>protected final void <B>register</B>()                       throws <A HREF="../../javacard/framework/SystemException.html" title="class in javacard.framework">SystemException</A></PRE><DL><DD>This method is used by the applet to register <code>this</code> applet instance with the Java Card runtime environment and to assign the Java Card platform name of the applet as its instance AID bytes.  One of the <code>register()</code> methods must be called from within <code>install()</code> to be registered with the Java Card runtime environment. See <em>Runtime Environment Specification for the Java Card Platform</em>, section 3.1 for details. <p>Note:<ul> <li><em>The phrase "Java Card platform name of the applet" is a reference to the </em><code>AID[AID_length]</code><em> item in the </em><code>applets[]</code><em> item of the </em><code>applet_component</code><em>, as documented in Section 6.5 Applet Component in the Virtual Machine Specification for the Java Card Platform.</em> </ul><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javacard/framework/SystemException.html" title="class in javacard.framework">SystemException</A></CODE> - with the following reason codes:<ul> <li><code>SystemException.ILLEGAL_AID</code> if the <code>Applet</code> subclass AID bytes are in use or if the applet instance has previously successfully registered with the Java Card runtime environment via one of the <code>register()</code> methods or if a Java Card runtime environment initiated <code>install()</code> method execution is not in progress. </ul></DL></DD></DL><HR><A NAME="register(byte[], short, byte)"><!-- --></A><H3>register</H3><PRE>protected final void <B>register</B>(byte[]&nbsp;bArray,                              short&nbsp;bOffset,                              byte&nbsp;bLength)                       throws <A HREF="../../javacard/framework/SystemException.html" title="class in javacard.framework">SystemException</A></PRE><DL><DD>This method is used by the applet to register <code>this</code> applet instance with the Java Card runtime environment and assign the specified AID bytes as its instance AID bytes. One of the <code>register()</code> methods must be called from within <code>install()</code> to be registered with the Java Card runtime environment. See <em>Runtime Environment Specification for the Java Card Platform</em>, section 3.1 for details. <p>Note:<ul> <li><em>The implementation may require that the instance AID bytes specified are the same as that supplied in the install parameter data. An ILLEGAL_AID exception may be thrown otherwise.</em>  </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>bArray</CODE> - the byte array containing the AID bytes<DD><CODE>bOffset</CODE> - the start of AID bytes in bArray<DD><CODE>bLength</CODE> - the length of the AID bytes in bArray<DT><B>Throws:</B><DD><CODE><A HREF="../../javacard/framework/SystemException.html" title="class in javacard.framework">SystemException</A></CODE> - with the following reason code:<ul> <li><code>SystemException.ILLEGAL_VALUE</code> if the <code>bLength</code> parameter is less than <code>5</code> or greater than <code>16</code>. <li><code>SystemException.ILLEGAL_AID</code> if the specified instance AID bytes are in use or if the applet instance has previously successfully registered with the Java Card runtime environment via one of the <code>register()</code> methods or if a Java Card runtime environment-initiated <code>install()</code> method execution is not in progress. </ul><DT><B>See Also:</B><DD><A HREF="../../javacard/framework/Applet.html#install(byte[], short, byte)"><CODE>install(byte[],short,byte)</CODE></A></DL></DD></DL><HR><A NAME="selectingApplet()"><!-- --></A><H3>selectingApplet</H3><PRE>protected final boolean <B>selectingApplet</B>()</PRE><DL><DD>This method is used by the applet <code>process()</code> method to distinguish the SELECT APDU command which selected <code>this</code> applet, from all other SELECT APDU commands which may relate to file or internal applet state selection.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if <code>this</code> applet is being selected</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Applet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java Card </b><br><font size="-1">v2.2.2</font></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javacard/framework/APDUException.html" title="class in javacard.framework"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javacard/framework/AppletEvent.html" title="interface in javacard.framework"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?javacard/framework/Applet.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Applet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &#169; 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,<br>Santa Clara, CA, 95054, U.S.A.  All Rights Reserved.</i></BODY></HTML>

⌨️ 快捷键说明

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