Summary of the invention
The technical problem that the embodiment of the present application to be solved is, for the deficiencies in the prior art, a kind of expired marking method for shown data, device, client terminal and server are provided, the expired data of display on client end interface are made can automatically to distinguish not expired data, it is to increase the information security of the network information and privacy information.
According to the application aspect, it is provided that a kind of expired marking method for shown data, comprising: the renewal rewards theory of detection Application Program Interface; After renewal rewards theory, for the data being displayed in described Application Program Interface, start timer; Reaching default expired time with when described timer, described Application Program Interface is carried out expired mark, the Application Program Interface making this expired is different from non-expired Application Program Interface.
According to another aspect of the application, it is provided that a kind of expired marking method for shown data, is applied to client terminal, comprising: receive the data from server; Described data are displayed on described client end interface; For the data being displayed on client end interface, start timer, when described client end interface Data Update, regularly think highly of and open, when timer reaches default expired time, described client end interface is carried out expired mark, and the client end interface making this expired is different from non-expired client end interface.
According to another aspect of the application, it is provided that a kind of expired marking method for shown data, is applied to browser clients end, comprising: receive the data from server, comprising page data and timer; Item detail page data; With the described timer of startup, when session updates, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark, and the page making this expired is different from the non-expired page.
According to another aspect of the application, it is provided that a kind of expired marking method for shown data, is applied to browser clients end, comprising: receive the page data from server, comprising timer; Play up described page data; With startup timer, when renewal of the page, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark, and the page making this expired is different from the non-expired page.
According to another aspect of the application, it is provided that a kind of expired marking method for shown data, is applied to server, comprising: receive the request accessed from the data of client terminal; Feedback data is prepared, comprising timer according to described request; Client terminal is sent back with by feedback data.
According to another aspect of the application, it is provided that a kind of expired labelling apparatus, comprising: renewal rewards theory detection module, for detecting the renewal rewards theory of Application Program Interface; Timer, for when described renewal rewards theory detection module detects that Application Program Interface upgrades, carrying out timing operation for the data being displayed on same Application Program Interface; With expired mark module, for when described timer reaches default expired time, application programs interface carries out expired mark, makes this expired program interface be different from non-expired interface.
According to another aspect of the application, it is provided that a kind of expired mark client terminal, comprising: client data transceiver module, for being connected with server and receive and dispatch data; Data display module, for receiving the feedback data from server by described client data transceiver module and feedback data be displayed in interface; Timer, for when feedback data is displayed on interface by described data display module, carrying out timing operation for the feedback data being displayed on interface, and when interface data upgrades, regularly thinks highly of and opens; With expired mark module, for when described timer reaches default expired time, application programs interface carries out expired mark, makes this expired program interface be different from non-expired interface.
According to another aspect of the application, it is provided that a kind of expired mark client terminal, comprising: client data transceiver module, for being connected with server and receive and dispatch data; Data display module, for receiving the page data from server and item detail page by described client data transceiver module; Timer, for, after described page rendering terminates, the session being the distribution of this client terminal for server carries out timing operation, and when described session updates, regularly thinks highly of and opens;With expired mark module, for when described timer reaches default expired time, the described page being carried out expired mark, makes this expired program page be different from the non-expired page.
According to another aspect of the application, it is provided that a kind of expired mark client terminal, comprising: client data transceiver module, for being connected with server and receive and dispatch data; Data display module, for receiving the page data from server and item detail page by described client data transceiver module; Timer, for, after described page rendering terminates, carrying out timing operation for this page, and when described renewal of the page, regularly thinks highly of and opens; With expired mark module, for when described timer reaches default expired time, the described page being carried out expired mark, makes this expired page be different from the non-expired page.
According to another aspect of the application, it is provided that a kind of expired mark server, comprising: server data transceiver module, for client's side link and receive and dispatch data; Feed back module with data, for being received the request of the visit data from client terminal by described server data transceiver module, and prepare feedback data according to request, then by described server data transceiver module, feedback data is sent back client terminal; Wherein, feedback data comprises timer and/or expired time.
Compared with prior art, the application provides the advantage of embodiment to comprise:
(1) make expired data can automatically distinguish not expired data, namely provide expired protection to expired data, thus improve the network information security;
(2) for shown expired data, it is provided that the method for vague interface, or providing corresponding prompting, user's health check-up is good, reaches safety and experience takes into account.
Certainly, the arbitrary product implementing the application might not need to reach above-described all advantages simultaneously.
Embodiment
In order to make the object of the application, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing, the application is further described. It is to be understood that specific embodiment described herein is only in order to explain the application, and it is not used in restriction the application.
Definition
(1) JavaScript script language: a kind of literal translation formula script language is a kind of regime type, weak type, language based on prototype, built-in support type.Its explanation device is called as JavaScript engine, is a part for browser, and all major browsers all support JavaScript.
(2) CSS (CascadingStyleSheets, write a Chinese character in simplified form CSS): also referred to as string pattern list, hierarchical structure formula stylesheet files, it is that one is used for defining by W3C for structurizing document (as html document or XML apply) adds the machine language of pattern (such as font, spacing, color etc.) and safeguarding. Current latest edition is CSS4, is the proposed standard of W3C. CSS3 is supported by major part modern browser now.
(3) session: i.e. session is the contact between client terminal and server, and session is expired is exactly that this contact is disconnected, when user accesses again, will again set up contact.
(4) client terminal (Client): or it is called user's end, refer to corresponding with server, for client provides the program of local service.
(5) equipment (Computingdevice) is calculated: electronics that have treater and storer, that can perform computer program, includes but not limited to: computer (PC), notebook computer, panel computer, smart mobile phone, vehicle intelligent terminal, intelligent communication equipment, server etc.
Expired marking method
User is when especially terminal calculates equipment (non-server) to use calculating equipment, and owing to display screen is an open interface, on indicating meter, the responsive information of display often exists the risk of leakage, it should to protecting with security.
Present inventor finds after deliberation, by arranging timer, under timer timeout condition; application programs interface arranges expired mark; make it be different from non-expired interface and prevent interface data from leaking, the object protecting confidential data can be realized like this, avoid passive divulging a secret.
As shown in Figure 1, according to the application's embodiment, it is provided that a kind of expired marking method for shown data, comprising:
The renewal rewards theory of S11, detection Application Program Interface;
Such as, user is participating in aircraft carrier design effort, and user has needed the keel design of part seaplane carrier to chart, this design is completed by AutoCAD software, in the process of design, what Application Program Interface showed is exactly the three-dimensional structure data of keel, such as: shape, structure, dimensional data; Also comprising various associated equipment structure and interface parameter, these data Dou Shi militaries maintain secrecy data.
It should be noted that; the AutoCAD software enumerated in the embodiment of the present application is exemplary illustration; it it is not the restriction to the application; other softwares are such as the office softwares such as Word, Excel, payment related software, browser software, Games Software etc.; the technical scheme that the embodiment of the present application provides can be adopted; there is provided expired protection to realize to expired data, thus improve the network information security.
Wherein, renewal rewards theory comprises data display renewal rewards theory, namely for the renewal rewards theory of data of Application Program Interface.
Such as, during the keel data preserved before user is opened by AutoCAD, it is necessary to user interface drawing data, now comprise the renewal rewards theory of Application Program Interface. Again such as, when keel data are modified by user operation AutoCAD software, user interface needs the effect after embodying amendment, now also comprises the renewal rewards theory of Application Program Interface.
If user temporarily busy leaves in work way, then data never interact after user leaves shown by AutoCAD interface, does not just have the renewal rewards theory of corresponding Application Program Interface yet, now easily causes passive divulging a secret.
S12, after renewal rewards theory, for the data being displayed on same Application Program Interface, start timer;
In order to avoid the appearance on above-mentioned opportunity of divulging a secret, after Application Program Interface upgrades, starting timer, the implementation of this timer is not limit, it is possible to be a plug-in unit, it is also possible to be embedded among application program, it is possible to think the single program independent of application program.
S13, when timer reaches default expired time, application programs interface carries out expired mark, makes this expired program interface be different from non-expired interface.
Wherein, expired mark can comprise: arranges Application Program Interface and becomes fuzzy state, or comprises: prompting User Page is expired, and this information can cover whole user interface.
Such as, for the application A utoCAD in windows system, the interface that high-level programming language realizes is being played up after successfully, an initialize program can be activated, and this initialize program can show necessary information, it is also possible to start a timer, after certain time, a floating layer can be produced for oneself, hide the current page.
Again such as, expired time is y minute, and when timer reaches y minute after starting, prompting User Page is expired, such as can before Application Program Interface, circularly exhibiting picture, display as " interface is expired " etc.
Based on above-mentioned expired data protection measure, the security of Application Program Interface data can effectively improve.
It can be appreciated that based on aforesaid method, when the renewal rewards theory of Application Program Interface occurs, timer also restarts, and restarts timing, because the renewal of Application Program Interface illustrates that user is in use. In addition, this timer is for the whole confidential datas being displayed on same Application Program Interface, as long as namely wherein there being an item data to be updated display, timer also restarts.
When user returns to seat continuation work, it has been found that display interface, by expired mark, now can provide one to log in reciprocal process and allow user continue to use; Further, landfall process can limit the operation of other staff, improves security further.
According to another embodiment of the application, as shown in Figure 2, the above-mentioned expired marking method for shown data, after step s 13, also comprises:
S14, after expired mark, when the operation of user's application programs being detected, it is provided that user logs in authentication interface;
Such as, user leaves seat for some time, returns to continue operating application program. Clicking application program position when user moves mouse, the operation of user's application programs namely detected, now, it is provided that user logs in authentication interface, this login authentication interface is specially for the protection of interface data;
S15, when log in information checking success after, the expired mark described in cancellation;
After user inputs correct user name and password, logging in information checking success, expired mark in cancellation step S13, user can continue to use application program to carry out work.
Expired mark client approach one
The thought of the expired protection of above-mentioned interface data can also be applied in the application of C-S structure; the information that server side preserves is all much classified information and the private data of client; the mode that these data are sent request by user end to server obtains, and is then displayed on client end interface for user and uses.
As shown in Figure 3, according to the application's embodiment, it is provided that a kind of expired marking method for shown data, the method is applied to client terminal, comprising:
S21, the request sending visit data to server, these data will be displayed on client end interface;
Wherein, client terminal can comprise: the application programs such as the APP of smart mobile phone, the browser of calculating equipment, client terminal needs the ability with the data that resolution server returns.
Precious client terminal is paid for smart mobile phone APP, when operating payment treasured and carry out payment business, it sends request of data to server, content data request includes but not limited to: the information such as the account amount of money remaining sum that user is corresponding and historical operation record, and return data is displayed on client end interface, as shown in table 1.
Table 1
After above-mentioned request is sent to server, namely server feeds back corresponding data to client terminal for described request.
S22, receive from the feedback data of server;
S23, feedback data is displayed on interface;
S24, for the feedback data being displayed on interface, start timer; When interface data upgrades, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark.
Wherein, in step S22-S24, timer can realize with the language of software itself.
Such as, the Activity in the corresponding program in the interface of the application of Android phone, user interface, such as figure word interface, is all plotted on Activity, and the remaining sum treasured paying precious wallet shows that interface is exactly an Activity, the return data of analytic application server, such as, comprising expired time is 5 minutes such information, the Activity of client terminal display current data, and start a timer, during by 5 minutes, a translucent floating layer can be produced, hide current interface.
Other methods arranging expired mark are introduced in the above embodiments, repeat no more here.
Present inventor finds after deliberation; timing register and expired time is added by the data that transmit to client terminal at server; and complete corresponding timing function in client terminal and carry out expired mark; expired data are made to be different from non-expired data, prevent screen from by reading or copying; the network information security can be improved, protection confidential data and private data.
Another embodiment according to the application, a kind of expired marking method for shown data is provided, compared with embodiment illustrated in fig. 3, difference is, in above-mentioned steps S22, server comprises timer and expired time to the feedback data that client terminal provides, or only includes expired time in feedback data.
For server to client push data in the case of, it is not necessary to client terminal initiatively sends request of data.
Another embodiment according to the application, it is provided that a kind of expired marking method for shown data, the method is applied to client terminal, comprising:
Receive the data from server;
Described data are displayed on interface, and for the data being displayed on interface, start timer; With
When interface data upgrades, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark.
Expired mark client approach two
The thought of the expired protection of above-mentioned interface data can also be applied in the application of B-S structure, as shown in Figure 4, according to another embodiment of the application, it is provided that a kind of expired marking method for shown data, and the method is applied to browser clients end, comprising:
S31, the request sending visit data to server, these data are page data;
Such as; IE browser receives mailbox user name and the password (logging in 126 mailboxes) of user's input; browser sends the request of access 126 mailbox personal account webpages to server; and return data is displayed on browser interface; data content is as shown in table 2; now, the display data on client end interface also needs expired protection, in order to avoid being read by other people.
Table 2
According to another embodiment of the application, during for server to client push data, it is not necessary to client terminal initiatively sends request of data.
S32, receiving from the feedback data of server, feedback data comprises page data, timer, and wherein, timer is for the session (session) that server is the distribution of this client terminal. Now, expired time is session expired time;
S33, item detail page data;
S34, starting timer, when session updates, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark.
After the browser renders page, start timer, whether session is upgraded and monitors.
Wherein, expired mark can comprise: the state arranging expired webpage becomes fuzzy state or points out User Page expired.
According to the application's embodiment, expired mark can comprise: the page is increased watermark, and such as expired time is n minute, when timer detects n minute, starting and add watermarking process to webpage, this program can also be a JavaScript script, and what this program added is webpage watermark. Increase watermark by application programs interface or the page, prevent Application Program Interface such as Webpage to be illegally used.
According to another embodiment of the application, when timer detects n minute, the state arranging expired webpage becomes fuzzy state, and common div can be used to realize, and the css attribute style.filter of this div can arrange transparency, reaches the effect of fuzzy webpage.
According to another embodiment of the application, when timer detects n minute, prompting User Page is expired, and common div can be used to realize, this div can circularly exhibiting picture, display is such as " webpage is expired ", " expired webpage capture can not as proof " etc.
Simultaneously, it is provided that prompting button, after user clicks this button, start JavaScript program and carry out automatically refreshing web page.
In above-described embodiment, the behavior of timer and subsequent operations are all the work of client terminal (browser), unrelated with server.
According to another embodiment of the application, in step S32, the feedback data of server also comprises expired time.
Expired mark client approach three
Those skilled in the art can understand, it is expired that some website there will be no session, and such as it maintains a heartbeat with Ajax, and Ajax does a heartbeat synchronization, just can keeping session, so connection/session between this client terminal and server is can not be expired always. Such as, when after page expired, it is assumed that session is not expired, user's refresh page just can continue the session before using. If the state logged in, the state so logged in will continue.
But, the page of this kind of website, also has responsive information, is also need protection; Present inventor finds after deliberation, it is possible to carry out separately the expired protection of interface data for each page. Such as 3 pages, priority is different, it would be possible that there are 3 different expired time, but, the expired time of session can only be a value, so the timer handiness for the page is also higher.
As shown in Figure 5, according to another embodiment of the application, it is provided that a kind of expired marking method for shown data, the method is applied to browser clients end, comprising:
S41, the request sending visit data to server, these data are page data;
Such as, client terminal browser receives the network address www.sohu.com of user's input, sends the request of access this Webpage www.sohu.com to server according to this network address.
According to another embodiment of the application, server is initiatively to client push data, and step S41 can omit.
S42, client terminal receive from page data corresponding to the described request of server, and described page data comprises timer and expired time, and wherein, timer and expired time are for this page data;
Wherein, timer such as realizes with JavaScript script, it is also possible to realizing (such as IE browser) with ActiveX, the expired time of timer and timer is all by Servers installed. Expired time, such as n minute, it is possible to dynamically generate when generating the html page.
S43, play up described page data;
S44, the timer started in page data, when renewal of the page, timing is thought highly of and is opened, and when timer reaches default expired time, carries out expired mark.
During renewal of the page, such as having pressed refreshing key (such as, f5 etc.), so the page can refresh, and JavaScript can re-execute.
In this embodiment, webpage expired time and session expired time are unrelated, it is possible to early than, equal, be later than session expired time. User's refresh page, can remove the downloaded html page again, and timer also can heavily open.
Server method
Corresponding with above-mentioned all kinds of client approach, according to the application's embodiment, it is provided that a kind of expired marking method for shown data, is applied to server. As shown in Figure 6, the method comprises:
S51, the request receiving the visit data from client terminal;
S52, according to request prepare feedback data, comprising timer and/or expired time;
An embodiment according to the application, timer is for the session that server is the distribution of this client terminal.
Another embodiment according to the application, timer is for the page data that server is that this client terminal prepares.
Another embodiment according to the application, client-requested page data, such as, server generates and comprises timer (realizing with JavaScript) and expired time in html file, each page can be generated by this timer and expired time, it is also possible to selects the important page to generate.
S53, feedback data is sent back client terminal.
Those skilled in the art according to specification sheets, can adopt the conventional meanses such as DSP/FPGA/ASIC, it is achieved the function module of the claim to a product that computer program is corresponding.
Expired labelling apparatus
With above-mentioned expired marking method accordingly, according to the application's embodiment, it is provided that a kind of expired labelling apparatus. As shown in Figure 7, this expired labelling apparatus comprises:
Renewal rewards theory detection module 11, for detecting the renewal rewards theory of Application Program Interface;
Timer 12, for when renewal rewards theory detection module 11 detects that Application Program Interface upgrades, carrying out timing operation for the data being displayed on same Application Program Interface;
Expired mark module 13, for when timer 12 reaches default expired time, application programs interface carries out expired mark, makes this expired program interface be different from non-expired interface. Expired marking method describes in the above-described embodiments in detail, repeats no more here.
According to another embodiment of the application, when, after the expired time that timer reaches default, expired mark module 13 is also for providing user to log in authentication interface, and the expired mark described in cancelling after logging in information checking success.
Expired mark client terminal
Corresponding with above-mentioned client approach, according to the application's embodiment, it is provided that a kind of expired mark client terminal.As shown in Figure 8, this client terminal comprises:
Client data transceiver module 25, for being connected with server and receive and dispatch data;
Request of data module 21, for being sent the request of visit data to server by client data transceiver module 25, these data will be displayed on client end interface;
According to another embodiment of the application, during for server to client push data, it is not necessary to client terminal initiatively sends request of data, now, client terminal does not comprise request of data module 21;
Data display module 22, for receiving the feedback data from server by client data transceiver module 25 and feedback data be displayed in interface;
Timer 23, for when feedback data is displayed on interface by data display module 22, carrying out timing operation for the feedback data being displayed on interface, and when interface data upgrades, regularly thinks highly of and opens;
Expired mark module 24, for when timer 23 reaches default expired time, application programs interface carries out expired mark, makes this expired program interface be different from non-expired interface.
According to the application's embodiment, server comprises timer and/or expired time to the feedback data that client terminal provides.
Expired mark mode describes in the above-described embodiments in detail, repeats no more here.
According to another embodiment of the application, it is provided that a kind of expired mark client terminal. It is with the difference of the embodiment shown in Fig. 8: timer restarts when session updates.
According to another embodiment of the application, it is provided that a kind of expired mark client terminal. It is with the difference of the embodiment shown in Fig. 8: timer restarts when renewal of the page.
Expired mark server
With above-mentioned server method accordingly, according to the application's embodiment, it is provided that a kind of expired mark server. As shown in Figure 9, this expired mark server comprises:
Server data transceiver module 31, for client's side link and receive and dispatch data;
Data feedback module 32, for being received the request of the visit data from client terminal by server data transceiver module 31, and is prepared feedback data according to request, then by server data transceiver module 31, feedback data is sent back client terminal.
Wherein, feedback data comprises timer and/or expired time.
The advantage of above-described embodiment comprises: (1) makes expired data can automatically distinguish not expired data, namely provides expired protection to expired data, thus improves the network information security; (2) for shown expired data, it is provided that the method for vague interface, or providing corresponding prompting, user's health check-up is good, reaches safety and experience takes into account.
It should be noted that and understand, when not departing from the spirit and scope of the application required by accompanying claim, it is possible to the application of foregoing detailed description is made various amendment and improvement. Therefore, it is desired to the scope of the technical scheme of protection is not by the restriction of given any specific exemplary teachings.