CN108090341A - Java card control method and java card - Google Patents
Java card control method and java card Download PDFInfo
- Publication number
- CN108090341A CN108090341A CN201711354524.0A CN201711354524A CN108090341A CN 108090341 A CN108090341 A CN 108090341A CN 201711354524 A CN201711354524 A CN 201711354524A CN 108090341 A CN108090341 A CN 108090341A
- Authority
- CN
- China
- Prior art keywords
- fingerprint
- finger print
- java card
- print information
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/34—User authentication involving the use of external additional devices, e.g. dongles or smart cards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
Abstract
The present invention is suitable for field of information security technology, provide Java card control method, Java card and computer readable storage medium, the Java card includes fingerprint module and smart card module, and Java card virtual machine runs on smart card module when starting, and the control method includes:The fingerprint module gathers and compares user fingerprints information, if fingerprint comparison is by sending comparison by prompt message to the Java card virtual machine;The Java card virtual machine is after the APDU orders of host computer transmission are received, judge whether that receiving the comparison that the fingerprint module is sent passes through prompt message, to obtain the first judging result, controlled whether that Applet is allowed to perform the APDU orders according to first judging result.Can be relatively independent by the fingerprint module in Java card and smart card module by the present invention, each complete different functions, streamline operation improves the flexibility of Java card.
Description
Technical field
The invention belongs to field of information security technology more particularly to Java card control method, Java card and computer-readable
Storage medium.
Background technology
With the fast development of internet and finance informationalizing, fingerprint identification technology is safe and convenient, efficient etc. excellent with its
Point, which is widely used in public security, customs, bank etc., needs field of identity authentication, and payment system is identified using the finger print information of user,
Substitute the personal identification number and password of personal settings, carry out authentication, prevent unauthorized access.By drawing on Java card
Enter fingerprint recognition system, Java card security and user experience can be improved.
The content of the invention
It in view of this, will the present invention provides Java card control method, Java card and computer readable storage medium
Fingerprint module and smart card module in Java card is relatively independent, each completes different functions, and streamline operation improves
The flexibility of Java card.
The first aspect of the present invention provides a kind of Java card control method, and the Java card includes fingerprint module and intelligence
Card module, Java card virtual machine run on the smart card module when starting, and the control method includes:
The fingerprint module gathers and compares user fingerprints information, if fingerprint comparison is by sending comparison and passing through prompting
Information gives the Java card virtual machine;
The Java card virtual machine judges whether to receive the fingerprint after the APDU orders of host computer transmission are received
The comparison that module is sent is by prompt message, and to obtain the first judging result, being controlled according to first judging result is
No permission Applet performs the APDU orders.
The second aspect of the present invention provides a kind of Java card, including memory, processor and is stored in the storage
In device and the computer program that can run on the processor, the processor are realized as above when performing the computer program
The step of stating control method described in first aspect.
The third aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, the step of the control method as described in above-mentioned first aspect is realized when the computer program is executed by processor
Suddenly.
Existing advantageous effect is the present invention program compared with prior art:Java card in the present invention program includes fingerprint
Module and smart card module, Java card virtual machine run on the smart card module when starting, and fingerprint module gathers and compares use
Family finger print information, fingerprint comparison by when, comparison can be sent and by prompt message give Java card virtual machine, Java card is virtual
Machine judges whether that the comparison for receiving fingerprint module transmission is believed by prompting after the APDU orders of host computer transmission are received
Breath so as to obtain the first judging result, and controls whether that permission Applet performs APDU orders according to first judging result.This
Scheme of the invention is gathered by the fingerprint module in Java card and compares user fingerprints information, runs on the Java on smart card module
Card virtual machine controls whether that Applet is allowed to perform APDU orders, thus by the fingerprint module in Java card and smart card module phase
To independence, different functions is each completed, streamline operation improves the flexibility of Java card.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the realization flow diagram for the Java card control method that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram of Java card provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram for the Java card that the embodiment of the present invention three provides.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically
The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details interferes description of the invention.
It it should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
It is to be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in the present embodiment, each process
Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any restriction with its function and internal logic.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
It is the realization flow diagram for the Java card control method that the embodiment of the present invention one provides referring to Fig. 1, the controlling party
Method is applied to Java card, and the Java card includes fingerprint module and smart card module, and Java card virtual machine runs on institute when starting
Smart card module is stated, the control method may comprise steps of as shown in the figure:
Step S101, the fingerprint module gather and compare user fingerprints information, if fingerprint comparison is by sending comparison
The Java card virtual machine is given by prompt message.
In embodiments of the present invention, before step S101 is performed, user can be powered by card reader for Java card, be swashed
The Java card living so that the Java card can complete the functions such as the execution of authentication and APDU orders.Wherein, the reading
Card device can be contact card reader or Non-contact Media Reader.For example, Java card is inserted into 7816 Card Reader of contact
Device or close near-field communication (Near Field Communication, NFC) card reader.
The fingerprint module can include multiple fingerprint sensors, and multiple fingerprint sensors are arranged at the front of Java card
(Java card shows the one side of card number as front, and the one side for showing service calls is reverse side), i.e. the front of Java card is provided with finger
Line read area, when fingerprint is placed on the fingerprint read area by user, multiple fingerprint sensors acquisition at the fingerprint read area
The finger print information of user.
It should be noted that the fingerprint module in the embodiment of the present invention can individually complete fingerprint management, i.e., described fingerprint mould
Block has the function of deleting for the registration of finger print information in fingerprint management, such as finger-print card, the matching of finger print information and finger print information
Except etc. functions.
In embodiments of the present invention, the fingerprint module passes through the fingerprint read area typing on Java card receiving user
Finger print information after, the finger print information of user's typing is matched with pre-stored finger print information in Java card, if user
The finger print information of typing is matched with pre-stored finger print information, it is determined that certification is by the way that the user, which has, uses the Java card
Permission;If the finger print information of user's typing is mismatched with pre-stored finger print information, it is determined that certification is not by the user
And without the permission using the Java card.Wherein, the quantity of the pre-stored finger print information can be for one or more
It is a, when prestoring multiple finger print informations, if in the finger print information of user's typing and pre-stored multiple finger print informations
Any one finger print information matches, it is determined that certification passes through;If the finger print information of user's typing is believed with pre-stored multiple fingerprints
All finger print informations in breath all mismatch, it is determined that certification does not pass through.
Optionally, the fingerprint module is connected by GPIO pin with the smart card module, and the transmission, which compares, to be passed through
Prompt message includes to the Java card virtual machine:
The GPIO pin is set to predetermined level by the fingerprint module.
In embodiments of the present invention, the fingerprint module is to the finger print information of user's typing when carrying out fingerprint comparison, if
GPIO pin by can be then set to predetermined level, such as high level, if fingerprint comparison is not by can be with by fingerprint comparison
GPIO pin is set to low level, thereby may be ensured that Java card virtual machine is according to the electrical level judging fingerprint comparison of GPIO pin
It is no to pass through.
Optionally, the smart card module is connected with the fingerprint module by SPI, I2C or UART interface, the transmission
Compare is included by prompt message to the Java card virtual machine:
The fingerprint module sends described compare to the Java card virtual machine by described SPI, I2C or UART interface and leads to
Cross prompt message.
In embodiments of the present invention, the smart card module in Java card can be by serial outer with the fingerprint module
If interface (Serial Peripheral Interface, SPI), I2C or universal asynchronous receiving-transmitting transmitter (Universal
Asynchronous Receiver/Transmitter, UART) interface is connected.
Optionally, the Java card further includes the first indicator light and the second indicator light, and the embodiment of the present invention is noted including fingerprint
Volume control, finger print identifying control and fingerprint delete control.
It in embodiments of the present invention, can be by the first instruction in order to preferably distinguish the first indicator light and the second indicator light
Lamp is arranged to the indicator light of the first color (such as red) display, and the second indicator light is arranged to the second color (such as green)
The indicator light of display.As long as it should be noted that the first color and the second color difference, without limiting the first color and
Which kind of color second colors are specially.
The fingerprint register control includes:
A1) when the fingerprint module detects unregistered finger print information, the first indicator light flicker is controlled;
A2) fingerprint module gathers the first finger print information, controls the second indicator light flicker n times, wherein, N is big
In zero integer;
A3) fingerprint module gathers the second finger print information, compares second finger print information and believes with first fingerprint
Whether breath matches, if matching, preserves first finger print information or preserves second finger print information and control described second
Indicator light is always in the first preset time;
A4) when the fingerprint module detects that fingerprint register has been expired, first indicator light is controlled to be always on, is otherwise controlled
First indicator light flickers and performs A2) and A3).
Wherein, first finger print information can refer to fingerprint module acquisition for the first time when carrying out fingerprint register control
Finger print information, second finger print information can refer to the fingerprint of fingerprint module second of acquisition when carrying out fingerprint register control
Information just determines that (i.e. described first refers to the fingerprint only when first finger print information is matched with second finger print information
Line information fingerprint corresponding with second finger print information) it succeeds in registration, determine that fingerprint register fails when mismatching.
The Java card first can be inserted into 7816 card reader or close by Java card when carrying out fingerprint register control
NFC reader, if the fingerprint module in the Java card detects that unregistered finger print information is (i.e. in finger-print card in the Java
The quantity of registering fingerprint information is unregistered in finger-print card described in user to prompt for first indicator light 0), is then controlled to flicker
Finger print information.
The fingerprint module is when detecting that user places a digit into the fingerprint read area of Java card, acquisition the first fingerprint letter
Breath, control the second indicator light flicker n times, user to be prompted to remove finger from fingerprint read area, and again by above-mentioned finger
It is placed on fingerprint read area, the fingerprint module gathers the second finger print information, and by first finger print information and described second
Finger print information is compared, to detect whether first finger print information matches with second finger print information, if matching, is protected
It deposits first finger print information or preserves second finger print information, and control second indicator light in the first preset time
It is always on.
The fingerprint module is after the finger print information to be registered is succeeded in registration in the Java card, described in detection
Fingerprint, which registers whether, in Java card has expired (for example, whether the quantity for detecting registered finger print information in the Java card has reached
L, wherein, L is the integer more than zero, if reaching L, it is determined that fingerprint register has been expired, if not up to L, it is determined that fingerprint register is not
It is full), if having expired, first indicator light is controlled to be always on, first indicator light is otherwise controlled to flicker and performs A2) and A3),
To continue fingerprint register.
The finger print identifying control includes:
B1) when the fingerprint module, which detects, has completed fingerprint register, first indicator light is controlled to be always on;
B2) fingerprint module gathers the 3rd finger print information, and inquiry whether there is to match with the 3rd finger print information
Registered finger print information, if in the presence of second indicator light is controlled to be always on.
In embodiments of the present invention, the Java card is first inserted into 7816 card reader by Java card when carrying out fingerprint matching
Or close to NFC reader, if the fingerprint module in the Java card, which detects, has completed fingerprint register (for example, the Java
Finger print information is previously stored in card), then the fingerprint module controls first indicator light to be always on, to prompt the user Java
Card has completed fingerprint register, and the fingerprint module is when detecting that user places a digit into the fingerprint read area of Java card, acquisition
3rd finger print information of user's typing, inquiry whether there is the registered finger print information to match with the 3rd finger print information,
If in the presence of, second indicator light is controlled to be always on, user fingerprints comparison to be prompted to pass through, the power with the above-mentioned finger-print card of use
Limit.Wherein, the 3rd finger print information can refer to fingerprint module in the finger print information gathered during finger print identifying control.
The fingerprint, which deletes control, to be included:
C1) when the fingerprint module detects user's finger and is not left in the second preset time or when described
When fingerprint module detects that fingerprint delete button is pressed, first indicator light and second indicator light is controlled to be always on;
C2) fingerprint module gathers the 4th finger print information, and inquiry whether there is to match with the 4th finger print information
Registered finger print information, if in the presence of second indicator light is controlled to flicker;
C3) fingerprint module gathers the 5th finger print information, compares the 5th finger print information and believes with the 4th fingerprint
Whether breath matches, if matching, deletes the registered finger print information to match with the 4th finger print information and controls described the
One indicator light flickers.
In embodiments of the present invention, the Java card is first inserted into 7816 by Java card when carrying out the deletion of finger print information
Card reader or close to NFC reader, when the fingerprint module detect user's finger and in the second preset time not from
When opening or when the fingerprint module detects that fingerprint delete button is pressed, first indicator light and described second is controlled to refer to
Show that lamp is always on, with the finger print information for reminding user's typing to be deleted.
If the fingerprint module collects the 4th after control first indicator light and second indicator light are always on
Finger print information (finger print information i.e. to be deleted) is inquired about in the fingerprint module and whether there is and the 4th finger print information phase
The registered finger print information matched somebody with somebody, if in the presence of second indicator light is controlled to flicker, described waits to delete so that user to be prompted to input again
The finger print information removed if the fingerprint module collects the 5th finger print information, compares the 5th finger print information and the described 4th
Whether finger print information matches, if matching, deletes the registered finger print information to match with the 4th finger print information and controls
The first indicator light flicker, user to be prompted successfully to delete the finger print information to be deleted.Wherein, the 4th fingerprint letter
Breath can refer to the finger print information of fingerprint module acquisition for the first time when carrying out fingerprint and deleting control, and the 5th fingerprint module can
To refer to the finger print information of fingerprint module second of acquisition when carrying out fingerprint and deleting control, only in the 4th finger print information
(i.e. described 4th finger print information is corresponding with the 5th finger print information with just deleting the fingerprint during the 5th fingerprint information matches
Fingerprint), mismatch when determine fingerprint delete failure.
Step S102, the Java card virtual machine judge whether to receive after the APDU orders of host computer transmission are received
To the comparison that the fingerprint module is sent by prompt message, to obtain the first judging result, judge according to described first
Whether output control allows Applet to perform the APDU orders.
Wherein, first judging result indicates that the Java card virtual machine receives the described of the fingerprint module transmission
It compares and the comparison of the fingerprint module transmission is not received by carrying by indication information or the Java card virtual machine
Show information.The Applet can refer to the application program run in the Java card.
Optionally, it is described to control whether that Applet is allowed, which to perform the APDU orders, to be wrapped according to first judging result
It includes:
If first judging result is to receive the comparison of the fingerprint module transmission by prompt message, permit
Perhaps described Applet performs the APDU orders;Otherwise return not by authentication prompt message or in preset time
The comparison for judging whether to receive the fingerprint module transmission is by prompt message, if so, the Applet is allowed to hold
The row APDU orders, otherwise return not through authentication prompt message.
Optionally, the embodiment of the present invention further includes:
In the preset time, if the time for not receiving first judging result is more than the response timeout time,
The Java card virtual machine returns to latency request to the host computer.
In embodiments of the present invention, the Java card virtual machine judges after the APDU orders of host computer transmission are received
Whether the comparison of the fingerprint module transmission is received by prompt message, if not receiving first judging result,
Timer can then be started and carry out timing, if timing duration (time for not receiving first judging result) is more than response
Time-out time, then the Java card virtual machine is to host computer return latency request, so that the host computer will not be because of institute
State Java card not within the response timeout time returning response data and interrupt communication or exception, the Java card virtual machine is sent
After latency request, judge whether that receiving the comparison that the fingerprint module is sent passes through prompt message again.Wherein, respond
Time-out time is limited according to communications protocol.
Optionally, the embodiment of the present invention further includes:
The Java card virtual machine judges that the APDU orders are after the APDU orders that the host computer is sent are received
No is preset instructions, if so, the Applet is allowed to perform the APDU orders, not connect in the Java card virtual machine
When receiving the comparison that the fingerprint module is sent and passing through prompt message, the Applet is allowed to perform the preset instructions.
Wherein, the preset instructions can refer to and certification individual recognition code (Personal Identification
Number, PIN) the relevant instruction of code.
In embodiments of the present invention, (such as Java card will be referred to when user can not gather finger print information by fingerprint module
It is inserted into ATM (Automatic Teller Machine, ATM)), user can carry out user by typing PIN code
Authentication, such as sent and the relevant instruction of certification PIN code to Java card virtual machine by host computer.
It should be noted that the Java card in the embodiment of the present invention supports fingerprint identity validation and PIN code identity to recognize simultaneously
Card, so as to be suitable for different application scenarios.For example, user can with the application scenarios of typing finger print information under can use
Fingerprint identity validation or PIN code authentication can not can use PIN code in user under the application scenarios of typing finger print information
Authentication.
The embodiment of the present invention is gathered by the fingerprint module in Java card and compares user fingerprints information, runs on smart card
Java card virtual machine in module controls whether that Applet is allowed to perform APDU orders, so as to by the fingerprint module in Java card and
Smart card module is relatively independent, each completes different functions, streamline operation, improves the flexibility of Java card.
The schematic diagram of Java card provided by Embodiment 2 of the present invention referring to Fig. 2, for convenience of description, illustrate only with
The relevant part of the embodiment of the present invention.
The Java card includes:
Fingerprint module 21 and smart card module 22, Java card virtual machine run on the smart card module 22 when starting;
The fingerprint module 21, for gathering and comparing user fingerprints information, if fingerprint comparison is by the way that it is logical to send comparison
Prompt message is crossed to the Java card virtual machine;
The smart card module 22, for after the APDU orders of host computer transmission are received, judging whether to receive institute
The comparison of the transmission of fingerprint module 21 is stated by prompt message, to obtain the first judging result, judges to tie according to described first
Fruit controls whether that Applet is allowed to perform the APDU orders.
Optionally, the smart card module 22 is specifically used for:
If first judging result is to receive the comparison that the fingerprint module 21 sends by prompt message,
The Applet is allowed to perform the APDU orders;Otherwise return not by authentication prompt message or in preset time
The comparison for inside judging whether to receive the transmission of fingerprint module 21 is by prompt message, if so, described in allowing
Applet performs the APDU orders, otherwise returns not through authentication prompt message.
Optionally, the smart card module 22 is additionally operable to:
In the preset time, if the time for not receiving first judging result is more than the response timeout time,
Latency request is returned to the host computer.
Optionally, the smart card module 22 is additionally operable to:
After the APDU orders that the host computer is sent are received, judge whether the APDU orders are preset instructions, if
It is that the Applet is then allowed to perform the APDU orders, not receive the fingerprint mould in the Java card virtual machine
When the comparison that block 21 is sent passes through prompt message, the Applet is allowed to perform the preset instructions.
Optionally, the fingerprint module 21 is connected by GPIO pin with the smart card module 22;
The fingerprint module 21, specifically for the GPIO pin is set to predetermined level.
Optionally, the smart card module 22 is connected with the fingerprint module 21 by SPI, I2C or UART interface;
The fingerprint module 21, specifically for being sent out by described SPI, I2C or UART interface to the Java card virtual machine
The comparison is sent to pass through prompt message.
Optionally, the Java card further includes the first indicator light 23 and the second indicator light 24;
The fingerprint module 21 is additionally operable to fingerprint register control, finger print identifying control and fingerprint and deletes control;
The fingerprint register control includes:
A1) when the fingerprint module 21 detects unregistered finger print information, first indicator light 23 is controlled to flicker;
A2) fingerprint module 21 gathers the first finger print information, and second indicator light 24 is controlled to flicker n times, wherein, N
To be more than zero integer;
A3) fingerprint module 21 gathers the second finger print information, compares second finger print information and first fingerprint
Whether information matches, if matching, preserves first finger print information or preserves second finger print information and control described the
Two indicator lights 24 are always in the first preset time;
A4) when the fingerprint module 21 detects that fingerprint register has been expired, first indicator light 23 is controlled to be always on, otherwise
First indicator light 23 is controlled to flicker and performs A2) and A3);
The finger print identifying control includes:
B1) when the fingerprint module 21, which detects, has completed fingerprint register, first indicator light 23 is controlled to be always on;
B2) fingerprint module 21 gathers the 3rd finger print information, and inquiry whether there is and the 3rd finger print information phase
The registered finger print information matched somebody with somebody, if in the presence of second indicator light 24 is controlled to be always on;
The fingerprint, which deletes control, to be included:
C1) when the fingerprint module 21 detects user's finger and is not left in the second preset time or institute is worked as
When stating fingerprint module 21 and detecting that fingerprint delete button is pressed, control first indicator light 23 and second indicator light 24 normal
It is bright;
C2) fingerprint module 21 gathers the 4th finger print information, and inquiry whether there is and the 4th finger print information phase
The registered finger print information matched somebody with somebody, if in the presence of second indicator light 24 is controlled to flicker;
C3) fingerprint module 21 gathers the 5th finger print information, compares the 5th finger print information and the 4th fingerprint
Whether information matches, if matching, deletes described in the registered finger print information to match with the 4th finger print information and control
First indicator light 23 flickers.
Java card provided in an embodiment of the present invention can be applied in preceding method embodiment one, and details are referring to the above method
The description of embodiment one, details are not described herein.
Fig. 3 is the schematic diagram for the Java card that the embodiment of the present invention three provides.As shown in figure 3, the Java card 3 of the embodiment wraps
It includes:Processor 30, memory 31 and it is stored in the computer that can be run in the memory 31 and on the processor 30
Program 32.The processor 30 is realized when performing the computer program 32 in above-mentioned each Java card control method embodiment
Step, such as step S101 to S102 shown in FIG. 1.Alternatively, the processor 30 is realized when performing the computer program 32
The function of each module in above-mentioned Java.Wherein:
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are performed by the processor 30, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 32 in the Java card 3 is described.For example, the computer program 32 can be divided
Into fingerprint module and smart card module, Java card virtual machine runs on the smart card module, each module concrete function when starting
It is as follows:
The fingerprint module, for gathering and comparing user fingerprints information, if fingerprint comparison is by sending comparison and passing through
Prompt message gives the Java card virtual machine;
The smart card module, it is described for after the APDU orders of host computer transmission are received, judging whether to receive
The comparison that fingerprint module is sent is by prompt message, to obtain the first judging result, according to the first judging result control
Whether system allows the Applet to perform the APDU orders.
Optionally, the smart card module is specifically used for:
If first judging result is to receive the comparison of the fingerprint module transmission by prompt message, permit
Perhaps described Applet performs the APDU orders;Otherwise return not by authentication prompt message or in preset time
The comparison for judging whether to receive the fingerprint module transmission is by prompt message, if so, the Applet is allowed to hold
The row APDU orders, otherwise return not through authentication prompt message.
Optionally, the smart card module is additionally operable to:
In the preset time, if the time for not receiving first judging result is more than the response timeout time,
Latency request is returned to the host computer.
Optionally, the smart card module is additionally operable to:
After the APDU orders that the host computer is sent are received, judge whether the APDU orders are preset instructions, if
It is that the Applet is then allowed to perform the APDU orders, not receive the fingerprint mould in the Java card virtual machine
When the comparison that block is sent passes through prompt message, the Applet is allowed to perform the preset instructions.
Optionally, the fingerprint module is connected by GPIO pin with the smart card module;
The fingerprint module, specifically for the GPIO pin is set to predetermined level.
Optionally, the smart card module is connected with the fingerprint module by SPI, I2C or UART interface;
The fingerprint module, specifically for being sent by described SPI, I2C or UART interface to the Java card virtual machine
The comparison passes through prompt message.
Optionally, the Java card further includes the first indicator light and the second indicator light;
The fingerprint module is additionally operable to fingerprint register control, finger print identifying control and fingerprint and deletes control;
The fingerprint register control includes:
A1) when the fingerprint module detects unregistered finger print information, the first indicator light flicker is controlled;
A2) fingerprint module gathers the first finger print information, controls the second indicator light flicker n times, wherein, N is big
In zero integer;
A3) fingerprint module gathers the second finger print information, compares second finger print information and believes with first fingerprint
Whether breath matches, if matching, preserves first finger print information or preserves second finger print information and control described second
Indicator light is always in the first preset time;
A4) when the fingerprint module detects that fingerprint register has been expired, first indicator light is controlled to be always on, is otherwise controlled
First indicator light flickers and performs A2) and A3);
The finger print identifying control includes:
B1) when the fingerprint module, which detects, has completed fingerprint register, first indicator light 34 is controlled to be always on;
B2) fingerprint module gathers the 3rd finger print information, and inquiry whether there is to match with the 3rd finger print information
Registered finger print information, if in the presence of second indicator light is controlled to be always on;
The fingerprint, which deletes control, to be included:
C1) when the fingerprint module detects user's finger and is not left in the second preset time or when described
When fingerprint module detects that fingerprint delete button is pressed, first indicator light and second indicator light is controlled to be always on;
C2) fingerprint module gathers the 4th finger print information, and inquiry whether there is to match with the 4th finger print information
Registered finger print information, if in the presence of second indicator light is controlled to flicker;
C3) fingerprint module gathers the 5th finger print information, compares the 5th finger print information and believes with the 4th fingerprint
Whether breath matches, if matching, deletes the registered finger print information to match with the 4th finger print information and controls described the
One indicator light flickers.
The Java card 3 may include, but be not limited only to, processor 30, memory 31.Those skilled in the art can manage
Solution, Fig. 3 is only the example of Java card 3, does not form the restriction to Java card 3, can be included more more or fewer than illustrating
Component either combines some components or different components, such as the Java card can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 31 can be the internal storage unit of the Java card 3, such as the hard disk or memory of Java card 3.
The memory 31 can also be the External memory equipment of the Java card 3, such as the plug-in type being equipped on the Java card 3 is hard
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, the memory 31 can also both include the internal storage unit of the Java card 3 or wrap
Include External memory equipment.
The memory 31 is used to store the computer program and other programs and data needed for the Java card.
The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated
The form that hardware had both may be employed in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system
The specific work process of middle unit, module may be referred to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, be not described in detail or remember in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed Java card and method, it can be by other
Mode realize.For example, Java card embodiment described above is only schematical, for example, the module or unit
Division is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
It closes or communication connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be employed in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and be independent production marketing or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium
It can include:Any entity of the computer program code or device, recording medium, USB flash disk, mobile hard disk, magnetic can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described
The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each
Technical solution recorded in embodiment modifies or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is not made to depart from the spirit and scope of various embodiments of the present invention technical solution, it should all
It is included within protection scope of the present invention.
Claims (9)
1. a kind of Java card control method, which is characterized in that the Java card includes fingerprint module and smart card module, Java card
Virtual machine runs on the smart card module when starting, and the control method includes:
The fingerprint module gathers and compares user fingerprints information, if fingerprint comparison is by sending comparison and passing through prompt message
To the Java card virtual machine;
The Java card virtual machine judges whether to receive the fingerprint module after the APDU orders of host computer transmission are received
The comparison sent, to obtain the first judging result, controls whether to permit by prompt message according to first judging result
Perhaps Applet performs the APDU orders.
2. control method as described in claim 1, which is characterized in that described to control whether to permit according to first judging result
Perhaps Applet performs the APDU orders and includes:
If first judging result is to receive the comparison of the fingerprint module transmission by prompt message, allow institute
It states Applet and performs the APDU orders;Otherwise return and do not judge by authentication prompt message or in preset time
Whether the comparison of the fingerprint module transmission is received by prompt message, if so, the Applet is allowed to perform institute
APDU orders are stated, are otherwise returned not through authentication prompt message.
3. control method as claimed in claim 2, which is characterized in that the control method further includes:
It is described if the time for not receiving first judging result is more than the response timeout time in the preset time
Java card virtual machine returns to latency request to the host computer.
4. control method as described in claim 1, which is characterized in that the control method further includes:
The Java card virtual machine after the APDU orders that the host computer is sent are received, judge the APDU orders whether be
Preset instructions, if so, the Applet is allowed to perform the APDU orders, not received in the Java card virtual machine
When the comparison that the fingerprint module is sent passes through prompt message, the Applet is allowed to perform the preset instructions.
5. control method as described in claim 1, which is characterized in that the fingerprint module passes through GPIO pin and the intelligence
Card module connects, and the transmission is compared to be included by prompt message to the Java card virtual machine:
The GPIO pin is set to predetermined level by the fingerprint module.
6. control method as described in claim 1, which is characterized in that the smart card module passes through with the fingerprint module
SPI, I2C or UART interface are connected, and the transmission is compared to be included by prompt message to the Java card virtual machine:
The fingerprint module sends described compare by carrying by described SPI, I2C or UART interface to the Java card virtual machine
Show information.
7. control method as described in claim 1, which is characterized in that the Java card further includes the first indicator light and second and refers to
Show lamp, the control method includes fingerprint register control, finger print identifying control and fingerprint and deletes control;
The fingerprint register control includes:
A1) when the fingerprint module detects unregistered finger print information, the first indicator light flicker is controlled;
A2) fingerprint module gathers the first finger print information, controls the second indicator light flicker n times, wherein, N is more than zero
Integer;
A3) fingerprint module gathers the second finger print information, and compare second finger print information is with first finger print information
No matching if matching, preserves first finger print information or preserves second finger print information and control second instruction
Lamp is always in the first preset time;
A4) when the fingerprint module detects that fingerprint register has been expired, first indicator light is controlled to be always on, otherwise described in control
First indicator light flickers and performs A2) and A3);
The finger print identifying control includes:
B1) when the fingerprint module, which detects, has completed fingerprint register, first indicator light is controlled to be always on;
B2) fingerprint module gathers the 3rd finger print information, and inquiry whether there is to match with the 3rd finger print information
Registering fingerprint information, if in the presence of second indicator light is controlled to be always on;
The fingerprint, which deletes control, to be included:
C1) when the fingerprint module detects user's finger and is not left in the second preset time or when the fingerprint
When module detects that fingerprint delete button is pressed, first indicator light and second indicator light is controlled to be always on;
C2) fingerprint module gathers the 4th finger print information, and inquiry whether there is to match with the 4th finger print information
Registering fingerprint information, if in the presence of second indicator light is controlled to flicker;
C3) fingerprint module gathers the 5th finger print information, and compare the 5th finger print information is with the 4th finger print information
No matching if matching, deletes the registered finger print information to match with the 4th finger print information and controls described first to refer to
Show that lamp flickers.
8. a kind of Java card, including memory, processor and it is stored in the memory and can transports on the processor
Capable computer program, which is characterized in that the processor realizes such as claim 1 to 7 times when performing the computer program
The step of one control method.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In being realized when the computer program is executed by processor as described in any one of claim 1 to 7 the step of control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711354524.0A CN108090341A (en) | 2017-12-15 | 2017-12-15 | Java card control method and java card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711354524.0A CN108090341A (en) | 2017-12-15 | 2017-12-15 | Java card control method and java card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108090341A true CN108090341A (en) | 2018-05-29 |
Family
ID=62176554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711354524.0A Pending CN108090341A (en) | 2017-12-15 | 2017-12-15 | Java card control method and java card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108090341A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324843A (en) * | 2018-09-11 | 2019-02-12 | 深圳市文鼎创数据科技有限公司 | A kind of finger prints processing system, method and fingerprint equipment |
CN110826665A (en) * | 2019-11-01 | 2020-02-21 | 楚天龙股份有限公司 | Fingerprint card fingerprint management method and device |
CN111475430A (en) * | 2019-01-24 | 2020-07-31 | 深圳市文鼎创数据科技有限公司 | Java card chip communication equipment and communication method |
CN114579208A (en) * | 2022-05-05 | 2022-06-03 | 广州万协通信息技术有限公司 | Self-adaptive adjustment execution speed increasing method for Java card |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101520853A (en) * | 2008-02-25 | 2009-09-02 | 国际商业机器公司 | Enhanced intelligent card and realization method thereof |
CN102007478A (en) * | 2009-03-12 | 2011-04-06 | 迈克尔·阿努斯 | Portable computing system and portable computer for use with same |
CN102160061A (en) * | 2008-08-20 | 2011-08-17 | X卡控股有限公司 | Secure smart card system |
CN102354367A (en) * | 2011-09-23 | 2012-02-15 | 杭州晟元芯片技术有限公司 | Fingerprint identification card and fingerprint identification method running on card |
US20120042369A1 (en) * | 2009-10-16 | 2012-02-16 | Huawei Device Co., Ltd | Data Card, Method and System for Identifying Fingerprint with Data Card |
CN103116720A (en) * | 2011-11-16 | 2013-05-22 | 航天信息股份有限公司 | Universal serial bus (USB) Key device and account management method and authentication application method thereof |
CN105103525A (en) * | 2013-01-29 | 2015-11-25 | 玛丽·格蕾丝 | Smart card and smart card system with enhanced security features |
CN106469263A (en) * | 2015-08-14 | 2017-03-01 | 特科芯有限公司 | Display lamp manages the portable hard drive implementation method of encrypting fingerprint |
CN107067250A (en) * | 2015-09-09 | 2017-08-18 | 三星电子株式会社 | For performing the method and apparatus paid |
CN107229490A (en) * | 2016-12-02 | 2017-10-03 | 天地融科技股份有限公司 | A kind of multi-application smart card method of commerce and multi-application smart card |
-
2017
- 2017-12-15 CN CN201711354524.0A patent/CN108090341A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101520853A (en) * | 2008-02-25 | 2009-09-02 | 国际商业机器公司 | Enhanced intelligent card and realization method thereof |
CN102160061A (en) * | 2008-08-20 | 2011-08-17 | X卡控股有限公司 | Secure smart card system |
CN102007478A (en) * | 2009-03-12 | 2011-04-06 | 迈克尔·阿努斯 | Portable computing system and portable computer for use with same |
US20120042369A1 (en) * | 2009-10-16 | 2012-02-16 | Huawei Device Co., Ltd | Data Card, Method and System for Identifying Fingerprint with Data Card |
CN102354367A (en) * | 2011-09-23 | 2012-02-15 | 杭州晟元芯片技术有限公司 | Fingerprint identification card and fingerprint identification method running on card |
CN103116720A (en) * | 2011-11-16 | 2013-05-22 | 航天信息股份有限公司 | Universal serial bus (USB) Key device and account management method and authentication application method thereof |
CN105103525A (en) * | 2013-01-29 | 2015-11-25 | 玛丽·格蕾丝 | Smart card and smart card system with enhanced security features |
CN106469263A (en) * | 2015-08-14 | 2017-03-01 | 特科芯有限公司 | Display lamp manages the portable hard drive implementation method of encrypting fingerprint |
CN107067250A (en) * | 2015-09-09 | 2017-08-18 | 三星电子株式会社 | For performing the method and apparatus paid |
CN107229490A (en) * | 2016-12-02 | 2017-10-03 | 天地融科技股份有限公司 | A kind of multi-application smart card method of commerce and multi-application smart card |
Non-Patent Citations (1)
Title |
---|
马多贺: "Java智能卡开发及应用技术研究", 《中国优秀硕士学位论文全文数据库•信息科技辑》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324843A (en) * | 2018-09-11 | 2019-02-12 | 深圳市文鼎创数据科技有限公司 | A kind of finger prints processing system, method and fingerprint equipment |
CN109324843B (en) * | 2018-09-11 | 2020-12-11 | 深圳市文鼎创数据科技有限公司 | Fingerprint processing system and method and fingerprint equipment |
CN111475430A (en) * | 2019-01-24 | 2020-07-31 | 深圳市文鼎创数据科技有限公司 | Java card chip communication equipment and communication method |
CN111475430B (en) * | 2019-01-24 | 2023-04-11 | 深圳市文鼎创数据科技有限公司 | Java card chip communication equipment and communication method |
CN110826665A (en) * | 2019-11-01 | 2020-02-21 | 楚天龙股份有限公司 | Fingerprint card fingerprint management method and device |
CN114579208A (en) * | 2022-05-05 | 2022-06-03 | 广州万协通信息技术有限公司 | Self-adaptive adjustment execution speed increasing method for Java card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106096539B (en) | A kind of method and terminal for carrying out bio-identification | |
CN108090341A (en) | Java card control method and java card | |
CN103745148B (en) | A kind of information protecting method and mobile terminal based on fingerprint recognition | |
CN105956484B (en) | A kind of safety interacting method and system of intelligent terminal | |
CN105900100A (en) | Apparatus and methods for identity verification | |
CN106056386A (en) | Payment method, payment terminal, server and payment system | |
CN107360276A (en) | A kind of verification method based on double fingerprint recognitions, mobile terminal and storage device | |
CN101438241A (en) | Platform boot with bridge support | |
CN107908940B (en) | Fingerprint identification method and terminal equipment | |
CN107657161A (en) | Method of mobile payment and Related product based on recognition of face | |
CN204680060U (en) | The identification of Network Based and biological characteristic and payment mechanism | |
CN105006077A (en) | ATM safe operation method and system based on fingerprint identification, and ATM | |
CN104143139A (en) | Payment method and system based on facial expressions | |
CN105225102A (en) | Method of mobile payment and the wearable mobile payment device for the method under line | |
US20070234066A1 (en) | Biometric identification device providing format conversion functionality and method for implementing said functionality | |
CN104778587A (en) | Safety payment method and device | |
CN108073560A (en) | SMS processing method, server and computer-readable medium | |
CN108280358A (en) | Information reminding method and device and electronic equipment | |
CN108009412A (en) | Using the authorization method and electronic equipment of item | |
CN104392162A (en) | Authentication method and smart card | |
US20070234065A1 (en) | Biometric identification device providing format conversion functionality and method for implementing said functionality | |
CN110223128A (en) | A kind of method and relevant apparatus of data processing | |
CN107633625A (en) | Self-service dealing based reminding method, device and terminal device | |
CN109242475A (en) | A kind of method of payment, payment mechanism and terminal device | |
CN107808086A (en) | A kind of unlocking method of intelligent terminal, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180529 |
|
RJ01 | Rejection of invention patent application after publication |