📄 aid.html
字号:
<DT><B>Parameters:</B><DD><CODE>bArray</CODE> - the byte array containing the AID bytes<DD><CODE>offset</CODE> - the start of AID bytes in bArray<DD><CODE>length</CODE> - the length of the AID bytes in bArray<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>bArray</CODE> array is not accessible in the caller's context<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>length</code> parameter is less than <code>5</code> or greater than <code>16</code> </ul><DD><CODE><A HREF="../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if the <CODE>bArray</CODE> parameter is <CODE>null</CODE><DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the <CODE>offset</CODE> parameter or <CODE>length</CODE> parameter is negative or if <CODE>offset+length</CODE> is greater than the length of the <CODE>bArray</CODE> parameter</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getBytes(byte[], short)"><!-- --></A><H3>getBytes</H3><PRE>public final byte <B>getBytes</B>(byte[] dest, short offset) throws <A HREF="../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A>, <A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A>, <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Called to get all the AID bytes encapsulated within <code>AID</code> object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dest</CODE> - byte array to copy the AID bytes<DD><CODE>offset</CODE> - within dest where the AID bytes begin<DT><B>Returns:</B><DD>the length of the AID bytes<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>dest</CODE> array is not accessible in the caller's context<DD><CODE><A HREF="../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if the <CODE>dest</CODE> parameter is <CODE>null</CODE><DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the <CODE>offset</CODE> parameter is negative or <CODE>offset+</CODE>length of AID bytes is greater than the length of the <CODE>dest</CODE> array</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</B>(<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A> anObject) throws <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Compares the AID bytes in <code>this</code> <code>AID</code> instance to the AID bytes in the specified object. The result is <code>true</code> if and only if the argument is not <code>null</code> and is an <code>AID</code> object that encapsulates the same AID bytes as <code>this</code> object. <p>This method does not throw <code>NullPointerException</code>.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anObject</CODE> - the object to compare <code>this</code> <code>AID</code> against<DT><B>Returns:</B><DD><code>true</code> if the AID byte values are equal, <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if <CODE>anObject</CODE> object is not accessible in the caller's context</DL></DD></DL><HR><A NAME="equals(byte[], short, byte)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</B>(byte[] bArray, short offset, byte length) throws <A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A>, <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Checks if the specified AID bytes in <code>bArray</code> are the same as those encapsulated in <code>this</code> <code>AID</code> object. The result is <code>true</code> if and only if the <code>bArray</code> argument is not <code>null</code> and the AID bytes encapsulated in <code>this</code> <code>AID</code> object are equal to the specified AID bytes in <code>bArray</code>. <p>This method does not throw <code>NullPointerException</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bArray</CODE> - containing the AID bytes<DD><CODE>offset</CODE> - within bArray to begin<DD><CODE>length</CODE> - of AID bytes in bArray<DT><B>Returns:</B><DD><code>true</code> if equal, <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>bArray</CODE> array is not accessible in the caller's context<DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the <CODE>offset</CODE> parameter or <CODE>length</CODE> parameter is negative or if <CODE>offset+length</CODE> is greater than the length of the <CODE>bArray</CODE> parameter</DL></DD></DL><HR><A NAME="partialEquals(byte[], short, byte)"><!-- --></A><H3>partialEquals</H3><PRE>public final boolean <B>partialEquals</B>(byte[] bArray, short offset, byte length) throws <A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A>, <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Checks if the specified partial AID byte sequence matches the first <code>length</code> bytes of the encapsulated AID bytes within <code>this</code> <code>AID</code> object. The result is <code>true</code> if and only if the <code>bArray</code> argument is not <code>null</code> and the input <code>length</code> is less than or equal to the length of the encapsulated AID bytes within <code>this</code> <code>AID</code> object and the specified bytes match. <p>This method does not throw <code>NullPointerException</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bArray</CODE> - containing the partial AID byte sequence<DD><CODE>offset</CODE> - within bArray to begin<DD><CODE>length</CODE> - of partial AID bytes in bArray<DT><B>Returns:</B><DD><code>true</code> if equal, <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>bArray</CODE> array is not accessible in the caller's context<DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the <CODE>offset</CODE> parameter or <CODE>length</CODE> parameter is negative or if <CODE>offset+length</CODE> is greater than the length of the <CODE>bArray</CODE> parameter</DL></DD></DL><HR><A NAME="RIDEquals(javacard.framework.AID)"><!-- --></A><H3>RIDEquals</H3><PRE>public final boolean <B>RIDEquals</B>(<A HREF="../../javacard/framework/AID.html" title="class in javacard.framework">AID</A> otherAID) throws <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Checks if the RID (National Registered Application provider identifier) portion of the encapsulated AID bytes within the <code>otherAID</code> object matches that of <code>this</code> <code>AID</code> object. The first 5 bytes of an AID byte sequence is the RID. See ISO 7816-5 for details. The result is <code>true</code> if and only if the argument is not <code>null</code> and is an <code>AID</code> object that encapsulates the same RID bytes as <code>this</code> object. <p>This method does not throw <code>NullPointerException</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>otherAID</CODE> - the <code>AID</code> to compare against<DT><B>Returns:</B><DD><code>true</code> if the RID bytes match, <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>otherAID</CODE> object is not accessible in the caller's context</DL></DD></DL><HR><A NAME="getPartialBytes(short, byte[], short, byte)"><!-- --></A><H3>getPartialBytes</H3><PRE>public final byte <B>getPartialBytes</B>(short aidOffset, byte[] dest, short oOffset, byte oLength) throws <A HREF="../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A>, <A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A>, <A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></PRE><DL><DD>Called to get part of the AID bytes encapsulated within the <code>AID</code> object starting at the specified offset for the specified length.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>aidOffset</CODE> - offset within AID array to begin copying bytes<DD><CODE>dest</CODE> - the destination byte array to copy the AID bytes into<DD><CODE>oOffset</CODE> - offset within dest where the output bytes begin<DD><CODE>oLength</CODE> - the length of bytes requested in <code>dest</code>. <code>0</code> implies a request to copy all remaining AID bytes.<DT><B>Returns:</B><DD>the actual length of the bytes returned in <code>dest</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</A></CODE> - if the <CODE>dest</CODE> array is not accessible in the caller's context<DD><CODE><A HREF="../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if the <CODE>dest</CODE> parameter is <CODE>null</CODE><DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the <code>aidOffset</code> parameter is negative or greater than the length of the encapsulated AID bytes or the <CODE>oOffset</CODE> parameter is negative or <CODE>oOffset+length</CODE> of bytes requested is greater than the length of the <CODE>dest</CODE> array</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AID.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> PREV CLASS <A HREF="../../javacard/framework/APDU.html" title="class in javacard.framework"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javacard/framework/AID.html" target="_top"><B>FRAMES</B></A> <A HREF="AID.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 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 + -