Java Card¿ª·¢³£Óõİü£¨ÕûÀí£©
ÕûÀíÁËһϳ£Óõ½µÄJava¿¨¿ª·¢°üÀïµÄ·½·¨£¬ÒÔºó¾ÍÄܼӿ쿪·¢ËÙ¶ÈÁË¡£
//Java Card¿ª·¢·½·¨²éѯ
import java.lang.*;
import javacard.framework.*;
import javacard.security.*;
import javacardx.crypto.*; //¸Ã°üΪÀ©Õ¹°ü
//install·½·¨
public static void install(byte[] bArray, short offset, byte length)
{
new wallet().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
}
/************************************************************************************/
//½¨Á¢ÀàJCSystemÖеÄÁÙʱÊý×éµÄ·½·¨
/*ÿ¸ö·½·¨µ÷ÓÃÖеĵÚÒ»¸ö²ÎÊý length Ö¸³öËùÇëÇóµÄÁÙʱÊý×éµÄ³¤¶È¡£
µÚ¶þ¸ö²ÎÊý event Ö¸³öÄÄÖÖʼþÇå³ý¸Ã¶ÔÏó¡£Òò´Ë£¬·½·¨µ÷ÓÃÖ¸³öÁÙ
ʱÊý×éµÄÀàÐÍ£¬CLEAR_ON_RESET »òCLEAR_ON_DESELECT¡£
*/
//½¨Á¢Ò»¸öÁÙʱ²¼¶ûÊý×é
Public static boolean[] MakeTransientBooleanArray(short length,byte event);
//½¨Á¢Ò»¸öÁÙʱ×Ö½ÚÊý×é
Public static byte[] MakeTransientByteArray(short length,byte event);
//½¨Á¢Ò»¸öÁÙʱshortÊý×é
Public static short[] MakeTransientShortArray(short length,byte event)
//½¨Á¢Ò»¸öÁÙʱ¶ÔÏóÊý×é
Public static object[] MakeTransientObjectArray(short length,byte event)
/*
·½·¨ isTransient ·µ»ØÒ»¸öÁÙʱÀàÐͳ£Êý£¨CLEAR_ON_RESET »ò CLEAR_ON_DESELECT£©£¬
»òÕß·µ»Ø³£Êý JCSystem.NOT_A_TRANSIENT_OBJECT Ö¸³ö¸Ã¶ÔÏóÊÇ null »òÕßÊÇÒ»¸öÓÀ¾Ã¶ÔÏó
*/
public static byte isTransient(Object theObject);
/************************************************************************************/
//Ô×ÓÐÔ
/*
Util.arrayCopy·½·¨±£Ö¤ÒªÃ´ËùÓеÄ×Ö½Ú±»ÕýÈ·µØ¿½±´£¬ÒªÃ´Ä¿±êÊý×é±»»Ö¸´ÎªÆäÔÀ´µÄ×Ö½ÚÖµ¡£
Èç¹û¸ÃÄ¿±êÊý×éÊÇÁÙʱµÄ£¬¾Í²»¾ßÓÐÔ×ÓÌØÐÔ¡£
*/
public static short arrayCopy(byte[] src,short srcOff,byte[] dest,short desOff,short length);
//·½·¨arrayCopyNonAtomicÔÚ¿½±´²Ù×÷¹ý³ÌÖв»Ê¹ÓÃÊÂÎñÉèÊ©£¬¼´Ê¹Ò»¸öÊÂÎñÕýÔÚÖ´ÐÐÖ®ÖС£
public static short arrayCopyNonAtomic(byte[] src,short srcOff,byte[] dest,short desOff,short length);
//ÓÃÖ¸¶¨µÄÖµÌîÈëÒ»¸ö×Ö½ÚÊý×éµÄÖîÔªËØ£º
public static short arrayFillNonAtomic(byte[] bArray,short bOff,short bLen,byte bValue);
//ÊÂÎñµÄÌá½»
//¿ªÊ¼
Ïà¹ØÎĵµ£º
[ÒýÑÔ]
±¾ÎÄÖ÷Òª×ܽáÁËjavaÀàµÄlifetime¡£°üÀ¨´ÓÀàµÄ¼ÓÔØ£¬link£¬initialize£¬ÒÔÖÁ¶ÔÏóµÄʵÀý»¯ºÍÏú»Ù¡£²¢½áºÏjvm¹æ·¶£¬ÂÔ×÷½âÊÍ¡£
1.²âÊÔÓóÌÐò£º
2.³ÌÐòÊä³ö£º
[ÕýÎÄ]
Java¶ÔÏóµÄ´ÓÎÞµ½ÓÐÒª¾¹ýÀàµÄ¼ÓÔØ£¬Á´½Ó£¬³õʼ»¯ºÍ¶ÔÏóµÄʵÀý»¯Õ⼸¸ö¹ý³Ì¡£´Ó×ÜÌåÀ´ËµÀàµÄÉúÃüÖÜÆÚ´óÖ½«Æä·ÖΪÈý¸öpha ......
»·¾³JDK1.5
Eclipse 3.2
Ö±½ÓÉÏ´úÂ룺Èç¹ûûÓÐÅäÖúû·¾³Çë²Î¿´Ç°Á½ÆªÈÕÖ¾
·þÎñÆ÷¶Ë´úÂë
UserÀࣺ
/*
*Class User.java
*Create Date: 2009-11-4
*Author:a276202460
*/
package com.axis.pojo.test;
public class User implements java.io.Serializable{
public boolean equals(Object obj) {
if (obj == ......
JavaµÄ¿½±´·ÖΪÉ±´ºÍdz¿½±´
dz¿½±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓã¬javaÖеÄÒýÓÃÏ൱ÓÚC/C++ÖеÄÖ¸Õë±äÁ¿)¶¼¿½±´Ò»±é£¬¶ø²»¿½±´ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏó
É±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓÃ)¶¼¿½±´Ò»±é£¬ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏóÒ²¿½±´Ò»·Ý
ÕâƪÎÄÕÂÏȽ²Êödz¿½±´£ ......
/************Student.java begin***************/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Student {
private String name;
private String password;
public String getName() {
return name;
}
public ......