This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2013-065228, filed on Mar. 26, 2013; the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to an information output device, an information manipulation device, and a computer program product.
In recent years, a technology has been developed that enables an information manipulation terminal, such as a smartphone or a tablet, to connect to a TV via an interface for the purpose of operating the TV. For example, in the information manipulation terminal, a TV operation application is installed that is capable of obtaining TV program information as well as switching TV programs.
However, in the abovementioned conventional technology, no concrete technical measures are disclosed to deal with a situation in which the TV gets operated without a clear permission from the user.
According to an embodiment, an information output device includes a device operation command receiving unit, an origin information receiving unit, a tuner unit, a private code managing unit, a private code verifying unit, an application executing unit, an application origin verifying unit, and a device operation command processing unit. The device operation command receiving unit is configured to receive a device operation command via a first network interface by which the information output device is connected to an information manipulation device. The origin information receiving unit is configured to receive a first set of origin information of an application that sends the device operation command, via the first network interface. The application is executed in the information manipulation device. The tuner unit is configured to perform a decoding process of a broadcast program and program related information from broadcasting waves that are received. The private code managing unit is configured to store a private code on a device-by-device basis. The private code verifying unit is configured to obtain the private code from the information manipulation device, and verify whether the obtained private code matches with the private code stored in the private code managing unit. The application executing unit is configured to execute an application. The application origin verifying unit is configured to determine whether the first set of origin information that has been received matches with a second set of origin information of the application being executed by the application executing unit. The device operation command processing unit is configured to allow execution of the device operation command when the application origin verifying unit verifies that the sets of origin information match and when the private code verifying unit verifies that the private codes match, and execute the device operation command when the execution is allowed.
Exemplary embodiments of the invention are described below.
A WEB application points to an application that is executable in the execution environment of a WEB browser, which is capable of interpreting the HTML (which stands for HyperText Markup Language) or JavaScript (registered trademark). Herein, it is possible to use the HTML version 4 or the HTML version 5. Generally, a WEB application includes a plurality of page files and media files. A media file points to a file containing still image or movie data in a format such as the JPEG format, the GIF format, or the MPEG format; or points to a file containing audio data in the MP3 format or the like. In contrast, a page file sometimes contains arrangement information of characters and images that is written in the HTML; contains display character data; and contains control program information such as JavaScript (registered trademark). Moreover, from the HTML5 or JavaScript (registered trademark), it is possible to communicate with an HTTP server or a WebSocket server using the HTTP protocol (HTTP stands for HyperText Transfer Protocol) or the WebSocket protocol.
A platform-specific application points to an application that is executed not in a WEB browser but in an operating system or in a virtual machine; and is installed in a processor or in a virtual machine. Such a platform-specific application is distributed as a package in which an application execution file (an execution binary file) and data, such as still image data or text data, used in the application are packaged in a single file.
Meanwhile, as far as the method of digital broadcasting is concerned; various methods such as the ISDB method, the DVB method, and the ATSC method can be implemented. In the first embodiment, there is no restriction about using a particular method. In the following explanation, it is assumed as an example that the ISDB method is implemented and the broadcasting contents are transmitted in the MPEG2-TS format. The information manipulation device 1 and the information output device 2 are connected by a network (wireless LAN) 7 that is either a wired network or a wireless network. The information manipulation device 1 sends device operation commands to the information output device 2 for the purpose of manipulating a variety of functionality of the information output device 2.
Herein, as an example, the information manipulation device 1 is assumed to be a handheld terminal such as a tablet or a smartphone. Moreover, as an example, the information output device 2 is assumed to be a terminal such as a digital television, a set-top box, or a digital recorder that receives broadcasting waves.
The information manipulation device 1 is connected to the WEB application distribution server 4 and the PF application distribution server 5 via Internet 8; and receives WEB applications from the WEB application distribution server 4 and receives PF applications from the PF application distribution server 5. The information output device 2 is connected to a usage permit distribution server (not illustrated) via the Internet 8.
Regarding the physical layer and the link layer to be used to send device operation commands from the information manipulation device 1 to the information output device 2, it is possible to implement various communication configurations such as infrared rays, a wireless local area network (LAN) compatible to the IEEE802.11 standard, or Ethernet (registered trademark). With reference to
A device operation command is issued with the aim of controlling a function of the information output device 2. Thus, a device operation command can be an acquisition command that is issued to obtain program related information included in a broadcast program received from the broadcasting waves by the information output device 2. Alternatively, a device operation command can be an acquisition command that is issued to obtain program related information stored in a memory in the information output device 2. Still alternatively, a device operation command or can be an acquisition command that is issued to obtain identification information stored in a memory in the information output device 2. Such commands are categorized as broadcast related commands.
Similarly, a device operation command can also be a channel selection command or a volume adjustment command; an input switching command that is issued to switching from a broadcasting tuner input to an external input; a list display command that is issued to display a list of recorded contents; a playback command that is issued to playback specified recorded contents; a playback command that is issued to instruct playback of specified recorded contents starting from a particular position; or a deletion command that is issued to delete specified recorded contents. Such commands are categorized as independent operation commands.
The information manipulation device 1 includes, as a separate connection other than the connection established for communicating with the information output device 2, an IP interface for the purpose of communicating with the WEB application distribution server 4 and with the PF application distribution server 5. In an identical manner, the information output device 2 also includes, as a separate connection other than the connection established for communicating with the information manipulation device 1, an IP interface for the purpose of communicating with the WEB application distribution server 4. Regarding the physical layer and the link layer to be used in the IP interfaces, it is possible to implement various communication configurations such as a wireless LAN compatible to the IEEE802.11 standard or Ethernet (registered trademark). As far as the network layer is concerned; in the case of using the Internet protocol (IP), either IPv4 or IPv6 can be used. Herein, it is assumed that such communication protocols are implemented using the HTTP (which stands for Hypertext Transfer Protocol) or the HTTPS (which stands for Hypertext Transfer Protocol over Secure Socket Layer) of the Internet protocol.
The information manipulation device 1 downloads a PF application from the PF application distribution server 5; downloads a WEB application from the WEB application distribution server 4; and executes those applications. The information manipulation device 1 can download a plurality of different PF applications from a plurality of PF application distribution servers 5 and can download a plurality of WEB applications from a plurality of WEB application distribution servers 4.
The information output device 2 downloads a WEB application from the WEB application distribution server 4 and executes that WEB application. The information output device 2 can download a plurality of WEB applications from the WEB application distribution server 4. Moreover, the information output device 2 receives broadcasting waves through a coaxial cable. The broadcasting waves contain the broadcast programs, the program related information, uniform resource locators (URLs) of WEB applications, and WEB applications. In the example illustrated in
The application storing unit 30 records the cache of PF applications and WEB applications, records the data used by PF applications, and records the data stored by WEB applications. As far as the medium in which the application storing unit 30 records the data is concerned; it is possible to use a general-purpose recording medium such as a built-in hard disk drive of the information manipulation device 1, a built-in flash memory of the information manipulation device 1, an external hard disk drive, or an SD card.
The HTTP processing unit 11 performs communication with a WEB server using the HTTP protocol or the HTTPS protocol; and performs operations such as HTTP client processing, TCP/IP processing, link layer processing, and physical layer processing that are required in obtaining a WEB application as described later. Moreover, the HTTP processing unit 11 performs a connection establishing operation for the purpose of obtaining a WEB application from the Web application distribution server 4. Furthermore, in response to a request (described later) received from the application obtaining unit 12, the HTTP processing unit 11 sends an acquisition request (described later) to the WEB server for obtaining a PF application and a WEB application, and receives the PF application and the WEB application specified in the acquisition request. Then, the HTTP processing unit 11 sends the PF application and the WEB application to the application obtaining unit 12.
Thus, the application obtaining unit 12 makes use of the HTTP processing unit 11 and obtains a PF application and a WEB application from the WEB server. The application cache unit 13 stores, either entirely or partially, the data of the PF application and the data of the WEB application, which are obtained by the application obtaining unit 12, as cache in the application storing unit 30. The details regarding which portion of a WEB application is to be stored as cache in the application storing unit 30 are written in advance in a configuration file by the developer of that WEB application. According to that configuration file, the application cache unit 13 stores the specified portion as cache in the application storing unit 30.
The input receiving unit 15 receives information that is input by a user using an input device such as a touchpad, a keyboard, or a mouse; and notifies the application executing unit 16 about the received information. The application executing unit 16 executes the WEB application and the PF application obtained by the application obtaining unit 12, or executes a WEB application and a PF application stored in the application storing unit 30. When an application is a WEB application, it is executed using a WEB browser. The screen output unit 17 displays a screen, which is generated by the application executing unit 16, on a monitor (not illustrated) of the information manipulation device 1. Alternatively, the screen output unit 17 outputs the screen on an external output interface, which points to an interface such as an HDMI (which stands for High-Definition Multimedia Interface), a composite interface, an S-Video interface, or a component interface. Of course, it is possible to use a wireless interface such as The WiFi Display interface or the WiDi interface.
The WebSocket client processing unit 18 performs client processing with the aim of performing communication with the information output device 2 using a protocol called the WebSocket protocol that is defined in the RFC6455 specification. The data (a device operation command) that is sent from the device operation command sending unit 19 or the application executing unit 16 is processed by the WebSocket client processing unit 18 in such a way that the data is appended with a header according to the format defined in the RFC6455 specification and is then sent to the information output device 2. The WebSocket client processing unit 18 appends, to the header of a WebSocket connection, the domain name (origin information) of a WEB application that is being executed by a WEB application executing unit 22a (described later) and that has issued a command for sending data to the information output device 2. Moreover, the WebSocket client processing unit 18 performs a connection establishment operation for the purpose of sending a device operation command to the information output device 2.
In response to a command from the application executing unit 16, the device operation command sending unit 19 sends a device operation command to the information output device 2 using the WebSocket client processing unit 18. When a message received by the HTTP processing unit 11 contains an HTTP redirect command, the redirect processing unit 21 obtains the URL specified in that command and instructs the application obtaining unit 12 to obtain the WEB application specified by that URL. However, it is not mandatory to dispose the redirect processing unit 21.
The search processing unit 20 searches, in response to a request from an application, whether or not other devices such as the information output device 2 are present on the network. If the information output device 2 is present, the search processing unit 20 obtains the IP address of the information output device 2 and the TCP port number of the WebSocket. More particularly, in response to a request from an application, the application executing unit 16 sends a device search request to the search processing unit 20. Then, the search processing unit 20 notifies the application executing unit 16 about the search result, and in turn the application executing unit 16 notifies the application about the search result. That is, the search processing unit 20 performs a network session establishment operation in which it sends a device search request to the information output device 2 and receives the name (such as an ID or the domain name) and the IP address of the information output device 2 from the information output device 2. However, it is not mandatory to dispose the search processing unit 20.
More particularly, the search processing unit 20 has an in-built third connection unit for performing the network session establishment operation so as to obtain identification information such as the IP address of the information output device 2. Once the third connection unit obtains the IP address of the information output device 2, the WebSocket client processing unit 18 performs a connection establishment operation for sending a device operation command and a usage permit to the information output device 2 based on the IP address of the information output device 2 received by the search processing unit 20. Herein, for the sake of simplicity in explanation, the expression “third connection unit” is used. In that regard, it is also possible to use a connectionless protocol such as the user datagram protocol (UDP) for the purpose of device search. In that case, it is not always necessary that the connection is established using a handshake.
The WebSocket client processing unit 18a performs client processing with the aim of performing communication with the information output device 2 using the WebSocket protocol. Thus, the WebSocket client processing unit 18a performs an equivalent operation to the operation performed by the WebSocket client processing unit 18 illustrated in
A Web application obtains a PIN (authentication information) stored in a PIN storing unit 23, and sends the PIN to the PF application executing unit 22b. Herein, a PIN points to a password (a private code or a PIN code) and is used in the authentication with the information output device 2. The WebSocket client processing unit 18a of the PF application executing unit 22b sends the PIN to the information output device 2 using the WebSocket protocol.
The WEB application executing unit 22a is implemented in a general-purpose Web browser; executes Web applications as a function of the Web browser; and includes the PIN storing unit 23. Herein, the PIN storing unit 23 temporarily stores the PIN value received by the input receiving unit 15. Thus, in response to a request from the Web application 10, the PIN storing unit 23 stores therein the PIN value received by the input receiving unit 15 and manages the PIN value on a domain-by-domain basis of the Web application distribution server 4 that is the source of the Web application 10. There is a possibility that the information manipulation device 1 communicates with a plurality of Web application distribution servers 4; obtains a plurality of different Web applications 10; and executes those Web applications 10. In order to restrict the Web applications 10 that are allowed using the stored PIN; the range of domains of the Web applications 10 for which the PIN is allowed to be used is specified and is stored in the information manipulation device 1. More particularly, in the case of storing the PIN as a cookie in the information manipulation device 1; a Web application can specify the domain name thereof as a parameter such as Set-Cookie header, which is defined in the RFC2965 specification or the RFC6265 specification, of a command for storing a cookie.
When a PIN usage request is received from a Web application 10, the PIN storing unit 23 verifies whether or not the domain name of that Web application 10 is included in the range of domains specified by the Web application 10 that stored the PIN. Only when the domain name is included in the range of domains, the corresponding Web application 10 is allowed to use the PIN. For example, assume that a Web application 10 stores the PIN as a cookie in the information manipulation device 1. At that time, if the range of usage (domains) is specified to be “example.foo.bar.com”, then any Web application 10 wishing to use the PIN needs to have the domain name such as “example.foo.bar.com” or “a.example.foo.bar.com” that contains “example.foo.bar.com”. If the domain of a Web application 10 is “foo.foo.bar.com”, then that domain is not included in the range of domains specified by the Web application 10 that stored the PUN. Hence, if the Web application 10 having “foo.foo.bar.com” as the domain issues a PIN usage request, the PIN storing unit 23 imposes a restriction to not return the PIN.
Thus, if the domain name of the Web application 10 that wishes to request for the PIN is outside the range of domains specified by the Web application 10 that stored the PIN, and if the former Web application 10 issues a PIN usage request for the PIN stored in the PIN storing unit 23; then the PIN storing unit 23 either does not return anything or returns an error.
The application obtaining unit 12 further includes a PF application obtaining unit 26 (a first application obtaining unit), which obtains the PF application 9 by communicating with the PF application distribution server 5 via the HTTP processing unit 11; and includes a Web application obtaining unit 27, which obtains the Web application 10 by communicating with the Web application distribution server 4 via the HTTP processing unit 11.
The application cache unit 13 further includes a PF application cache unit 28 that stores the PF application 9, which is obtained by the PF application obtaining unit 26, in the application storing unit 30; and includes a Web application cache unit 29 that stores the Web application 10, which is obtained by the Web application obtaining unit 27, in the application storing unit 30. As far as the technology for storing a Web application 10 as cache in the application storing unit 30 is concerned, it is possible to use the AppCache function of the HTML5 specifications standardized by W3C.
Explained below are the details of the WEB application executing unit 22a. Since the WEB application executing unit 22a is a WEB browser, it can store Web applications in the application storing unit 30 of the information manipulation device 1 according to the web storage specifications that are being standardized by W3C. Alternatively, the WEB application executing unit 22a can store Web applications in the application storing unit 30 of the information manipulation device 1 according to HTTP Cookie defined in the RFC6265 specification.
The HTTP processing unit 31 (a second network interface) communicates with a Web server using the HTTP protocol; and performs operations such as HTTP client processing, TCP/IP processing, link layer processing/physical layer processing that are required in obtaining a WEB application as described later. The tuner unit 32 extracts, from the broadcasting waves received from an antenna, a particular broadcast program and program related information, a Web application to be executed by the WEB application executing unit 22, and the URL indicating the location of the Web application to be executed by the WEB application executing unit 22. Then, the tuner unit 32 performs decoding of the broadcast programs and the program related information.
The screen output unit 33 outputs moving image data and audio data, which is output from the tuner unit 32, to an internal liquid crystal display (LCD) monitor (not illustrated) or an external output interface (not illustrated). Herein, the external output interface points to an interface such as an HDMI (which stands for High-Definition Multimedia Interface), a composite interface, an S-Video interface, or a component interface.
The device operation command processing unit 34 processes a device operation command, which is received from the information manipulation device 1 or an from infrared remote controller, based on verification results of the application origin verifying unit 43 and the PIN verifying unit 44; controls the tuner unit 32; obtains the program related information from the tuner unit 32; and sends instructions for switching the pictures to be displayed on the screen output unit 33.
The remote controller command processing unit 35 processes a command received from an infrared remote controller (not illustrated) and notifies the device operation command processing unit 34 about the command. However, it is not mandatory to dispose the remote controller command processing unit 35.
The PIN managing unit 39 (a private code managing unit) manages a password (a private code; more particularly, a PIN code; hereinafter abbreviated as PIN) corresponding to each information output device. As far as the PIN generating method is concerned, any one of the following methods can be implemented: a method in which the PIN value is written at the time of factory shipment; a method in which the information output device 2 generates a random number using a random number generator (not illustrated) and sets that random number as the PIN value; a method in which the information output device 2 receives a PIN generation command via an infrared remote controller command based on an instruction from the user, generates a random number using a random number generator (not illustrated), and sets that random number as the PIN value; a method in which the information output device 2 receives character string data or numeric string data via an infrared remote controller command based on an instruction from the user, and sets the received data as the PIN value; a method in which the PIN value is generated based on the MAC address of the HTTP processing unit 31; and a method in which the abovementioned methods are combined.
The PIN verifying unit 44 (a private code verifying unit) verifies whether or not the PIN that has been sent from the information manipulation device 1 via a WebSocket connection is identical to the value registered in the PIN managing unit 39, and notifies the device operation command processing unit 34 about the verification result.
The WebSocket server processing unit 40 (corresponding to a WebSocket processing unit, a first network interface, a device operation command receiving unit, and an origin information receiving unit) performs server processing with the aim of performing communication with the information manipulation device 1 according to a protocol called WebSocket that is defined in the RFC6455 specification. The WebSocket server processing unit 40 receives data such as a device operation command or a PIN that is sent from the information manipulation device 1; and distributes the data to the PIN verifying unit 44, the application origin verifying unit 43, and the device operation command processing unit 34.
The search processing unit 41 returns the name and the IP address of the information output device 2 as well as the TCP port number of the WebSocket server processing unit 40 in response to a device search request (described later) received from the information manipulation device 1. As far as the protocol for device searching is concerned, it is possible to implement a name retrieval method according to the DLNA standard (DLNA stands for Digital Living Network Alliance), the UPnP standard (UPnP stands for Universal Plug and Play), or the NetBIOS (which stands for Network Basic Input Output System). In this way, in response to a device search request received from the information manipulation device 1, the search processing unit 41 performs a network session establishment operation for returning the name and the IP address of the information output device 2. However, it is not mandatory to dispose the search processing unit 41.
The application origin verifying unit 43 verifies whether or not header information specified in a device operation command, which is sent from the information manipulation device 1 and received by the WebSocket server processing unit 40, is correct; and notifies the device operation command processing unit 34 about the verification result. For that reason, the application origin verifying unit 43 inquires the WEB application executing unit 22 about the origin of the Web application being executed by the WEB application executing unit 22, that is, inquires the WEB application executing unit 22 about the domain name of the Web server from which the Web application was downloaded; and obtains the origin information (the domain name).
The Web application obtaining unit 27 communicates with the Web application distribution server 4 based on the URL that is included in the broadcasting waves received by the tuner unit 32, and obtains a Web application using the HTTP processing unit 31. The WEB application executing unit 22 is implemented using a general-purpose Web browser, and executes the Web applications obtained by the Web application obtaining unit 27 or the Web applications obtained from the tuner unit 32. Moreover, the WEB application executing unit 22 manages the origin information of the Web application that is being currently executed. That is, the WEB application executing unit 22 manages the domain name of the Web application distribution server 4 from which the Web application being currently executed was obtained. If the WEB application executing unit 22 switches to another Web application that is to be executed, then the WEB application executing unit 22 manages the domain name of the Web application distribution server 4 from which the Web application to be executed was obtained.
The HTTP server processing unit 51 performs communication with the information manipulation device 1 and the information output device 2 using the HTTP protocol or the HTTPS protocol; and performs operations such as HTTP server processing, TCP/IP processing, link layer processing/physical layer processing that are required in obtaining WEB application acquisition requests and performing Web application distribution processing. The Web application storing unit 52 is used to store Web applications. Each Web application is stored after being assigned a unique ID (Web application ID) thereto.
The Web application registration processing unit 53 stores Web applications in the Web application storing unit 52. With reference to
The PF application storing unit 62 is used to store the PF applications. Each PF application is stored after being assigned a unique ID thereto. Meanwhile, as described above, usually a Web application is configured with a plurality of resources (files) such as still image data and text data. In contrast, a PF file is distributed by compressing those resources in a single file. Thus, corresponding to a single unique ID, a single PF application file is provided. The PF application registration processing unit 63 stores (registers) the PF applications in the PF application storing unit 62. In
The PF application distributing unit 64 receives, from the information manipulation device 1 via a network, specification of an application-specific ID and an instruction for sending the corresponding PF application. In response to that instruction, the PF application distributing unit 64 searches the PF applications stored in the PF application storing unit 62 for the PF application corresponding to the specified ID; and sends the file representing that PF application to the information manipulation device 1 via the HTTP server processing unit 61.
During the information manipulation device setup phase, the information manipulation device 1 communicates with the PF application distribution server 5; downloads a PF application from the PF application distribution server 5; and installs therein the PF application (Step S101). The information output device operation phase is divided into two levels, namely, a first level and a second level. In the first level, based on the URL specified in the PF application, the information manipulation device 1 communicates with the Web application distribution server 4 and downloads a Web application from the Web application distribution server 4 (Step S102); and stores therein the PIN that is input to the input receiving unit 15 (Step S103). The operation of downloading and executing the Web application performed by the information manipulation device 1 is triggered by the PF application installed during the information manipulation device setup phase.
In the second level, the information manipulation device 1 communicates with the information output device 2 using a Web application and sends the PIN and a device operation command (Step S104); and operates the information output device 2 (Step S105).
In the example illustrated in
Then, the PF application distribution server 5 searches the PF applications stored in the PF application storing unit 62 for the PF application having the application-specific ID specified by the information manipulation device 1, and obtains that PF application (Step S204). Subsequently, the PF application distributing unit 64 sends the obtained PF application to the information manipulation device 1 as the response to the PF application send request (Step S205). Thus, the information manipulation device 1 receives and downloads the PF application A from the PF application distribution server 5 using the PF application obtaining unit 26 (Step S206); and installs therein the PF application A (Step S207). The installed PF application A is stored in the application storing unit 30.
The local Web application 82 verifies whether or not the PIN is stored in the PIN storing unit 23. The local Web application 82 is written in the HTML4/HTML5 or JavaScript (registered trademark), and is executed by the WEB application executing unit 22a (browser) of the information manipulation device 1. Moreover, the local Web application 82 can either be included in a package of the corresponding PF application or be placed in the Web application distribution server 4 in an obtainable manner via a network using the application obtaining unit 12. In the case of obtaining the local Web application 82 via a network, the local Web application 82 is not included in the PF application. The Web application URL 83 is the URL indicating the location of the corresponding Web application. In the case when a Web application is distributed by being included in the package of the corresponding PF application, the Web application URL 83 indicates the location at which the local Web application is stored in the information manipulation device 1. On the other hand, if a Web application is stored in the Web application distribution server 4, the Web application URL 83 indicates the location at which the local Web application is placed in the Web application distribution server 4. When a Web application is included in the package of the corresponding PF application, the Web application URL 83 indicates the location (file path) at which the local Web application is stored. In the following explanation; firstly a case is explained in which a WEB application is distributed by being included in the package of the corresponding PF application.
The Web-application-executing-unit calling command 84 is a computer program written in order to run the WEB application executing unit 22a, with the Web application URL 83 serving as the argument. Thus, the Web application indicated by the Web application URL 83 gets executed by the WEB application executing unit 22a. The resource 85 points to the icon (still image data), the explanatory text, or the version number of the corresponding PF application at the time of displaying a list of PF applications installed in the information manipulation device 1.
The subsequent operations are performed by the WEB application executing unit 22a. As described above, the Web application #1 verifies whether or not the PIN is stored in the PIN storing unit 23 (Step S303). If the Web application #1 determines that the PIN is not stored in the PIN storing unit 23 (No at Step S303), then the WEB application executing unit 22a refers to the local Web application #1 for the URL of a Web application #2 that obtains the PIN input; obtains the Web application indicated by that URL (i.e., obtains the Web application #2) from the Web application distribution server 4; and executes that Web application (Step S306 to Step S309). More particularly, the information manipulation device 1 sends a Web application send request to the Web application distribution server 4 using the HTTP processing unit 31 and using the HTTP protocol (or the HTTPS protocol); obtains the Web application #2 from the Web application distribution server 4; and executes the Web application #2. Then, the Web application #2 obtains the PIN that is input using the input receiving unit 15 (Step S310) and stores the PIN value in the PIN storing unit 23 (Step S311).
In this example, since the storage destination of the Web application #2 is set to be the Web application distribution server 4, the information manipulation device 1 obtains the Web application #2 from the Web application distribution server 4 and executes the Web application #2 using the WEB application executing unit 22a.
Meanwhile, if it is determined that the PIN is already stored in the PIN storing unit 23 (Yes at Step S303), then the WEB application executing unit 22a refers to the local Web application #1 for the URL of a Web application #3 and executes the Web application indicated by that URL (i.e., executes the Web application #3). Meanwhile, prior to the operation of determining whether or not the PIN of the Web application #1 is stored; the search processing unit 20 of the information manipulation device 1 can be used to search the information output device 2, which is to be operated from now, and to obtain the unique ID of that information output device 2.
Given below is the explanation regarding the Web application #2. Herein, the Web application #2 provides a user interface for allowing the input of a PIN from the input receiving unit 15 of the information manipulation device 1, obtains the PIN from the input receiving unit 15, and stores the PIN in the PIN storing unit 23 (i.e., the Web application #2 is a PIN input obtaining Web application). In order to obtain the Web application #2, the information manipulation device 1 sends a URL, such as http://example-Webserver.com/input_PIN.php?appID=x, to the Web application distribution server 4.
In this example, a Web application acquisition request, in which a unique Web application ID “X” is specified, is sent to the Web application distribution server 4 represented by “example-WEBserver.com”. An example of another URL can be http://example-Webserver.com/appIDx/. In this example, it is assumed that the Web applications are stored by directories in the Web application distribution server. Meanwhile, in these examples, the user interface for allowing the input of the PIN is different for each Web application. However, alternatively, the Web application distribution server 4 can provide the same user interface for allowing PIN input in a plurality of Web applications.
As illustrated in
As far as the method of storing the PIN is concerned, it is possible to implement either of the following two methods: a method of storing the PIN as a file in a cookie of the browser; and a method of storing the PIN as a hash fragment. In the case of storing the PIN as a cookie, the Web application #2 sets the URL range in such a way that the PIN value stored by the Web application #2 is obtainable by the Web application #3. While the Web application #3 obtains the PIN value from the cookie, it is determined whether or not the PIN value is obtainable by the Web application #3. Since the setting is done to enable the Web application #3 to obtain the PIN value, the determination result indicates a success. In the case of storing the PIN as a hash fragment, the Web application #2 can configure a computer program in the following manner to allow the screen input of the PIN. <form method=“POST” action=“http://example-Webserver.com/Webapp3.php?getWebapp.php#”> <input type=“text” name=“PIN”> <input type=“submit” value=“send”>
When the PIN is input, the Web application #2 instructs the Web application distribution server 4 to send a message about obtaining the Web application #3. Because of being a hash fragment, the PIN is not sent to the Web application distribution server 4. However, when the Web application #3 obtains its own URL, the PIN value included in the hash fragment can be obtained. Meanwhile, in order to simplify the configuration of the PIN input obtaining Web application, the PIN value may be sent to the Web application distribution server 4.
The abovementioned explanation is given for the configuration in which a PF application distributed by the PF application distribution server 5 includes local Web applications. Alternatively, it is also possible to have a configuration a PF application distributed by the PF application distribution server 5 does not include local Web applications.
More particularly, the Web application obtaining unit 27 of the information manipulation device 1 sends a Web application (Web application #4) acquisition request to the Web application distribution server 4 using the HTTP processing unit 11 and using the HTTP protocol (or the HTTPS protocol). This request can be issued using the normal HTTP GET request. In response, the Web application distribution server 4 returns the Web application #4 (Step S404 and Step S405). Then, the information manipulation device 1 executes the Web application #4 using the WEB application executing unit 22a (Step S406). The subsequent operations are performed by the WEB application executing unit 22a. Although the locations of the Web application #1 and the Web application #4 are different, the processing details can be the same. That is, it is verified whether or not the PIN is stored in the PIN storing unit 23 of the information manipulation device 1 (Step S407). If it is determined that the PIN is not stored in the PIN storing unit (No at Step S407), then the URL of the Web application #2 written in the local Web application #4 is referred to and the Web application indicated by that URL (i.e., the Web application #2) is obtained from the Web server and executed (Step S408). On the other hand, if it is determined that the PIN is stored (Yes at Step S407), then the system control proceeds to Step S304.
In this way, if Web applications are not included in a PF application, it becomes possible to reduce the overall file size of the PF application. Not only that, since the Web application #4 is edited in the Web application distribution server 4; it becomes possible, even after the installation of the PF application, to change the behavior of the Web application (the Web application #4) that is executed after the execution of the PF application. In the case of downloading a Web application and including it in the PF application, it is necessary that the Web application developer finishes the implementation of the Web application no later than the information manipulation device setup phase. On the other hand, in the case when the Web application is not included but only the URL of the Web application is included in the PF application, then the processing details of the Web application or the screen design need not be complete until the Web application is downloaded during the information output device operation phase (first level). Moreover, the timing of executing the information output device operation phase (first level) is different for each user. Hence, the contents, such as character logos and announcements, to be displayed in the Web application #4 in a particular period of time can be set differently than the contents to be displayed in the Web application #4 in another period of time. Furthermore, there is also an advantage that the contents to be displayed in the Web application #4 can be changed for each user.
Given below is the explanation regarding the information output device operation phase (second level).
However, since such program related information is generated by a broadcasting station, it is desirable that unauthorized copying and alternation of the program related information is prevented in an identical manner to the program contents. Thus, a case is considered in which, based on a request issued by a Web application running in the information manipulation device 1, the program related information is sent from the information output device 2 to the information manipulation device 1 and is handled by a Web application running in the information manipulation device 1. In case that Web application is not an authorized Web application, then there is a risk that the program related information is copied and used in a manner counter to the intentions of the broadcasting station. Not only that, in case the Web application is not an authorized Web application, there is a risk that the program related information obtained from the information output device 2 is altered thereby causing confusion for the viewers. For example, there is a risk that the information on program listing is rewritten in such a way that the information of the program scheduled to be broadcast is not displayed. Moreover, there are times when the information output device 2 stores therein the following information: the information such as the post office name that enables identification of the location of the information output device 2; the program viewing history; and the result of program questionnaires answered by the users. Such information sometimes falls under the category of private information. Hence, in case a Web application is not an authorized Web application, there is a risk that the private information gets leaked.
Regarding a Web application being executed by the WEB application executing unit 22 of the information output device 2, whether or not the Web application functions as per the intention of the broadcasting station is able to be determined in the information output device 2 by confirming the URL and the domain name used in obtaining that Web application. However, a Web application running in the information manipulation device 1 cannot be directly confirmed from the information output device 2. Hence, the information output device 2 has no means of knowing whether or not a Web application running in the information manipulation device 1 is an authorized Web application. In that regard, prior to executing a device operation command sent from the information manipulation device 1, that is, prior to sending the program related information; the information output device 2 determines whether or not a Web application running in the information manipulation device 1 is an authorized Web application by implementing the method given below. Only when the Web application is determined to be an authorized Web application, the information output device 2 provides a means of executing the command operation command. With that, it becomes possible to resolve the security issue.
Assume that the user of the information manipulation device 1 presses a display button, which is used in displaying the program related information of the program (the broadcast program contents) that is being currently displayed in the information output device 2. At that time, the Web application of the information manipulation device 1 sends, as a device operation command, a command instructing the information output device 2 to send the program related information of the program (the broadcast program contents), which is being currently displayed in the information output device 2, to the information manipulation device 1.
The Web application #3 receives the abovementioned command from the input receiving unit 15 and attempts to obtain the PIN stored in the PIN storing unit 23. At the time when a Web application stores a PIN in the PIN storing unit 23, a range of Web applications that is allowed to be used the PIN is specified by the PIN storing unit 23. When a PIN acquisition request for obtaining the PIN stored in the PIN storing unit 23 is received from a Web application, it is verified whether or not that Web application falls in the range of Web applications. Only when the Web application falls in the range of Web applications, the use of the PIN is allowed and the PIN is sent to the Web application #3. As the range of Web applications that are allowed to be used the PIN; the range of URLs of the Web applications is used. Thus, at the time when the Web application #2 stores the PIN in the PIN storing unit 23, it specifies the range of URL domains. Herein, assume that the Web application #2 specifies the domain of the URL of itself. When the Web application #3 requests the PIN storing unit 23 about using the PIN, the PIN storing unit 23 verifies whether or not the Web application #3 falls in the range of domains specified by the Web application #2. In this particular case, since the Web application #2 and the Web application #3 are identical, the Web application #3 is allowed to obtain the PIN.
In this way, when a Web application requests the PIN storing unit 23 about using the PIN; the PIN storing unit 23 verifies whether or not the domain of the Web application distribution server 4, which distributed that Web application, falls in the range specified by the Web application #2. If a Web application, which is sent by a Web server having a different domain name than the domain name of the Web application distribution server 4, issues a request for using the PIN; the domain name specified by the Web application #2 differs from the domain name of that Web application. For that reason, the PIN storing unit 23 does not send the PIN to the Web application sent by that different Web server. As a result, the use of the PIN is able to be restricted to the Web application that stored the PIN, or it is able to be ensured that only the Web applications distributed from a particular Web server (the Web application distribution server 4), which is specified by the Web application that stored the PIN, are allowed to use the PIN. Hence, an unauthorized Web application is able to be prevented from obtaining the PIN.
Subsequently, the Web application #3 sends the PIN to the information output device 2 using the WebSocket protocol via the WebSocket client processing unit 18a of the PF application executing unit 22b. Upon receiving the PIN from the information manipulation device 1, the information output device 2 verifies using the PIN verifying unit 44 whether the received PIN value and the PIN value stored in the PIN managing unit are identical, and notifies the device operation command processing unit 34 about the verification result. Then, the information output device 2 returns the verification result to the information manipulation device 1. In case the verification is not successful, the information output device 2 does not execute the device operation commands received thereafter. In that case, the information output device 2 may disconnect the WebSocket connection using the WebSocket client processing unit 18.
After sending the PIN, the information manipulation device 1 sends device operation commands using a WebSocket connection. As illustrated in
Once the information output device 2 receives a device operation command, the application origin verifying unit 43 verifies whether the domain name (the origin information) of the Web application specified in the WebSocket header of the device operation command matches with the domain name of the Web application being executed by the WEB application executing unit 22 (of the information output device 2), and notifies the device operation command processing unit 34 about the verification result. Herein, the domain name of the Web application being executed by the WEB application executing unit 22 of the information output device 2 points to the domain name of the Web server that distributed the Web application being executed by the WEB application executing unit 22. The application origin verifying unit 43 obtains from the Web application executing unit 22 the origin information (the domain name) of the Web application being executed, and verifies whether that domain name matches with the domain name (the origin information) of the Web application specified in the WebSocket header of the device operation command. In case the domain name matching is not successful, the information output device 2 does not execute the device operation command. In that case, the information output device 2 may disconnect the WebSocket connection.
The device operation command processing unit 34 determines, using a command determining unit 50, whether or not the verification performed by the PIN verifying unit 44 and the application origin verifying unit 43 is successful. Only when the verification is successful, the device operation command processing unit 34 receives the device operation command sent from the information manipulation device 1 using the WebSocket and performs operations according to that device manipulation command. For example, if the device operation command indicates an acquisition request for obtaining the program related information of the program (program contents) being currently displayed on the information output device 2, the device operation command processing unit 34 obtains the program related information from the tuner unit 32 and sends it using a WebSocket connection.
Meanwhile, the domain assigning unit 70 of the WebSocket client processing unit 18a of the PF application executing unit 22b of the information manipulation device 1 can also assign the domain name (the origin information) of the Web application, which is being executed by the WEB application executing unit 22, to the WebSocket header. Moreover, in addition to the PIN verification, the information output device 2 can also verify whether the domain name (the origin information) of the Web application that is included in the header of the WebSocket connection, which is used for sending and receiving the PIN by the application origin verifying unit 43, matches with the domain name of the Web application being executed by the WEB application executing unit 22 of the information output device 2; and notify the device operation command processing unit 34 about the verification result. In that case, the command determining unit 50 of the device operation command processing unit 34 can verify whether the domain name included in the header of the WebSocket connection used for sending and receiving the PIN as well as the domain name included in the header of the WebSocket connection used for sending and receiving the device operation commands matches with the domain name of the Web application being executed by the WEB application executing unit 22. Alternatively, the command determining unit 50 can perform matching verification for only the domain name included in the header of the WebSocket connection used for sending and receiving the PIN, and can skip the matching verification for the domain name included in the header of the WebSocket connection used for sending and receiving the device operation commands.
In
Meanwhile, the PIN value that is input by the user in the information manipulation device 1 needs to be same as the PIN value stored in the PIN storing unit 23 of the information output device 2. By taking into account a situation in which the user forgets the PIN of the information output device 2, the information output device 2 can be given an instruction so that the PIN is displayed on the screen output unit of the information output device 2 from the information manipulation device 1.
As a result, the user of the information manipulation device 1 need not remember the PIN value that is stored by the PIN managing unit 39 of the information output device 2; and can input the PIN from the input receiving unit 15 of the information manipulation device 1 while looking at the PIN displayed on the screen output unit 33 of the information output device 2. That enables achieving enhancement in the user-friendliness.
Then, the information manipulation device 1 establishes a WebSocket connection with the information output device 2 using the WebSocket client processing unit 18, and notifies the information output device 2 about the end of PIN display using the WebSocket connection. Upon receiving that notification, the information output device 2 ends the PIN display on the screen output unit 33.
In the explanation given above, the information manipulation device 1 makes use of the WebSocket protocol for the purpose of sending the PIN or a device operation command to the information output device 2. Alternatively, it is also possible to use the HTTP protocol or the HTTPS protocol.
Given below is the explanation regarding the information output device operation phase (second level) in the case when the HTTP protocol or the HTTPS protocol is used for sending the PIN and a device operation command.
As compared to the sequence diagram illustrated in
In the explanation given till now, the sequence of operations is explained for the case in which the Web application #1, the Web application #2, and the Web application #3 are obtained for the first time from the Web application distribution server 4. Once those Web applications are obtained by the information manipulation device 1; the Web application cache unit 13 stores the Web applications in the Web application storing unit 52. Then, while obtaining those Web applications for the next time onward, the contents stored in the Web application storing unit 52 can be used instead of obtaining the Web applications from the Web server. With that, it becomes possible to read the Web applications at a higher speed and to enhance the reaction rate of the information manipulation device 1. Moreover, assume that the Web applications are stored in the Web application storing unit 52, and the information manipulation device 1 and the information output device 2 are connectible to each other. In that case, even if the information manipulation device 1 is not connected to the Internet, it becomes possible to send a device operation command to the information output device 2.
Till now, the explanation is given about a case in which the Web application #1, which confirms the existence of the PIN, and the Web application #3, which is a Web application for device operations, are different Web applications. However, alternatively, the Web application #1 and the Web application #3 can be the same Web application. In that case, the URL of the Web application #1 is identical to the URL of the Web application #3. Thus, the operation of obtaining the Web application #3 is skipped, and only the Web application #1 performs the operations starting from storing the PIN up to sending a device operation command.
Till now, the explanation is given about an example in which a Web application running in the information manipulation device 1 sends a device operation command to the information output device 2. Other than that, a Web application running in the information output device 2 can also send a command to the information manipulation device 1.
A configuration of the information output device 2 in this case is illustrated in
As illustrated in
In the example illustrated in
In that case, a configuration of the information output device 2 is illustrated in
As compared to the configuration illustrated in
For example, assume that the contents of a drama are being distributed over the broadcasting waves at a certain time of a day, and the video contents (the broadcasting contents) of that drama are being displayed on the screen output unit 33 of the information output device 2 (Step S901 and Step S902). In a simultaneous manner to the displaying of the video contents, the WEB application executing unit 22 of the information output device 2 executes a Web application for dramas (a Web application #5) that is obtained by the Web application obtaining unit 27 (Step S903). The Web application #5 can be included in the broadcasting waves in a multiplexed manner; or only the URL indicating the location of the Web application #5 can be included in the broadcasting waves so that the Web application obtaining unit 27 obtains the Web application #5 from the Web application distribution server according to the URL. Then, the WEB application executing unit 22 executes the Web application #5. Subsequently, the Web application #5 sends an application transition command to the information manipulation device 1 using the WebSocket client processing unit 18 and using a WebSocket connection (Step S904); and instructs the information manipulation device 1 to execute a Web application related to dramas (a Web application #6). The Web application #5 can be output on the screen illustrated in
With reference to
The information manipulation device 1 receives the application transition command (Step S905); obtains the Web application (the Web application #6) based on the URL included in the application transition command and using the Web application obtaining unit 27; and executes the Web application #6 using the WEB application executing unit 22a (Step S906). The Web application #6 is specified by the Web application #5. Moreover, the Web application #5 is associated to the broadcasting contents. As a result, the Web application #6 is able to also be executed as a Web application associated with the broadcasting contents.
Then, assume that a certain period of time elapses and the broadcast program changes to a different program (for example, the drama changes to a news program) (Step S907). Then, the tuner unit 32 switches the broadcast program and instructs the Web application obtaining unit 27 to switch from the Web application associated to the drama (the Web application #5) to a Web application associated to the news programs (a Web application #7). In response, the Web application obtaining unit 27 obtains the new Web application (the Web application #7) based on the URL included in the broadcast program of the news; and the WEB application executing unit 22 executes the Web application for news programs (the Web application #7) (Step S908). Then, the Web application #7 sends an application transition command to the information manipulation device 1 using the WebSocket client processing unit 18b and using a WebSocket connection (Step S909); and instructs the information manipulation device 1 to execute a Web application related to news programs (a Web application #8).
The information manipulation device 1 receives the application transition command (Step S910); obtains the Web application (the Web application #8) based on the URL included in the application transition command and using the Web application obtaining unit 27; and executes the Web application #8 using the WEB application executing unit 22a (Step S911).
In this way, in conjunction with the broadcasting contents, the Web application corresponding to the broadcasting contents sends an application transition command to the information manipulation device 1. With that, the related Web application can be displayed not only in the information output device 2 but also in the information manipulation device 1.
Moreover, only when the WebSocket connection between the information output device 2 and the information manipulation device 1 is authenticated to be an authorized Web application by the application origin verifying unit 43 and the PIN verifying unit 44, the WebSocket connection is established. As a result, from the perspective of the information manipulation device 1, it can be ensured that an application transition command is received only from the information output device 2 that is reliable. Meanwhile, the abovementioned explanation is given for an example in which the program is switched to a different program after the elapse of time. The same operations can be performed also in the case when the remote controller command processing unit 35 uses an infrared remote controller command to send a program switch command to the tuner.
In the first embodiment, when a command (a device operation command) is sent from the information manipulation device 1 to the information output device 2 with the aim of obtaining the data included in the broadcasting waves from the information output device 2 and manipulating the data, the information output device 2 determines whether or not to allow execution of the device operation command based on the PIN and the origin information of the Web application running in the information manipulation device 1. In a second embodiment, consideration is given also to a case in which a command (an independent operation command) that is issued with the aim of operating the information output device 2 from the information manipulation device 1 is sent independent of the data included in the broadcasting waves.
As illustrated in
The information output device operation phase is divided into two levels, namely, a first level and a second level. In the first level, the information manipulation device 1 communicates with the Web application distribution server 4 and downloads a Web application from the Web application distribution server 4 (Step S1002); downloads a usage permit from the usage permit distribution server 6 (Step S1003); and stores therein the PIN that is input from the input receiving unit 15. Meanwhile, the operation of downloading and executing the Web application performed by the information manipulation device 1 is triggered by the PF application installed during the information manipulation device setup phase.
In the second level, the information manipulation device 1 communicates with the information output device 2 and sends a device operation command for the purpose of controlling the information output device 2 (Step S1005 and Step S1006).
Furthermore, the categories can be treated as levels having priority, and the list 95 of allowed operation commands can be set to include the highest priority number to be allowed to be used by the Web application. If the second category is specified in the list 95 of allowed operation commands, then it can be defined that the device operation commands included in the first category and the second category are allowed to be used. The command determining unit 50 compares the category, to which belongs the device operation command sent from the information manipulation device 1, with the category number specified in the list 95 of allowed operation commands. If the category to which belongs the device operation command is smaller than the category number specified in the list 95 of allowed operation commands, then the device operation command is allowed to be executed. For example, if the second category is specified in the list 95 of allowed operation commands and if the device operation command sent by the information manipulation device 1 is a channel changing command; then that channel changing command is allowed to be executed because it belongs to the first category. In contrast, if the first category is specified in the list 95 of allowed operation commands and if the device operation command sent by the information manipulation device 1 is a contents deletion command; then that contents deletion command is not allowed to be executed because it belongs to the second category that is higher than the first category specified in the list 95 of allowed operation commands.
In this way, the usable device operation commands for each Web application are separated using the usage permit. For example, assume that the Web application X is allowed to execute a channel changing command and a contents list display command, while the Web application Y is allowed to execute only a channel changing command. Thus, the list of allowed operation commands specified in the usage permit for the Web application X is different than the list of allowed operation commands specified in the usage permit for the Web application Y.
The signature 93 is signature calculated in the following manner. A hash value is calculated with respect to the Web-application-specific ID, the Web application domain name, and the list 95 of allowed operation commands; and a secret key is used with respect to the hash value to calculate the signature 93 according to the public key cryptosystem. As far as the hash algorithm is concerned, it is possible to implement a well-known method such as MD5 or SHA1. Moreover, as far as the signature generation algorithm is concerned, it is possible to implement a well-known method such as RSA or elliptic curve cryptography. An exemplary method of calculating a signature is explained below.
signature=rsa(secret key, sha1(Web-application-specific ID∥Web application domain name∥list of allowed operation commands))
Herein, the secret key points to a key included in a usage permit generating unit 79; and a public key corresponding to the secret key is stored in advance in a public key managing unit 38 of the information output device 2. Meanwhile, as optional information, it is possible to append the signature format 94 which indicates the hash/signature algorithm used in generating the signature 93.
The HTTP server processing unit 71 communicates with the information manipulation device 1 using the HTTP protocol or the HTTPS protocol; and performs operations such as HTTP client processing, TCP/IP processing, link layer processing/physical layer processing that are required in issuing a usage permit acquisition request or distributing a usage permit. The Web application information storing unit 77 stores the usage permits that have been signed. The usage permit registration receiving unit 78 registers the usage permits. In
The usage permit generating unit 79 performs a signature with respect to a Web-application-specific ID, a Web application domain name, and a list of allowed application commands using a secret key, and generates a signed usage permit. Herein, the explanation is given for a case in which a signature is performed when the usage permit distribution server generates a usage permit. However, as long as a device possesses a secret key corresponding to the public key that is common to the information output device 2, that device can generate a usage permit. For that reason, a usage permit need not always be generated in the usage permit distribution server 6. Thus, a usage permit can be generated in a device (not illustrated) that possesses a secret key corresponding to the public key that is common to the information output device 2, and the usage permit can be registered in the Web application information storing unit 77. In the case when the signature of the usage permit is not calculated in the usage permit distribution server 6, it is not mandatory to dispose the usage permit generating unit 79. In that case, the usage permit registration receiving unit 78 receives a signed usage permit and stores it without modification in the Web application information storing unit 77.
The usage permit searching unit 57 searches for the signed usage permit in the Web application information storing unit 77 in response to a request from the information manipulation device 1; and sends the signed usage permit to the information manipulation device 1 using the HTTP server processing unit 76. As a concrete example of the operations, the information manipulation device 1 specifies a Web-application-specific ID. Then, the usage permit searching unit 57 uses the Web-application-specific ID as a key to obtain the usage permit stored in the Web application information storing unit 77, and sends the usage permit to the information manipulation device 1.
The public key managing unit 66 stores a public key that is used in verifying the usage permit that is sent from the information manipulation device 1. The command selecting unit 48 determines whether the device operation command sent from the information manipulation device 1 is an independent operation command or a broadcast related command, and instructs the command determining unit 50 to change the determination operation according to the type of the device operation command.
The local Web application (the Web application #9) checks whether or not a usage permit is present in the information manipulation device 1 (Step S1103). If a usage permit has already been obtained (Yes at Step S1103), then it is verified whether or not the PIN is stored (Step S1109). In the second embodiment, even if the information output device 2 that is to be operated is different, when the Web application are the same those Web application have the same usage permit. Hence, while distributing the PF application, it can be packaged to include the usage permit. In that case, at the time of installing the PF application, the usage permit is stored in the application storing unit 30 as part of the data of the PF application. In that case, the operation of verifying whether or not the usage permit is present can be skipped, and the Web application can obtain the usage permit from the application storing unit 30.
However, if no usage permit is present in the information manipulation device 1 (No at Step S1103), then the URL determined for each Web application and included in advance in the application package is obtained, and a usage permit acquisition request is sent to the usage permit distribution server 6 according to that URL (Step S1105 and Step S1106). This request is sent using the HTTP processing unit 11 and using the HTTP protocol (or the HTTPS protocol). An example of a usage permit request message, which is sent by the information manipulation device 1 to the usage permit distribution server 6, is given below.
https://example-CAserver.com/req_token.php?appID=X
In this example, with respect to a usage permit distribution server “example-CAserver.com”; a Web-application-specific ID is specified using a value “X” that is labeled by appID. Alternatively, the following format can also be used.
https://example-CAserver.com/appIDX/token.dat
In this case, the usage permit is nothing but just a file specified by the name “token.dat”. For that reason, the usage permit distribution server 6 can have the same configuration as the configuration of the Web application distribution server 4. The usage permit distribution server 6 receives a usage permit request message; obtains the signed usage permit, which is stored in the Web application information storing unit 77, according to the Web-application-specific ID; and sends the usage permit to the information manipulation device 1 as a response to the usage permit request message (Step S1107). Then, the Web application #9 stores the received application in the usage permit storing unit 24 (Step S1108). Meanwhile, at the time of storing a PIN in the information manipulation device 1, a range of Web applications that can use the PIN is specified. Thus, when a Web application attempts to use the PIN, the PIN storing unit 23 is used to perform access control with respect to the stored PIN. However, while storing a usage permit, it is not always necessary to perform such operations. That is, there is no need to perform access restriction setting for usage permits; and a usage permit can be stored as a cookie or a normal file in the information manipulation device 1.
Subsequently, the Web application #9 verifies whether or not the PIN is stored in the information manipulation device 1 (Step S1109). The subsequent operation is identical to the operation performed at Step S304 illustrated in
Then, the information output device 2 verifies the received usage permit and the received PIN value (Step S1206). Herein, the usage permit verifying unit 42 verifies the usage permit and determines whether or not the signature included in the usage permit is correct. The PIN verifying unit 44 verifies the PIN and determines whether or not the PIN value is identical to the value managed by the PIN managing unit 39. Only if the domain verification, the usage permit verification, as well as the PIN verification is successful, then the information manipulation device 1 determines that the verification is successful. On the other hand, if any one of the verifications fails, then the information manipulation device 1 determines that the verification is not successful. Then, the information output device 2 can send the determination result to the information manipulation device 1. If the determination result indicates a failure in the verification, then the information output device 2 can disconnect the WebSocket connection (Step S1207).
Once the determination result is sent to the information manipulation device 1 from the information output device 2, the information manipulation device 1 refers to the determination result (Step S1208). If the determination result indicates a failure in the verification, then the information manipulation device 1 performs error processing (Step S1209). On the other hand, if the determination result indicates a success in the verification, then the information manipulation device 1 sends a device operation command (Step S1210).
Meanwhile, if the information output device 2 determines that the verification was not successful and disconnects the WebSocket connection, then the information manipulation device 1 understands from the disconnection of the WebSocket connection that the verification was not successful and performs error processing. In contrast, if the WebSocket connection is not disconnected, then the information manipulation device 1 can send a device operation command.
Then, according to an instruction from the Web application for device operations (the Web application #3-2), the WebSocket client processing unit 18 of the information manipulation device 1 sends a device operation command to the information output device 2 using a WebSocket connection (Step S1211). The device operation command is generated by the Web application #3-2. That is, the device operation command is an independent operation command. The command selecting unit 48 of the information output device 2 determines whether the received device operation command is a broadcast related command or an independent operation command (Step S1212). Herein, since the device operation command is an independent operation command generated by the Web application #3-2, the command determining unit 50 is instructed to confirm whether or not the verification of the usage permit as well as the verification of the PIN is successful and to receive the device operation command (the independent operation command) only if the verification is successful. If either the verification of the usage permit or the verification of the PIN is not successful, then the device operation command (the independent operation command) is rejected and error processing is performed. Thus, no subsequent device operation command (independent operation command) is received. Only when the verification of the usage permit as well as the verification of the PIN is successful, the device operation commands (the independent operation commands) included in the operation command list are interpreted and the device operation command processing unit 34 is notified about which device operation commands (independent operation commands) are allowed to be executed.
Meanwhile, assume that the information output device 2 is operated by operating the upper portion in
The command selecting unit 48 of the information output device 2 determines whether the received device operation command is a broadcast related command or an independent operation command (Step S1214). Herein, since the device operation command is a broadcast related command generated by the Web application #3-1, the command determining unit 50 is instructed to verify using the application origin verifying unit 43 whether the domain name (the origin information) of the Web application #3-1 included in the WebSocket header of the device operation command matches with the domain name of the Web application being executed by the WEB application executing unit 22 (of the information output device 2), that is, matches with the domain name of the Web server that distributed the Web application being executed by the WEB application executing unit 22; and to receive the device operation command (the broadcast related command) only if the domain name verification is successful. If the domain name verification is not successful, then the device operation command (the broadcast related command) is rejected and error processing is performed. Thus, no subsequent device operation command (broadcast related command) is received. Only when the domain name verification is successful, the device operation commands (the broadcast related commands) included in the operation command list are interpreted and the device operation command processing unit 34 is notified about which device operation commands (broadcast related commands) are allowed to be executed.
Herein, the explanation is given for an example in which, when the device operation command is a broadcast related command, the authentication of the Web application #3-1 using the PIN is not performed. As illustrated in
In this way, in the second embodiment, while receiving a device operation command sent by the information manipulation device 1; the information output device 2 determines the type of the received command and, depending on the type of the received command, changes the method of confirming the validness of the Web application. If the device operation command is an independent operation command; the validness of the Web application that sent the independent operation command is determined using the PIN and the usage permit. On the other hand, if the device operation command is a broadcast related command, whether or not the Web application that sent the broadcast related command is authorized is determined by verifying whether the domain name of the WebSocket matches with the domain name of the Web application being executed by the WEB application executing unit 22 (of the information output device 2).
With that, it becomes possible to achieve the following effect. In the case when a device operation command is an independent operation command, it is assumed that the Web application that issued the independent operation command (in the example illustrated in
Consider a case when the portion having the command for sending a device operation command to the information output device 2 (for example, a command included in the Web application #3-2) written therein is copied by an attacker and is uploaded as Web contents X to a Web server X that is different than the Web server for distributing legitimate Web applications. As described above, since Web applications are configured using the HTML or JavaScript (registered trademark), they are no different than the Web contents such as Web sites displayed on a Web browser of a personal computer (PC). Thus, while browsing various Web sites using the Web browser (the Web application executing unit 22i) in the information manipulation device 1; if the Web contents X are run, a device operation command gets sent to the information output device 2 without noticing knowledge of the user of the information manipulation device 1. As a result, when there are no restrictions; if a device operation command is issued for the purpose of deleting all broadcasting contents recorded in the information output device 2, then mere browsing of the Web contents X in the information manipulation device 1 results in the deletion of the recorded contents from the information output device 2 without noticing of the user of the information manipulation device 1. In that regard, even if an unauthorized Web application such as the Web contents X is installed in a Web server that is outside of the control of the Web application distribution server 4; since the information output device 2 checks the domain name of the Web servers that distributed the Web applications, it becomes possible to reject the device operation commands received from such unauthorized Web applications.
Moreover, the operations of the information output device 2 can be restricted only to the Web applications allowed by the user. Herein, the information output device 2 is assumed to be a digital TV; and the information output device 2 according to the second embodiment is possessed by a household or an individual. There is no problem when the information output device 2 of a user A is operated by a legitimate Web application running in the information manipulation device 1 of the user A (for example, the Web application #3-2). However, it is necessary to prevent a situation in which the information output device 2 of a user B is operated without the permission of the user B by a legitimate Web application running in the information manipulation device 1 of the user A. Every time a device operation command is sent from the information manipulation device 1; although it is possible to impose a confirmation operation using the infrared remote controller of the information output device 2 for confirming whether or not the device operation command is allowed to be executed, it is a cumbersome operation. In that regard, if a PIN is set for the information output device 2 and, prior to receiving a device operation command, if it is confirmed whether the PIN sent from the Web application matches with the PIN that has been set; it becomes possible to prevent a situation in which the information output device 2 gets operated without permission by a Web application that does not know the PIN value of the information output device 2.
Meanwhile, if a device operation command is a broadcast related command, the Web application that is allowed to execute the broadcast related command (in the example illustrated in
Consider the case when the portion having the command for sending a device operation command to the information output device 2 (for example, a command included in the Web application #3-2) written therein is copied by an attacker and is uploaded as the Web contents X to the Web server X that is different than the Web server for distributing legitimate Web applications. If no mechanism of protection is put in place; then, regarding a broadcast related command, it becomes possible to, for example, obtain all program related information from the broadcasting waves without the permission of the broadcasting station. The use of such program related information may sometimes amount to the infringement of copyright. In that regard, even if unauthorized Web applications such as the Web contents X are placed in a Web server that is outside of the control of the Web application distribution server 4, the information output device 2 can check the domain name of the Web server that distributed the Web applications and can reject device operation commands (program-related-information acquisition commands) from such unauthorized Web applications.
In this way, while reliably preventing a situation in which the information output device 2 such as a TV is operated without the permission of the user, it becomes possible to operate the information output device 2 from the information manipulation device 1 such as a smartphone or a tablet. Hence, not only the information manipulation device 1 can be utilized in an effective manner but also enhancement in the user-friendliness of the information output device 2 can be achieved.
In the examples illustrated in
MAC value=HMAC-SHA1(MAC key, PIN∥received random number)
Herein, the PIN points to the PIN value stored in the PIN storing unit 23. The application origin verifying unit 65 verifies whether the usage permit stored in the usage permit storing unit 24 matches with the domain name of the Web application being executed by a WEB application executing unit 22m of the information manipulation device 1.
MAC value(first MAC value)=HMAC-SHA1(MAC key, PIN∥sent random number)
The random number generating unit 68 (a random number sending unit) receives the usage permit from the information manipulation device 1; generates a random number when the verification of the usage permit is successful; and sends the random number to the information manipulation device 1. This random number is temporarily stored in the information manipulation device 1 until either a MAC value is received or the WebSocket connection is disconnected.
Then, the Web application #3-2 requests the PF application 9, which is executed by the PF application executing unit 22j, to send the usage permit (Step S1302). In response, the PF application 9 sends the usage permit to the information output device 2 using the WebSocket connection #1. More particularly, according to an instruction from the PF application 9, the WebSocket client processing unit 18a of the information manipulation device 1 establishes a WebSocket connection (the WebSocket connection #1) and sends the usage permit to the information output device 2. Then, the information output device 2 performs signature verification to verify whether or not the signature of the usage permit is correct (Step S1303). If signature verification is not successful, then the subsequent operations are not performs and the information output device 2 can reject the receipt of the device operation commands or can disconnect the WebSocket connect. On the other hand, if signature verification is successful, the information output device 2 generates a random number using the random number generating unit and sends the random number to the information manipulation device 1 using the WebSocket connection #1 (Step S1304).
In the information manipulation device 1, when the WebSocket client processing unit 18a receives the random number; the MAC calculating unit 67 of the PF application executing unit 22j calculates a MAC value using the received random number, using the MAC key stored therein, and using the PIN stored in the PIN storing unit 23 (Step S1305). Then, the MAC calculating unit 67 notifies the Web application #3-2 about the calculation result. The Web application #3-2 sends the MAC value to the information output device 2 via the device operation command sending unit 19 using the WebSocket connection #2 (Step S1307). More particularly, according to an instruction from the Web application #3-2, the WebSocket client processing unit 18 of the information manipulation device 1 establishes a WebSocket connection (the WebSocket connection #2) and sends the MAC value to the information output device 2.
In the information output device 2, the MAC verifying unit 69 calculates a MAC value using the MAC key stored therein, using the PIN value stored in the PIN managing unit, and using the random number generated by the random number generating unit 68; determines whether the calculated MAC value is identical to the MAC value received from the information manipulation device 1; and notifies the information manipulation device 1 about the determination result (Step S1307). If the MAC values are not identical, then the information output device 2 either rejects the receipt of the subsequent device operation commands sent from the information manipulation device 1 or disconnects the WebSocket connection.
In case the determination result from the information output device 2 indicates a failure (failure at Step S1308), the information manipulation device 1 performs error processing (Step S1309). On the other hand, if the determination result from the information output device 2 indicates a success (success at Step S1308), then the Web application being executed by the WEB application executing unit 22m sends a device operation command using the WebSocket connection #2 (Step S1310). More particularly, according to an instruction from the Web application #3, the WebSocket client processing unit 18 of the information manipulation device 1 sends a device operation command to the information output device 2 using a WebSocket connection (the WebSocket connection #2) (Step S1311). Then, the information output device 2 performs device operations according to the received device operation command (Step S1312).
With such a configuration, instead of sending the PIN as plaintext from the information manipulation device 1 to the information output device 2, a MAC value is calculated by encrypting the PIN with the use of a secret key shared by the information manipulation device 1 and the information output device 2; and the MAC value is sent from the information manipulation device 1 to the information output device 2. For that reason, even if an unauthorized device is present in between the information manipulation device 1 and the information output device 2, the PIN is not delivered to the unauthorized device thereby enabling protection of the PIN of the user.
Moreover, even if an unauthorized Web application is running in the information manipulation device 1 and attempts to perform authentication with the information output device 2; the information manipulation device 1 verifies the origin information of the Web application running therein before issuing a usage permit. Hence, it becomes possible to prevent a situation from occurring in which the unauthorized Web application sends an unauthorized device operation command to the information output device 2.
With reference to
A configuration for that case is illustrated in
The domain list contains the Web application origin (domain name) 92 as a mandatory field. Besides, the domain list contains a list of allowed operation commands, a period of validity, a signature, and a signature format as the optional fields. Herein, the list of allowed operation commands, the signature, and the signature format are identical to the contents of the usage permit illustrated in
With reference to
As described earlier, either the domain list is included in the broadcasting waves, or the domain list is obtained by a Web application included in the broadcasting waves. Hence, the broadcasting station that produces the broadcasting contents can create the domain list. In that case, naturally, the origin information of the Web applications executed by the WEB application executing unit 22 of the information output device 2 need not be the same as the domains included in the domain list. Thus, the Web applications to be executed in the information manipulation device 1 and the Web applications running in the information output device 2 can be distributed from servers having different domains. As a result, it becomes possible to reduce the application development cost regardless of the locations of the Web applications. Moreover, since the domain list can be changed according to the time slots or the broadcast programs, it becomes possible to dynamically specify the Web application for sending a device operation command.
Meanwhile, at least some portion of each constituent element of the information manipulation device 1, the information output device 2, the Web application distribution server 4, the PF application distribution server 5, and the usage permit distribution server 6 described above in the embodiments can be configured either using hardware or using software. In a configuration done using software, computer programs implementing at least some functions of the devices/servers can be stored in a recording medium such as a floppy (registered trademark) disk or a compact disk read only memory (CD-ROM), as a computer program product. Then, a computer can be instructed to read and execute those computer programs. Herein, the recording medium is not limited to portable recording medium such as a magnetic disk or an optical disk, and can also be a fixed mount type recording medium such as a hard disk device or a memory.
Alternatively, the computer programs that implement at least some functions of the information manipulation device 1, the information output device 2, the Web application distribution server 4, the PF application distribution server 5, and the usage permit distribution server 6 can be distributed via a communication line (including wireless communication) such as the Internet. Moreover, the computer programs can be encrypted, modulated, and compressed before either being distributed via a wired line or a wireless line, such as the Internet 8, or being stored in a recording medium and distributed.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2013-065228 | Mar 2013 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7024690 | Young et al. | Apr 2006 | B1 |
20100281107 | Fallows et al. | Nov 2010 | A1 |
20130246905 | Isozaki | Sep 2013 | A1 |
20140214967 | Baba et al. | Jul 2014 | A1 |
20140344846 | Yamamura et al. | Nov 2014 | A1 |
Number | Date | Country |
---|---|---|
2005-348142 | Dec 2005 | JP |
2007-310872 | Nov 2007 | JP |
2008-516476 | May 2008 | JP |
2012-109981 | Jun 2012 | JP |
2012-252451 | Dec 2012 | JP |
WO 2013031556 | Mar 2013 | WO |
Entry |
---|
“Hybrid Broadcast Broadband TV” ETSI TS 102 796 V1.1.1 (Jun. 2010), 2010, 75 pages. |
Office Action issued Aug. 30, 2016 in Japanese Patent Application No. 2013-065228 (with unedited computer generated English translation). |
Number | Date | Country | |
---|---|---|---|
20140298375 A1 | Oct 2014 | US |