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

📄 195-197.html

📁 Smart Card Developer s Kit, a smart card manual for development, English
💻 HTML
字号:
<!-- Edit EirGrabber 3.01 -->
<HTML>
<HEAD>
<TITLE>Smart Card Developer's Kit:Card-Side Application Programming Interfaces</TITLE>



<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="191-195.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="197-198.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P>This function compares the <TT><I>key_length</I></TT> bytes in <TT><I>key</I>[]</TT> with the <TT><I>key_number</I></TT> key in the key file associated with the current file and returns success or failure. After a number of failures set when the key was created, the key becomes blocked and cannot be unblocked.</P>
<PRE>
SetFileACL(byte <I>file_ACL</I>[])
</PRE>
<P>This function sets the access control list on the current file.
</P>
<PRE>
GetFileACL(byte <I>file_ACL</I>[])
</PRE>
<P>This function returns the access control list of the current file.
</P>
<PRE>
CheckAccess(byte <I>operation</I>)
</PRE>
<P>This function checks whether the file operation is currently allowed on the current file. Returns success or failure.
</P>
<P><FONT SIZE="+1"><B>Utilities</B></FONT></P>
<P>The following are some examples of the 13 utility functions on the Cyberflex 1.0 API.
</P>
<PRE>
GetFileSize()
</PRE>
<P>This function returns the size, in bytes, of the current file.
</P>
<PRE>
SetDefaultATR(byte <I>buffer</I>[], byte <I>length</I>)
</PRE>
<P>This function sets the default ATR to be the first <TT><I>length</I></TT> bytes in <TT><I>buffer</I></TT>.</P>
<PRE>
SendATR()
</PRE>
<P>This function sends the default ATR to the terminal.
</P>
<PRE>
Execute(short <I>fileId</I>, byte <I>mode</I>)
</PRE>
<P>This function terminates execution of the current Java program and begins execution of the Java program in the file <TT><I>fileId</I></TT>. The mode byte says whether the card&#146;s state (global variables) is initialized.</P>
<H4 ALIGN="LEFT"><A NAME="Heading22"></A><FONT COLOR="#000077">The JavaSoft Java Card 2.0 API</FONT></H4>
<P>There are 113 effective functions on the JavaSoft Java Card 2.0 API, organized into 3 families and 17 classes. The classes with their corresponding function counts are
</P>
<DL>
<DD><B>&#149;</B>&nbsp;&nbsp;<TT>APPLICATION SERVICES</TT>&#151;61 functions
<DL>
<DD><TT>javacard.framework.APDU</TT>&#151;10 functions
<DD><TT>javacard.framework.PIN</TT>&#151;5 functions
<DD><TT>javacardx.framework.File</TT>&#151;46 functions
</DL>
<DD><B>&#149;</B>&nbsp;&nbsp;<TT>CRYPTOGRAPHY</TT>&#151;32 functions
<DL>
<DD><TT>javacardx.crypto.AsymKey</TT>&#151;2 functions
<DD><TT>javacardx.crypto.DES_CBC_Key</TT>&#151;6 functions
<DD><TT>javacardx.crypto.DES_Key</TT>&#151;2 functions
<DD><TT>javacardx.crypto.RSA_CRT_Key</TT>&#151;6 functions
<DD><TT>javacardx.crypto.RSA_Key</TT>&#151;5 functions
<DD><TT>javacardx.crypto.Key</TT>&#151;3 functions
<DD><TT>javacardx.crypto.MessageDigest</TT>&#151;1 function
<DD><TT>javacardx.crypto.RandomData</TT>&#151;2 functions
<DD><TT>javacardx.crypto.Sha1MessageDigest</TT>&#151;1 function
<DD><TT>javacardx.crypto.SymKey</TT>&#151;4 functions
</DL>
<DD><B>&#149;</B>&nbsp;&nbsp;<TT>APPLICATION FRAMEWORK</TT>&#151;20 functions
<DL>
<DD><TT>javacard.framework.AID</TT>&#151;3 functions
<DD><TT>javacard.framework.Applet</TT>&#151;3 functions
<DD><TT>javacard.framework.System</TT>&#151;12 functions
<DD><TT>javacard.framework.Util</TT>&#151;2 functions
</DL>
</DL>
<P>JavaSoft&#146;s Java Card application framework encompasses the loading (onto the card) and execution environment of Java applications destined for a smart card. Each applet is registered with the system when it is loaded onto the card. The framework handles all message traffic between the card and the terminal and calls the application that has been selected by the terminal. The JavaSoft framework is also very similar to the EMV framework, except that the JavaSoft framework handles in card-side code what the EMV framework handles simply by specification and convention.
</P>
<P>The Java Card&#146;s cryptography interface does not appear to be derived from any known cryptographic API specification, and its compatibility with the Java cryptographic API provided to workstation Java has yet to be defined in detail.</P>
<P>The file interface of Java Card version 2.0 uses 46 functions to deliver much the same functionality as the 11 file interface functions of ISO 7816-4 along with enhanced functionality in other areas.</P>
<H3><A NAME="Heading23"></A><FONT COLOR="#000077">Summary</FONT></H3>
<P>When the Intel 8080 was introduced in early 1974, it was designed to be used as a traffic light controller. By the end of 1974, Ed Roberts had noticed that the 8080 had a perfectly general instruction set and introduced the first &#147;home&#148; computer, the MITS Altair. The Altair 8800 had 256 bytes of RAM and an optional 256 bytes of PROM. Later versions ran a virtual machine called Tiny Basic written by a young programmer by the name of Bill Gates.
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="191-195.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="197-198.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>



</BODY></HTML>

⌨️ 快捷键说明

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