Embodiment
In order to make those skilled in the art person understand the present invention program better, the embodiment of the invention is done further to specify below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1, be the process flow diagram of the visual method of embodiment of the invention virtual smart card, comprising:
Step 101, the smartcard internal Web server receives the preview card layout information request that browser sends, and the request of said preview card layout information comprises card space of a whole page sign.
The embodiment of the invention is including built-in Web server on the physical smart card of many virtual smart cards, and smart card can be communicated by letter with browser, carries out data interaction, and then the purpose of the layout information of many virtual smart cards is read in realization.
For being implemented in the purpose of the built-in Web server of smart card, the hardware layer of physical smart card should comprise underlying hardware modules such as central processing unit, storer, timer, hardware interface.Wherein, Storer can comprise random access memory ram, read only memory ROM, Electrically Erasable Read Only Memory EEPROM etc.; Hardware interface can comprise the compatible non-contact interface of IC-USB, ISO14443 (being the non-contact IC card standard), MMC (MultiMedia Card, multimedia flash card) interface etc.For example, the S3FS9CI chip that can adopt Samsung makes physical smart card possess the possibility that realizes the Web server function to realize the requirement to the aspects such as data processing speed, storage space volume and communication interface data rate of hardware layer.
Built-in Web server on physical smart card is just communicated by letter with browser for smart card technical foundation is provided.In order to obtain the layout information of virtual smart card, the card layout information that also needs in advance the card issuer to be designed is stored in the physical smart card, and this mainly is to be accomplished by the virtual smartcard manager of smartcard internal.Virtual smartcard manager can be that the card layout information distributes a fixing storage area, and the layout information of all virtual smart cards is all stored in the storage area of this distribution; Perhaps; Virtual smartcard manager also can be when being provided with configuration information for every virtual smart card; The card layout information is stored in the storage space that distributes into this virtual smart card, and the memory space address of card layout information is saved in the configuration information table.So far, just having possessed the visual purpose of realization embodiment of the invention virtual smart card layout information maybe.
When user's desire during through many virtual smart cards in the browser access smart card, send the request of preview card layout information through browser to Web server, comprise in this request that the card space of a whole page identifies.Wherein, card space of a whole page sign can be legal face sign and/or anti-space of a whole page sign.
Need to prove here; Browser in the embodiment of the invention can be arranged on such as mobile phone, computing machine, POS machine, have on the terminal devices such as televisor of STB; And between the Web server through communicating by http protocol (HyperText Transfer Protocol, HTTP).It is supreme that http protocol can be based upon ICP/IP protocol, also can be based upon on the BIP agreement (Bearer Independent Protocol carries standalone protocol).The http request of sending when browser is communicated by letter with Web server mainly is made up of three parts: request row, message header and request text.The request row separates with the space with a method symbol beginning, the URI of followed request and the version of agreement, and form is following: Method Request-URI HTTP-Version CRLF.Wherein, Method representes requesting method; Request-URI is a unified resource identifier; HTTP-Version representes the http protocol version of asking; CRLF representes carriage return and line feed.Because the memory capacity of physical smart card is limited; And the function that Web server is carried out is also few; Therefore Web server can be designed to the webserver of lightweight, its realize server operation the requesting method that must comprise GET method (resource that acquisition request Request-URI identified) and HEAD method (acquisition request is by the response message header field of the resource that Request-URI identified) are arranged.In addition; Applicable cases according to reality; Requesting method also optionally comprises: the OPTION method (performance of requesting query server; Perhaps inquiry option and the demand relevant), with resource POST method (after the resource that Request-URI identified, adding new data), (request server is stored a resource to the PUT method; And identify as it with Request-URI), DELETE method (the request server deletion resource that Request-URI identified), TRACE method (solicited message that the request server loopback is received is mainly used in test or diagnosis), CONNECT method (keep in the future and use) etc.
Step 102 is searched the virtual smart card layout information with card space of a whole page sign in virtual smartcard manager, and layout information is sent to browser.
Pass through browser when smart card is initiated the request of preview card layout information the user; After Web server in the smart card receives this request and resolves identification; Be identified to search in the virtual smartcard manager according to the card space of a whole page that comprises in the request and meet the card layout information that user's preview requires, specifically comprise:
(1) if what comprise in the request is positive space of a whole page sign, then Web server is searched the virtual machine smart card layout information with positive space of a whole page sign in the smart card manager, and the positive layout information that will find is sent to browser, shows to the user.
(2) if what comprise in the request is anti-space of a whole page sign, then Web server is searched the virtual machine smart card layout information with anti-space of a whole page sign in the smart card manager, and the anti-layout information that will find is sent to browser, shows to the user.
(3) if not only comprise positive space of a whole page sign but also comprise anti-space of a whole page sign in the request; Then Web server is searched the virtual machine smart card layout information with positive space of a whole page sign and anti-space of a whole page sign in the smart card manager; And the positive layout information that will find and the anti-space of a whole page be sent to browser simultaneously, shows to the user.
That is to say the positive layout information and/or the anti-layout information of whole virtual smart cards of preserving in user's preview simultaneously physical smart card.
Need to prove that here Web server can be searched the card layout information that meets user's preview requirement through following dual mode in virtual smartcard manager:
First kind of implementation, when virtual smartcard manager was distributed a fixed storage zone for the card layout information, Web server was directly searched the virtual smart card layout information with positive space of a whole page sign and/or anti-space of a whole page sign in this fixed storage zone.
Second kind of implementation; When virtual smartcard manager stores different card layout informations into distribute into every virtual smart card storage space; Web server calls configuration information table earlier, and the memory space address of the virtual smart card of preserving in configuration information table then obtains the virtual smart card layout information with positive space of a whole page sign and/or anti-space of a whole page sign.
Certainly, above-mentioned implementation only is two kinds of examples, in practical application, can also adopt alternate manner to search to meet the card layout information of user's preview requirement, and this embodiment of the invention is not done qualification.
Further, find the card layout information that meets user's preview requirement at Web server after, can or layout information be sent to browser through the dynamic web page form through the static Web page form, supply the user to check.
Further, the visual method of embodiment of the invention virtual smart card also can comprise: browser also comprises the card identity information in the preview card layout information request that Web server sends; Correspondingly, in virtual smartcard manager, searching the virtual smart card layout information with card space of a whole page sign specifically comprises: in virtual smartcard manager, search the virtual smart card layout information with card space of a whole page sign and card identity information.Like this, the user just can select to check the layout information of one or more virtual smart card in the physical smart card according to self-demand, makes the visual method of embodiment of the invention virtual smart card have more hommization, further strengthens user experience.
Need to prove here; What be used to represent the card identity information can be the numbering (for example 001,002,003 etc.) of card; It also can be the title (for example social security card, medical card, bank card etc.) of card; So long as can the information that the card identity is distinguished be got final product, this embodiment of the invention is not also done qualification.
Particularly; Web server can be as shown in Figure 2; Elder generation's execution in step 201 is searched the virtual smart card layout information with the card space of a whole page sign that comprises in the request in virtual smartcard manager, and then execution in step 202 is searched the virtual smart card layout information with the card identity information that comprises in the request in satisfactory lookup result.For example; Comprise in the request of preview card layout information that the positive space of a whole page identifies and represent the coding 001 of card identity information; After then Web server receives request; In virtual smartcard manager, find out earlier the positive layout information of all virtual smart cards, and then obtain the positive layout information that wherein is numbered 001 virtual smart card and be sent to browser, supply the user to check.Perhaps, Web server also can be searched the virtual smart card layout information with the card identity information that comprises in the request earlier, and then in satisfactory lookup result, searches the virtual smart card layout information with the card space of a whole page sign that comprises in the request.
Referring to Fig. 3, if the virtual smart card layout information that finds is positive layout information, then positive layout information is sent to after the browser, the visual method of embodiment of the invention virtual smart card also can further comprise according to user's request:
Step 103, Web server receive the anti-layout information request of card of checking that browser sends, and saidly check that the anti-layout information request of card comprises the card identity information;
Step 104 is searched the anti-layout information of the virtual smart card with card identity information in virtual smartcard manager, and anti-layout information is sent to browser.
Referring to Fig. 3, if the virtual smart card layout information that finds is anti-layout information, then anti-layout information is sent to after the browser, the visual method of embodiment of the invention virtual smart card also can further comprise according to user's request:
Step 105, Web server receives the positive layout information request of card of checking that browser sends, and the said positive layout information request package of card of checking is drawn together the card identity information;
Step 106 is searched the positive layout information of the virtual smart card with card identity information in virtual smartcard manager, and positive layout information is sent to browser.
When the card space of a whole page that comprises in the request of preview card layout information was designated positive space of a whole page sign or anti-space of a whole page sign, the user set up with Web server through browser and communicates by letter positive layout information that is merely virtual smart card that gets access to or anti-layout information.In order further to meet consumers' demand, the embodiment of the invention also can be behind the positive layout information or anti-layout information of user's preview card, through clicking the layout information of checking wherein any one or many opposite spaces of a whole page of virtual smart card.That is to say,, then can click wherein one or many cards if the image of the current preview of user is the positive layout information of card, to the Web server initiation request, and with Web server set up communicate by letter after, further check the anti-layout information of choosing card.Likewise, what check is the anti-layout information of card if the user is current, then can further check the positive layout information of card through scheme shown in Figure 3.
Further, as shown in Figure 4, the visual method of embodiment of the invention virtual smart card also comprises:
Step 301, Web server receive the user information request of checking of browser transmission, and the said user information request of checking comprises the card identity information;
Step 302 is searched the virtual smart card with said card identity information in virtual smartcard manager, and obtains the user profile that said virtual smart card comprises and be sent to browser.
Through the embodiment of the invention, the layout information that the user not only can the preview virtual smart card can also be selected the different user information of checking that every virtual smart card comprises.For example, the seek medical advice user profile such as title, case information of hospital of the user who preserves in the medical card, user profile such as the amount deposited of preserving in the bank card, consumption record, credit line.The user can be directly sends request through browser to Web server, and obtains the user profile of meeting consumers' demand by Web server, and is sent to browser and supplies the user to check; In addition; The user can also be after checking the card layout information; Mode through clicking is further communicated by letter with Web server foundation; Obtain the user profile that one or more virtual smart card comprises, also or after the user has checked the user profile that one or more virtual smart card comprises, through the mode clicked further request check the layout information of card.
Correspondingly, the embodiment of the invention also provides a kind of visual device of virtual smart card, and this visual device is positioned at smartcard internal, the promptly above-mentioned Web server of mentioning, and as shown in Figure 5, visual device comprises:
First receiving element 401 is used to receive the preview card layout information request that browser sends, and the request of preview card layout information comprises card space of a whole page sign;
First searches unit 402, is used in virtual smartcard manager, searching the virtual smart card layout information with card space of a whole page sign, and layout information is sent to browser.
Further, the visual device of embodiment of the invention virtual smart card can also be searched the card layout information of The profile according to card space of a whole page sign and card identity information two aspect information.At this moment, first receiving element in the visual device is used to receive the preview card layout information request that browser sends, and the request of preview card layout information also comprises the card identity information; First searches the unit, specifically is used in virtual smartcard manager, searching the virtual smart card layout information with card space of a whole page sign and card identity information, and layout information is sent to browser.
Further,, then find the positive layout information of virtual smart card and send to browser, also can check the anti-layout information of card according to user's request if the card space of a whole page in the request of preview card layout information is a positive space of a whole page sign.As shown in Figure 6, visual device also comprises:
Second receiving element 403 is used for searching the unit when browser sends positive layout information first, receives the anti-layout information request of card of checking that browser sends, and checks that the anti-layout information request of card comprises the card identity information;
Second searches unit 404, is used in virtual smartcard manager, searching the anti-layout information of the virtual smart card with card identity information, and anti-layout information is sent to browser.
Correspondingly, if the card space of a whole page in the request of preview card layout information is anti-space of a whole page sign, after then finding the anti-layout information of virtual smart card and being sent to browser; Also can check the positive layout information of card according to user's request; At this moment, second receiving element in the visual device is used for searching the unit when browser sends anti-layout information first; Receive the positive layout information request of card of checking that browser sends, check that the positive layout information request package of card draws together the card identity information; Second searches the unit, is used in virtual smartcard manager, searching the positive layout information of the virtual smart card with card identity information, and positive layout information is sent to browser.
The visual device of embodiment of the invention virtual smart card also has the function of checking the user profile that comprises in every virtual smart card when satisfying the user and checking that the card layout information requires, as shown in Figure 7, visual device also comprises:
The 3rd receiving element 405 is used to receive the user information request of checking that browser sends, and the said user information request of checking comprises the card identity information;
The 3rd searches unit 406, is used in virtual smartcard manager, searching the virtual smart card with said card identity information, and obtains the user profile that said virtual smart card comprises and be sent to browser.
The present invention program can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program element.Usually, program element comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention program, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program element can be arranged in this locality and the remote computer storage medium that comprises memory device.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than the embodiment of the invention has been carried out detailed introduction, used embodiment among this paper the present invention set forth, the explanation of above embodiment just is used for help understanding method and apparatus of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.