WO2018107671A1 - 一种共享认证方法及系统、智能设备及控制方法 - Google Patents
一种共享认证方法及系统、智能设备及控制方法 Download PDFInfo
- Publication number
- WO2018107671A1 WO2018107671A1 PCT/CN2017/087057 CN2017087057W WO2018107671A1 WO 2018107671 A1 WO2018107671 A1 WO 2018107671A1 CN 2017087057 W CN2017087057 W CN 2017087057W WO 2018107671 A1 WO2018107671 A1 WO 2018107671A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- smart device
- information
- smart
- sends
- connection request
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
- H04L63/061—Network architectures or network communication protocols for network security for supporting key management in a packet data network for key exchange, e.g. in peer-to-peer networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a shared authentication method and system, an intelligent device, and a control method.
- smart devices such as smart phones, smart TVs, smart air conditioners, smart sockets, and smart refrigerators.
- applications that can run on these smart devices. Some applications involve some control operations to control applications on other smart devices. For example, a smart watch controls its own gravity sensing information. The movement of a traffic jam in a racing game that is running on a smart TV.
- smart devices In the prior art, smart devices generally support clients to implement remote control through specific communication protocols, such as Bluetooth, Wi-Fi, and other wireless technologies.
- Wi-Fi direct connection means that the smart device always connects to the wireless access point that does not need to be intermediary.
- Wi-Fi remote control means that the smart device always connects to the wireless access point that does not need to be intermediary.
- Wi-Fi remote control mode the client and the smart device need to connect to the router to connect to the cloud server and can be used. Therefore, the server device and the application server software are required to connect the smart device and forward the transmitted information, and the server is costly to set up.
- the communication mode can only implement one-way communication, and the one-way data transmission between the server and the client is performed by the method of request and response, so the transmission efficiency is not high, and the firewall cannot pass through the firewall in the network.
- NAT discover other nodes in the network, such as smart devices.
- JXTA is a set of open universal P2P protocols introduced by Sun. It allows any device accessing the network to communicate and work together as a peer, such as mobile phones, PDAs, PCs, servers, and so on.
- JXTA is a set of protocols developed for the construction of P2P networks. With these protocols, peers can implement the basic functions of P2P networks such as discovering, organizing, monitoring, and communicating with each other.
- an object of the present invention is to provide a shared authentication method and system, an intelligent device, and a control method, which are used to implement information transmission between smart devices in a network through a full-duplex channel, and realize sharing of various smart devices in the network. The way of certification.
- the present invention provides a shared authentication method, which is applied to a JXTA network, the JXTA network includes a plurality of smart devices, and the method includes:
- the first smart device establishes a service channel, and listens to a first registration request of the second smart device that has the same pipe advertisement, where the first registration request includes registration information of the second smart device.
- the first smart device generates and stores a first authorization code according to the registration information, and sends the first authorization code information to the second smart device;
- the second smart device sends a first connection request that includes the first authorization code to the first smart device, and the first smart device generates and stores a first Token according to the first authorization code. Card, identity security authorization information) information, and returning the first token information to the second smart device, the second smart device generating a second connection request according to the first token information, to the first smart device Request a connection and establish a full duplex channel.
- the shared authentication method further includes:
- the second smart device sends the second connection request to the third smart device, where the third smart device is registered to the JXTA network and has the pipe advertisement.
- the third smart device receives the second connection request, and sends a second registration request to the first smart device, where the second connection request includes the first token information and the third device self registration information;
- the first smart device verifies the third smart device, and returns second Token information including the third smart device to the second smart device.
- the second smart device generates and sends a third connection request to the third smart device according to the second token information, and establishes a full duplex channel with the third smart device.
- the method further includes:
- the pipeline is sent to each smart device in the JXTA network.
- the first authorization code information includes a second smart device identifier, key information, and registration information.
- the present invention also provides a smart device control method, the method comprising:
- the first smart device sends the first control information to the second smart device
- the second smart device monitors the first control information
- the method further includes:
- the second smart device sends the second control information to the first smart device
- the first smart device monitors the second control information
- the present invention further provides a smart device, which is located in a JXTA network including a plurality of the smart devices, and includes:
- a verification module configured to monitor a first registration request of a second smart device having the same pipe advertisement, where the first registration request includes registration information of the second smart device, and verify the second smart device according to the registration information Generating a stored first authorization code;
- An authentication module configured to verify that the second smart device sends the first authorization code to the second smart device, and when the second smart device sends the first connection request that includes the first authorization code again, according to the The first authorization code generates and stores the first token information, and returns the first token information to the second smart device, where the second smart device generates a second connection request according to the first token information, Said first smart device requests connection and establishes a full duplex channel;
- the verification module is further configured to: when the second smart device sends the second connection to the third smart device At the request, verifying the second registration request from the third smart device;
- the authentication module is further configured to return, to the second smart device, second Token information including the third smart device, where the second smart device generates and sends a third connection request to the third according to the second Token information.
- the smart device establishes a full duplex channel with the third smart device.
- the smart device further includes:
- the first control module is configured to monitor control information of other smart devices, and when the control information is received, control the running of the application itself.
- the present invention also provides a smart device that is fully duplexed with the smart device, and the smart device is located in a JXTA network that includes several smart devices, including:
- a registration requesting module configured to generate a first registration request for requesting verification from the first smart device
- connection requesting module configured to send a first connection request including the first authorization code to the first smart device, and generate and send a second connection request to the first smart device and the third smart device according to the first token information
- the third smart device receives the second connection request, and sends a second registration request to the first smart device, where the second registration request includes the first token information and the third device self registration information. Determining, by the first smart device, the third smart device, and returning, to the second smart device, second Token information including the third smart device;
- connection requesting module is further configured to generate and send a third connection request to the third smart device according to the second token information, and establish a full duplex channel with the third smart device.
- the smart device further includes:
- the second control module is configured to monitor control information of other smart devices, and when the control information is received, control the running of the application itself.
- the present invention also provides a shared authentication system, the system comprising a plurality of smart devices as described above.
- the shared authentication method and system Compared with the prior art, the shared authentication method and system, the intelligent device and the control method have the following beneficial effects: directly transmitting information bidirectionally through a full duplex channel, improving transmission control efficiency and reducing server-side Investment cost; use full-duplex communication mode, which is more efficient and real-time than HTTP one-way request sending mode; use Token information mechanism to ensure network security
- the access rights of the device nodes in the network can be obtained, and automatic login can be realized without one-to-one repeated verification, thereby realizing the shared authentication mode of each device node in the network.
- FIG. 1 is a flowchart of a shared authentication method according to an embodiment of the present invention
- FIG. 2 is a flowchart of a shared authentication method according to still another embodiment of the present invention.
- FIG. 3 is a flowchart of a method for controlling a smart device according to an embodiment of the present invention
- FIG. 4 is a structural diagram of a smart device according to an embodiment of the present invention.
- FIG. 5 is a structural diagram of a smart device according to another embodiment of the present invention.
- the present invention provides a shared authentication method, which is applied to a JXTA network.
- the JXTA network includes a plurality of smart devices, and the first smart device generates a first authorization code according to the first registration request of the second smart device.
- the second smart device sends a first request including the first authorization code to the first smart device, the first smart device generates and sends the first Token information to the second smart device, and the second smart device sends the first request.
- the second connection request of the Token information is sent to the first smart device, requesting to connect and establish a full duplex channel; the second smart device sends a second connection request to the third smart device, and the third smart device sends the second registration request to the first smart device.
- the device the first smart device verifies the third smart device, and returns a second Token information including the third smart device to the second smart device, where the second smart device generates and sends the third connection request including the second Token information to the third smart device.
- the device establishes a full-duplex channel with the third smart device, so that the smart devices in the network transmit through the full-duplex channel. Interest rates, and the realization of a shared network for the intelligent way of certified equipment.
- An embodiment of the present invention is a communication method based on a JXTA network.
- JXTA network consists of three different layers The second component, the first layer is the core layer, which contains the core functions used by the service; the second layer is the service layer, which provides access services to the JXTA protocol; finally the application layer uses these services to obtain the JXTA network.
- the core layer contains the core concepts of JXTA, such as peer nodes, peer groups, announcements, pipes, endpoints, and security.
- the service layer contains queries, discoveries, and relays.
- the application layer includes typical applications such as resource sharing, instant messaging, and collaborative work.
- the service layer is an existing policy that is open for the convenience of upper-level reference, such as query, discovery, transit, etc. Providing these services can alleviate the development burden of the upper-layer application, but not every service must be required. Different applications can choose their own needs. The service can also completely redevelop the service itself.
- FIG. 1 is a flowchart of a shared authentication method according to an embodiment of the present invention. As shown in FIG. 1, the shared authentication method is applied to a JXTA network, and the JXTA network includes a plurality of smart devices, and the method includes
- the first smart device establishes a service channel, and monitors a first registration request of the second smart device that has the same pipe advertisement, where the first registration request includes registration information of the second smart device.
- the first smart device generates and stores a first authorization code according to the registration information, and sends the first authorization code information to the second smart device;
- the second smart device sends a first connection request that includes the first authorization code to the first smart device, and the first smart device generates and stores the first token information according to the first authorization code, and returns the first token information to the first
- the second smart device generates a second connection request according to the first token information, requests a connection from the first smart device, and establishes a full duplex channel.
- the method further includes:
- the first smart device searches for and obtains a list of smart device nodes in the JXTA network
- the sending pipe is advertised to each smart device in the JXTA network.
- the pipe mechanism is the main communication mechanism between peers in JXTA.
- the JXTA Pipeline Service provides a mechanism for creating and accessing pipes that provide a simple, non-directly connected asynchronous communication channel for two peers. If a peer wants to accept messages from other peers, it must first establish an input pipe, then construct an output pipe connected to the pipe and its notification, and finally announce the release. After other peers search for the notification, an output pipeline is created, and the output pipeline can send a message to Corresponding input pipelines enable communication between peers.
- the first smart device after starting the JXTA network, searches for and acquires a list of smart device nodes in the JXTA network, and initializes a JXTA module application in each smart device node in the JXTA network, where the JXTA module includes Jar package, XML file, etc.
- the first smart device then creates a service pipeline advertisement and publishes the advertisement for the smart device communication with the network to discover, and then creates an input pipeline according to the service pipeline advertisement, and the first smart device establishes the completion service channel.
- the first smart device accesses the connection event of the first smart device by other smart devices in the service channel monitoring network.
- the second smart device acquires a service pipeline advertisement of the first smart device, and creates an output pipeline according to the same to send data, and the second smart device establishes a completion service channel.
- the second smart device sends the first registration request to the first smart device by using the service channel, and the first smart device monitors the first registration request, where the first registration request includes the registration information of the second smart device.
- the first smart device receives the first registration request of the second smart device, where the first registration request includes the registration information of the second smart device, and verifies the legality of the second smart device. And generating, according to the registration information, the first authorization code information corresponding to the second smart device, where the first authorization code information includes the identification information, the key information, and the registration information corresponding to the second smart device, and then the first authorization code is used. The information is sent to the second smart device.
- the second smart device sends a first connection request to the first smart device, where the first connection request includes the first authorization code information corresponding to the second smart device.
- the first smart device verifies the validity of the second smart device according to the first authorization code information.
- the first token information corresponding to the second smart device is generated and stored according to the first authorization code information and the JWT (JSON Web Token) authorization mechanism, and the first token information is returned to the second smart device.
- the second smart device After receiving the first token information, the second smart device has the access right of the master smart device.
- the second smart device generates a second connection request according to the first token information, requests the first smart device to connect, and establishes a full duplex channel. Therefore, a full duplex channel is established between the first smart device and the second smart device.
- FIG. 2 is a flowchart of a shared authentication method according to still another embodiment of the present invention. As shown in FIG. 2, the method further includes:
- the first smart device establishes a service channel, and monitors a first registration request of the second smart device that has the same pipe advertisement, where the first registration request includes registration information of the second smart device.
- the first smart device generates and stores a first authorization code according to the registration information, and sends the first authorization code information to the second smart device;
- the second smart device sends a first connection request that includes the first authorization code to the first smart device, and the first smart device generates and stores the first token information according to the first authorization code, and returns the first token information to the first
- the second smart device generates a second connection request according to the first token information, requests a connection from the first smart device, and establishes a full duplex channel.
- the second smart device sends a second connection request to the third smart device, where the third smart device is registered to the JXTA network and has a pipe advertisement.
- the third smart device receives the second connection request, and sends a second registration request to the first smart device, where the second connection request includes the first token information and the third device self registration information.
- the first smart device verifies the third smart device, and returns a second Token information including the third smart device to the second smart device.
- the second smart device generates and sends a third connection request to the third smart device according to the second token information, and establishes a full duplex channel with the third smart device.
- the first smart device searches for and acquires the smart device node list in the JXTA network, and initializes the JXTA module application in each smart device node in the JXTA network.
- the first smart device then creates a service pipeline advertisement and publishes the advertisement for the smart device communication with the network to discover, and then creates an input pipeline according to the service pipeline advertisement, and the first smart device establishes the completion service channel.
- the first smart device accesses the connection event of the first smart device by other smart devices in the service channel monitoring network.
- the second smart device acquires a service pipeline advertisement of the first smart device, and creates an output pipeline according to the same to send data, and the second smart device establishes a completion service channel.
- the second smart device sends the first registration request to the first smart device by using the service channel, and the first smart device monitors the first registration request, where the first registration request includes the registration information of the second smart device.
- the first smart device receives the first registration of the second smart device.
- the first registration request includes the registration information of the second smart device, and the validity of the second smart device is verified.
- the first authorization code information corresponding to the second smart device is generated and stored according to the registration information.
- the authorization code information includes the identification information, the key information, and the registration information corresponding to the second smart device, and then sends the first authorization code information to the second smart device.
- the second smart device sends a first connection request to the first smart device, where the first connection request includes the first authorization code information corresponding to the second smart device.
- the first smart device verifies the validity of the second smart device according to the first authorization code information.
- the first token information corresponding to the second smart device is generated and stored according to the first authorization code information and the JWT (JSON Web Token) authorization mechanism, and the first token information is returned to the second smart device.
- the second smart device After receiving the first token information, the second smart device has the access right of the master smart device.
- the second smart device generates a second connection request according to the first token information, requests the first smart device to connect, and establishes a full duplex channel.
- the second smart device sends a second connection request to the third smart device in the JXTA network, where the third smart device has already registered to the JXTA network, and has a pipe advertisement, establishing and The conduit channel of the first smart device.
- the third smart device receives the second connection request, and sends a second registration request to the first smart device by using a pipeline channel with the first smart device, where the second connection request includes the first token information and the third device self registration information.
- the first smart device After the first smart device receives the second registration request of the third smart device, the first smart device verifies the second smart device and the third smart device according to the first token information and the third device self registration information included in the second registration request. After the verification is passed, the second token information corresponding to the third smart device is generated and stored according to the third device self-registration information and the JWT (JSON Web Token) authorization mechanism, and the second token information is returned to the first Two smart devices.
- JWT JSON Web Token
- the second smart device receives the second Token information sent by the first smart device, and then generates and sends a third connection request to the third smart device according to the second Token information, where the second smart device and the second smart device A full duplex channel is established between the three smart devices. Therefore, each smart device in the JXTA network shares the authentication mode and can directly communicate with each other after authentication.
- a JXTA network includes a router, a smart phone, and a smart TV. The smartphone acquires a router to send. Corresponding Token information.
- the router verifies the Token information and the registration information of the smart TV, and after the verification is passed, The smart phone obtains the Token information corresponding to the smart TV, so that the operation right of the smart TV can be obtained, and a full duplex channel connection is established between the smart phone and the smart TV.
- the smart device in the JXTA network establishes a full-duplex channel connection, transmits information bidirectionally, and improves the transmission control efficiency.
- the Token information mechanism is used for communication transmission, and the network security can be obtained while ensuring network security.
- the usage rights of device nodes in the network can be automatically logged without one-to-one repeated verification, and the shared authentication mode of each device node in the network is realized.
- FIG. 3 is a flowchart of a method for controlling a smart device according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
- the first smart device sends the first control information to the second smart device.
- the second smart device monitors the first control information.
- the method further comprises:
- the second smart device sends the second control information to the first smart device
- the first smart device monitors the second control information
- the application running its own is controlled according to the second control information.
- a pipeline channel connection is established between the first smart device and the second smart device in the JXTA network.
- the first smart device sends the first control information to the second smart device through the pipeline channel, and the second smart device monitors the first control information through the pipeline channel, and controls the application running the first control information according to the first control information when receiving the first control information program.
- the smart watch and the smart TV in the JXTA network establish a pipe channel connection, and the smart watch sends a control information including gravity sensing information to the smart TV, and the smart TV monitors the control information including the gravity sensing information through the pipeline channel, when the smart TV receives When the control information is, the gravity sensing application is run according to the control information, so the intelligence is
- the watch controls the movement of the traffic jam in the racing game that is running on the smart TV.
- the smart device control method further includes: the second smart device sends the second control information to the first smart device; the first smart device monitors the second control information, and when the second control information is received, controls the running itself according to the second control information application.
- FIG. 4 is a structural diagram of a smart device according to an embodiment of the present invention. As shown in FIG. 4, the smart device is located in a JXTA network that includes several smart devices, and includes:
- the verification module 40 is configured to monitor a first registration request of the second smart device having the same pipe advertisement, where the first registration request includes registration information of the second smart device, and verify the second smart device according to the registration information and generate a first authorization for storing code;
- the authentication module 41 is configured to: after the second smart device is verified, send the first authorization code to the second smart device, and when the second smart device sends the first connection request that includes the first authorization code, generate and store the first authorization code according to the first authorization code.
- the first token information is returned to the second smart device, and the second smart device generates a second connection request according to the first token information, requests the first smart device to connect, and establishes a full duplex channel;
- the verification module 40 is further configured to: when the second smart device sends the second connection request to the third smart device, verify the second registration request from the third smart device;
- the authentication module 41 is further configured to: return, to the second smart device, the second token information that includes the third smart device, where the second smart device generates and sends the third connection request to the third smart device according to the second token information, and the third smart device.
- the device establishes a full duplex channel.
- the smart device further includes:
- the first control module 42 is configured to monitor control information of other smart devices, and control the running of the application when receiving the control information.
- FIG. 5 is a structural diagram of a smart device according to another embodiment of the present invention. As shown in FIG. 5, the smart device is located in a JXTA network that includes several smart devices, including:
- the registration requesting module 50 is configured to generate a first registration request for requesting verification from the first smart device
- the connection requesting module 51 is configured to send a first connection request including the first authorization code to the first smart device, and generate and send the second connection request to the first smart device and the third smart device according to the first token information, and third
- the smart device receives the second connection request, and sends a second registration request to the first smart device, where the second registration request includes the first token information and the third device self registration information, and the first smart device verifies the third smart device. And returning, to the second smart device, second Token information including the third smart device;
- connection requesting module 51 is further configured to generate and send a third connection request to the third smart device according to the second token information, and establish a full duplex channel with the third smart device.
- the smart device further includes:
- the second control module 52 is configured to monitor control information of other smart devices, and control the running of the application when receiving the control information.
- the second smart device in the JXTA network generates a first registration request for requesting verification from the first smart device in the registration request module 50.
- the first smart device in the JXTA network receives the first registration request of the second smart device having the same pipe advertisement through the verification module 40, where the first registration request includes the registration information of the second smart device, and the second smart device receives the registration information of the second smart device.
- the first authorization code is generated and stored, and then the first smart device sends the first authorization code to the second smart device through the authentication module 41.
- the second smart device sends a first connection request including the first authorization code to the first smart device in the connection request module 51.
- the first smart device receives the first connection request from the second smart device in the authentication module 41, generates and stores the first Token information according to the first authorization code included in the first connection request, and returns the first Token information to the second smart device.
- the second smart device generates a second connection request according to the first token information in the connection requesting module 51, and requests the first smart device to establish a full duplex channel.
- the first smart device receives the second connection request in the authentication module 31 and establishes a full duplex channel with the second smart device.
- the second smart device sends a second connection request to the third smart device in the connection request module 51, and the third smart device receives the second connection request, and sends the second registration request to the first smart device.
- the second registration request includes the first token information and the third device itself note Book information.
- the first smart device receives a second registration request from the third smart device in the verification module 40 and verifies the validity of the third smart device.
- the first smart device returns the second token information including the third smart device to the second smart device through the authentication module 41.
- the second smart device generates and sends a third connection request to the third smart device according to the second token information in the connection requesting module 51, and establishes a full duplex channel with the third smart device.
- the present invention also provides a shared authentication system comprising a plurality of smart devices as described above.
- the present invention provides a shared authentication method and system, an intelligent device, and a control method, which improve the transmission rate between intelligent devices in a network; use a Token mechanism to ensure network security while acquiring device nodes in the network. With the permission, automatic login can be realized without one-to-one repeated verification, which provides a way for each device in the network to share authentication.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种共享认证方法及系统、智能设备及控制方法,JXTA网络包括若干个智能设备,第一智能设备根据第二智能设备发送的包含第一授权码的第一请求连接至第一智能设备,第一智能设备生成并发送第一Token信息至该第二智能设备,第二智能设备发送包含第一Token信息的第二连接请求至第一智能设备,请求连接并建立全双工通道,从而实现了网络中各智能设备通过全双工通道进行传输信息,以及实现网络中各智能设备共享认证的方式。
Description
本发明涉及通信技术领域,特别是涉及一种共享认证方法及系统、智能设备及控制方法。
随着物联网的发展和盛行,越来越多的智能设备加入到物联网中,例如,智能手机、智能电视、智能空调、智能插座、智能冰箱。在这些智能设备上可运行的应用程序越来越多,其中,有些应用程序会涉及到一些控制操作来控制其它智能设备上的应用程序,例如,一个智能手表通过发送自己的重力感应信息去控制一个智能电视上正在运行的赛车游戏中塞车的移动。
现有技术中,智能设备一般都支持客户端通过特定的通信协议来实现远程控制,例如通过蓝牙、Wi-Fi和其它无线技术来实现。其中,通过Wi-Fi的连接方式通常有两种方式,一种是采用Wi-Fi直连方式,一种是采用Wi-Fi远程控制方式。Wi-Fi直连方式是指智能设备一直连接不需要中介性质的无线接入点,其缺点是每一个独立智能设备都需要独立认证后才能使用,导致用户体验差而且用户信息容易泄漏;Wi-Fi远程控制方式,客户端和智能设备都需要连接路由器联网之后才能接入云端服务器从而可以使用,因此需要有服务端设备及应用服务器软件连接智能设备并转发传输的信息,并且服务器架设成本较大并且控制效率不高。例如,采用HTTP的通信方式,该通信方式仅能实现单向通信,通过请求与响应的方法进行服务器与客户端的单向数据传输,因此其传输效率不高,并且不可以在网络中穿过防火墙和NAT发现网络中的其它节点,比如智能设备等。
JXTA是由SUN公司推出的一组开放的通用P2P协议,它允许任何接入网络的设备作为对等体进行通信和协同工作,如移动电话、PDA、PC机、服务器等。JXTA是为了构建P2P网络而制定的一组协议,使用这些协议,对等体可以实现彼此之间相互发现、组织、监视和通信等P2P网络的基本功能。
因此,如何基于JXTA网络实现网络中智能设备之间的共享认证方式和全双工通道连接,是本领域的技术人员普遍关注的问题。
发明内容
鉴于此,本发明的目的在于提供一种共享认证方法及系统、智能设备及控制方法,用以实现网络中智能设备之间通过全双工通道进行信息传输,并且实现了网络中各个智能设备共享认证的方式。
根据上述发明目的,本发明提供一种共享认证方法,所述共享认证方法应用于JXTA网络中,所述JXTA网络包括若干个智能设备,所述方法包括:
S1,第一智能设备建立服务通道,并监听具有相同管道通告的第二智能设备的第一注册请求,所述第一注册请求包含所述第二智能设备的注册信息;
S2,所述第一智能设备根据所述注册信息生成并存储第一授权码,并发送所述第一授权码信息至第二智能设备;
S3,所述第二智能设备再次向第一智能设备发送包含所述第一授权码的第一连接请求,所述第一智能设备根据所述第一授权码生成并存储第一Token(即令牌,身份安全授权信息)信息,并返回所述第一Token信息至该第二智能设备,所述第二智能设备根据所述第一Token信息生成第二连接请求,向所述第一智能设备请求连接并建立全双工通道。
优选地,所述共享认证方法还包括:
S4,所述第二智能设备向第三智能设备发送所述第二连接请求,其中,所述第三智能设备已注册到JXTA网络,并具有所述管道通告;
S5,所述第三智能设备接收所述第二连接请求,发送第二注册请求至所述第一智能设备,所述第二连接请求包含所述第一Token信息和第三设备自身注册信息;
S6,所述第一智能设备验证所述第三智能设备,并向所述第二智能设备返回包含所述第三智能设备的第二Token信息;
S7,所述第二智能设备根据所述第二Token信息,生成并发送第三连接请求至所述第三智能设备,与所述第三智能设备建立全双工通道。
优选地,于步骤S1之前还包括:
启动所述JXTA网络后,搜索并获取该JXTA网络中的智能设备节点列表;
发送所述管道通告至所述JXTA网络中的各智能设备。
优选地,所述第一授权码信息包括第二智能设备标识、密钥信息以及注册信息。
根据上述发明目的,本发明还提供了一种智能设备控制方法,所述方法包括:
第一智能设备发送第一控制信息至所述第二智能设备;
所述第二智能设备监听所述第一控制信息;
当收到所述第一控制信息时,根据所述第一控制信息控制运行自身的应用程序。
优选地,所述方法还包括:
第二智能设备发送第二控制信息至所述第一智能设备;
所述第一智能设备监听所述第二控制信息;
当收到所述第二控制信息时,根据所述第二控制信息控制运行自身的应用程序。
根据上述发明目的,本发明还提供了一种智能设备,所述智能设备位于包含若干个所述智能设备的JXTA网络中,包括:
验证模块,用于监听具有相同管道通告的第二智能设备的第一注册请求,所述第一注册请求包含所述第二智能设备的注册信息,并根据所述注册信息验证第二智能设备并生成存储第一授权码;
认证模块,用于验证所述第二智能设备后发送所述第一授权码至第二智能设备,当所述第二智能设备再次发送包含所述第一授权码的第一连接请求时,根据所述第一授权码生成并存储第一Token信息,并返回所述第一Token信息至该第二智能设备,所述第二智能设备根据所述第一Token信息生成第二连接请求,向所述第一智能设备请求连接并建立全双工通道;
所述验证模块还用于当第二智能设备向第三智能设备发送所述第二连接
请求时,验证来自于第三智能设备的第二注册请求;
所述认证模块还用于向第二智能设备返回包含所述第三智能设备的第二Token信息,所述第二智能设备根据所述第二Token信息,生成并发送第三连接请求至第三智能设备,与所述第三智能设备建立全双工通道。
优选地,所述智能设备还包括:
第一控制模块,用于监听其他智能设备的控制信息,并当收到所述控制信息,控制自身应用程序的运行。
本发明还提供了一种与上述智能设备进行全双工连接的智能设备,所述智能设备位于包含若干个智能设备的JXTA网络中,包括:
注册请求模块,用于生成向第一智能设备请求验证的第一注册请求;
连接请求模块,用于向第一智能设备发送包含所述第一授权码的第一连接请求,并根据所述第一Token信息生成并发送第二连接请求至第一智能设备和第三智能设备,所述第三智能设备接收所述第二连接请求,发送第二注册请求至所述第一智能设备,所述第二注册请求包含所述第一Token信息和第三设备自身注册信息,所述第一智能设备验证第三智能设备,并向第二智能设备返回包含所述第三智能设备的第二Token信息;
所述连接请求模块还用于根据所述第二Token信息,生成并发送第三连接请求至第三智能设备,与所述第三智能设备建立全双工通道。
优选地,所述智能设备还包括:
第二控制模块,用于监听其它智能设备的控制信息,并当收到所述控制信息,控制自身应用程序的运行。
根据上述发明目的,本发明还提供了一种共享认证系统,所述系统包括如上任一所述的若干智能设备。
与现有技术相比,本发明一种共享认证方法及系统、智能设备及控制方法,具有以下有益效果:通过全双工通道来直接进行双向传输信息,提高了传输控制效率并减少了服务器端的投资成本;使用全双工通信模式,比HTTP单向请求发送模式的效率与实时性更高;使用Token信息机制,在保证网络安全性的情
况下,可以获取网络中设备节点的使用权限,不需要一对一的重复验证就可以实现自动登录,实现了网络中各个设备节点的共享认证方式。
图1为本发明实施例的一种共享认证方法的流程图;
图2为本发明又一实施例的一种共享认证方法的流程图;
图3为本发明实施例的一种智能设备控制方法流程图;
图4为本发明实施例的一种智能设备的结构图;
图5为本发明另一实施例的一种智能设备的结构图。
正如背景技术中提及的,如何基于JXTA网络实现网络中智能设备之间的共享认证方式和全双工通道连接,是普遍关注的问题。
因此,本发明提供一种共享认证方法,该共享认证方法应用于JXTA网络中,JXTA网络包括若干个智能设备,第一智能设备根据第二智能设备的第一注册请求生成第一授权码,第二智能设备发送包含第一授权码的第一请求连接至第一智能设备,第一智能设备生成并发送第一Token(令牌)信息至该第二智能设备,第二智能设备发送包含第一Token信息的第二连接请求至第一智能设备,请求连接并建立全双工通道;第二智能设备向第三智能设备发送第二连接请求,第三智能设备发送第二注册请求至第一智能设备,第一智能设备验证第三智能设备,并向第二智能设备返回包含第三智能设备的第二Token信息,第二智能设备生成并发送包含第二Token信息第三连接请求至第三智能设备,与第三智能设备建立全双工通道,从而实现了网络中各智能设备通过全双工通道进行传输信息,以及实现网络中各智能设备共享认证的方式。
以下通过特定的具体实例并结合附图说明本发明的实施方式,本领域技术人员可由本说明书所揭示的内容轻易地了解本发明的其它优点与功效。本发明亦可通过其它不同的具体实例加以施行或应用,本说明书中的各项细节亦可基于不同观点与应用,在不背离本发明的精神下进行各种修饰与变更。
本发明的实施例是基于JXTA网络的通信方法。JXTA网络由三个不同的层
次组成,第一层为核心层,包含了被服务使用的核心功能;第二层是服务层,提供了对JXTA协议的访问服务;最后应用层使用这些服务来获取JXTA网络。核心层包含了JXTA的核心概念,例如对等节点、对等组、公告、管道、端点和安全。服务层包含查询、发现、中转。应用层包括资源共享、即时通信、协同工作等典型应用。服务层是为了方便上层引用而开放的已有策略,例如查询、发现、中转等,提供这些服务可以减轻上层应用的开发负担,但是不是每种服务都必须要的,不同的应用可以选择自己需要的服务,也可以完全自己重新开发服务。
图1为本发明一个实施例的一种共享认证方法的流程图。如图1所示,该共享认证方法应用于JXTA网络中,JXTA网络包括若干个智能设备,该方法包括
S1,第一智能设备建立服务通道,并监听具有相同管道通告的第二智能设备的第一注册请求,第一注册请求包含第二智能设备的注册信息;
S2,第一智能设备根据该注册信息生成并存储第一授权码,并发送第一授权码信息至第二智能设备;
S3,第二智能设备再次向第一智能设备发送包含第一授权码的第一连接请求,第一智能设备根据第一授权码生成并存储第一Token信息,并返回第一Token信息至该第二智能设备,第二智能设备根据第一Token信息生成第二连接请求,向第一智能设备请求连接并建立全双工通道。
优选地,于步骤S1前还包括:
启动JXTA网络后,第一智能设备搜索并获取该JXTA网络中的智能设备节点列表;
发送管道通告至该JXTA网络中的各智能设备。
在JXTA网络中,管道机制是JXTA中对等体之间主要的通信机制。JXTA管道服务提供了创建和访问管道的机制,管道为两个对等体提供简单、非直连的异步通信通道。一个对等体要想接受其它对等体传来的消息,就必须先建立一个输入管道,然后构造一个和该管道相连的输出管道及其通告,最后将通告发布。其它对等体搜索到该通告后建立输出管道,该输出管道就能将消息发送到
对应的输入管道,实现对等体间的通信。
在步骤S1的实施方式中,在启动JXTA网络后,第一智能设备搜索并获取该JXTA网络中的智能设备节点列表,初始化JXTA网络中各智能设备节点中的JXTA模块应用程序,该JXTA模块包括Jar包、XML文件等。然后第一智能设备创建一个服务管道广告,并将该广告进行发布,以供网络中与之通信的智能设备发现,然后根据这个服务管道广告创建一个输入管道,第一智能设备建立完成服务通道。同时,第一智能设备在该服务通道监听网络中的其它智能设备接入该第一智能设备的连接事件。第二智能设备获取第一智能设备的服务管道广告,并根据它创建一个输出管道用以发送数据,第二智能设备建立完成服务通道。第二智能设备通过该服务通道发送第一注册请求至该第一智能设备,同时第一智能设备监听到该第一注册请求,该第一注册请求包含第二智能设备的注册信息。
在步骤S2的实施方式中,第一智能设备接收到第二智能设备的第一注册请求,该第一注册请求包含第二智能设备的注册信息,验证第二智能设备的合法性,验证通过后,根据注册信息生成并存储该第二智能设备对应的第一授权码信息,该第一授权码信息包括该第二智能设备对应的标识信息、密钥信息以及注册信息,然后将第一授权码信息发送至第二智能设备。
在步骤S3的具体实施过程中,第二智能设备再次向第一智能设备发送第一连接请求,该第一连接请求包含第二智能设备对应的第一授权码信息。第一智能设备根据第一授权码信息验证第二智能设备的有效性。第一智能设备验证通过后,然后根据第一授权码信息并通过JWT(JSON Web Token)授权机制生成并存储第二智能设备对应的第一Token信息,并将该第一Token信息返回至第二智能设备。第二智能设备接收第一Token信息后,即拥有了主智能设备的访问权。第二智能设备根据第一Token信息生成第二连接请求,向第一智能设备请求连接并建立全双工通道。因此,第一智能设备和第二智能设备之间建立全双工通道。
图2为本发明又一实施例的一种共享认证方法的流程图。如图2所示,该方法还包括:
S1,第一智能设备建立服务通道,并监听具有相同管道通告的第二智能设备的第一注册请求,第一注册请求包含第二智能设备的注册信息;
S2,第一智能设备根据该注册信息生成并存储第一授权码,并发送第一授权码信息至第二智能设备;
S3,第二智能设备再次向第一智能设备发送包含第一授权码的第一连接请求,第一智能设备根据第一授权码生成并存储第一Token信息,并返回第一Token信息至该第二智能设备,第二智能设备根据第一Token信息生成第二连接请求,向第一智能设备请求连接并建立全双工通道。
S4,第二智能设备向第三智能设备发送第二连接请求,其中,第三智能设备已注册到JXTA网络,并具有管道通告;
S5,第三智能设备接收第二连接请求,发送第二注册请求至第一智能设备,第二连接请求包含第一Token信息和第三设备自身注册信息;
S6,第一智能设备验证第三智能设备,并向第二智能设备返回包含第三智能设备的第二Token信息;
S7,第二智能设备根据第二Token信息,生成并发送第三连接请求至第三智能设备,与第三智能设备建立全双工通道。
在步骤S1的实施方式中,在启动JXTA网络后,第一智能设备搜索并获取该JXTA网络中的智能设备节点列表,初始化JXTA网络中各智能设备节点中的JXTA模块应用程序。然后第一智能设备创建一个服务管道广告,并将该广告进行发布,以供网络中与之通信的智能设备发现,然后根据这个服务管道广告创建一个输入管道,第一智能设备建立完成服务通道。同时,第一智能设备在该服务通道监听网络中的其它智能设备接入该第一智能设备的连接事件。第二智能设备获取第一智能设备的服务管道广告,并根据它创建一个输出管道用以发送数据,第二智能设备建立完成服务通道。第二智能设备通过该服务通道发送第一注册请求至该第一智能设备,同时第一智能设备监听到该第一注册请求,该第一注册请求包含第二智能设备的注册信息。
在步骤S2的实施方式中,第一智能设备接收到第二智能设备的第一注册
请求,该第一注册请求包含第二智能设备的注册信息,验证第二智能设备的合法性,验证通过后,根据注册信息生成并存储该第二智能设备对应的第一授权码信息,该第一授权码信息包括该第二智能设备对应的标识信息、密钥信息以及注册信息,然后将第一授权码信息发送至第二智能设备。
在步骤S3的具体实施过程中,第二智能设备再次向第一智能设备发送第一连接请求,该第一连接请求包含第二智能设备对应的第一授权码信息。第一智能设备根据第一授权码信息验证第二智能设备的有效性。第一智能设备验证通过后,然后根据第一授权码信息并通过JWT(JSON Web Token)授权机制生成并存储第二智能设备对应的第一Token信息,并将该第一Token信息返回至第二智能设备。第二智能设备接收第一Token信息后,即拥有了主智能设备的访问权。第二智能设备根据第一Token信息生成第二连接请求,向第一智能设备请求连接并建立全双工通道。
在步骤S4和S5的具体实施过程中,第二智能设备向JXTA网络中的第三智能设备发送第二连接请求,其中,第三智能设备已经注册到JXTA网路,并且具有管道通告,建立与第一智能设备的管道通道。第三智能设备接收到第二连接请求,通过与第一智能设备的管道通道发送第二注册请求至第一智能设备,第二连接请求包含第一Token信息和第三设备自身注册信息。
在步骤S6中,第一智能设备接收到第三智能设备的第二注册请求后,根据第二注册请求包含的第一Token信息和第三设备自身注册信息,验证第二智能设备和第三智能设备的有效性,验证通过后,然后根据第三设备自身注册信息并通过JWT(JSON Web Token)授权机制生成并存储第三智能设备对应的第二Token信息,并将第二Token信息返回至第二智能设备。
在步骤S7的具体实施过程中,第二智能设备接收到第一智能设备发送的第二Token信息,然后根据第二Token信息生成并发送第三连接请求至第三智能设备,第二智能与第三智能设备之间建立全双工通道。因此,JXTA网络中各个智能设备共享认证方式,并且通过认证之后可以直接互相通信。例如,在一JXTA网络中包含有一路由器、智能手机和智能电视,智能手机获取路由器发送
的对应的Token信息。当智能手机申请智能电视的操作权时,不需要重新输入用户名和密码加以验证,只需要发送智能手机对应的Token信息至智能电视申请连接,路由器验证该Token信息和智能电视的注册信息,验证通过后,智能手机获得智能电视对应的Token信息,从而可以获得智能电视的操作权,并且智能手机和智能电视之间建立全双工通道连接。
综上所述,JXTA网络中的智能设备建立全双工通道连接,进行双向传输信息,提高了传输控制效率;同时使用Token信息机制来进行通信传输,在保证网络安全性的情况下,可以获取网络中设备节点的使用权限,不需要一对一的重复验证就可以实现自动登录,实现了网络中各个设备节点的共享认证方式。
为实现本发明的发明目的,本发明实施例提供了一种智能设备控制方法。图3是本发明实施例的一种智能设备控制方法流程图。如图3所示,该方法包括:
S301,第一智能设备发送第一控制信息至第二智能设备;
S302,第二智能设备监听第一控制信息;
S303,当收到第一控制信息时,根据第一控制信息控制运行自身的应用程序。
优选地,该方法还包括:
第二智能设备发送第二控制信息至第一智能设备;
第一智能设备监听第二控制信息;
当收到第二控制信息时,根据第二控制信息控制运行自身的应用程序。
在具体实施过程中,JXTA网络中的第一智能设备和第二智能设备间建立管道通道连接。第一智能设备通过管道通道发送第一控制信息至第二智能设备,第二智能设备通过管道通道监听第一控制信息,当收到第一控制信息时,根据第一控制信息控制运行自身的应用程序。例如,JXTA网络中的智能手表和智能电视建立管道通道连接,智能手表发送一包含重力感应信息的控制信息至智能电视,智能电视通过管道通道监听包含该重力感应信息的控制信息,当智能电视接收该控制信息是时,根据该控制信息运行重力感应的应用程序,因此智能
手表控制智能电视上正在运行的赛车游戏中塞车的移动。智能设备控制方法还包括,第二智能设备发送第二控制信息至第一智能设备;第一智能设备监听第二控制信息,当收到第二控制信息时,根据第二控制信息控制运行自身的应用程序。
为实现本发明的发明目的,本发明实施例提供了一种智能设备。图4为本发明实施例的一种智能设备的结构图,如图4所示,该智能设备位于包含若干个智能设备的JXTA网络中,包括:
验证模块40,用于监听具有相同管道通告的第二智能设备的第一注册请求,第一注册请求包含第二智能设备的注册信息,并根据注册信息验证第二智能设备并生成存储第一授权码;
认证模块41,用于验证第二智能设备后发送第一授权码至第二智能设备,当第二智能设备再次发送包含第一授权码的第一连接请求时,根据第一授权码生成并存储第一Token信息,并返回第一Token信息至该第二智能设备,第二智能设备根据第一token信息生成第二连接请求,向第一智能设备请求连接并建立全双工通道;
验证模块40还用于当第二智能设备向第三智能设备发送第二连接请求时,验证来自于第三智能设备的第二注册请求;
认证模块41还用于向第二智能设备返回包含第三智能设备的第二token信息,第二智能设备根据第二token信息,生成并发送第三连接请求至第三智能设备,与第三智能设备建立全双工通道。
优选地,智能设备还包括:
第一控制模块42,用于监听其他智能设备的控制信息,并当收到控制信息,控制自身应用程序的运行。
本发明还提供了一种与上述智能设备进行全双工连接的智能设备。图5为本发明另一实施例的一种智能设备的结构图。如图5所示,所述智能设备位于包含若干个智能设备的JXTA网络中,包括:
注册请求模块50,用于生成向第一智能设备请求验证的第一注册请求;
连接请求模块51,用于向第一智能设备发送包含第一授权码的第一连接请求,并根据第一Token信息生成并发送第二连接请求至第一智能设备和第三智能设备,第三智能设备接收第二连接请求,发送第二注册请求至第一智能设备,所述第二注册请求包含所述第一Token信息和第三设备自身注册信息,所述第一智能设备验证第三智能设备,并向第二智能设备返回包含第三智能设备的第二Token信息;
连接请求模块51还用于根据第二Token信息,生成并发送第三连接请求至第三智能设备,与第三智能设备建立全双工通道。
优选地,智能设备还包括:
第二控制模块52,用于监听其它智能设备的控制信息,并当收到控制信息,控制自身应用程序的运行。
在具体实施过程中,JXTA网路中的第二智能设备在注册请求模块50中生成向第一智能设备请求验证的第一注册请求。JXTA网路中的第一智能设备通过验证模块40中监听具有相同管道通告的第二智能设备的第一注册请求,该第一注册请求包含第二智能设备的注册信息,第二智能设备接收到该第一注册请求后,并根据注册信息验证第二智能设备,生成并存储第一授权码,然后第一智能设备通过认证模块41发送第一授权码至第二智能设备。第二智能设备接收到第一授权码后,在连接请求模块51中向第一智能设备再次发送包含第一授权码的第一连接请求。第一智能设备在认证模块41中接收来自第二智能设备的第一连接请求,根据第一连接请求包含的第一授权码生成并存储第一Token信息,并返回第一Token信息至该第二智能设备。第二智能设备在连接请求模块51中根据第一token信息生成第二连接请求,向第一智能设备请求建立全双工通道。第一智能设备在认证模块31中接收第二连接请求,并与第二智能设备建立全双工通道。
本发明的另一具体实施方式,第二智能设备在连接请求模块51中,发送第二连接请求至第三智能设备,第三智能设备接收第二连接请求,发送第二注册请求至第一智能设备,第二注册请求包含第一Token信息和第三设备自身注
册信息。第一智能设备在验证模块40中接收来自于第三智能设备的第二注册请求,并验证第三智能设备的有效性。第一智能设备通过认证模块41向第二智能设备返回包含第三智能设备的第二token信息。第二智能设备在连接请求模块51中根据第二token信息,生成并发送第三连接请求至第三智能设备,与第三智能设备建立全双工通道。
根据上述发明目的,本发明还提供了一种共享认证系统,该系统包括如上任一所述的若干智能设备。
综上所述,本发明一种共享认证方法及系统、智能设备及控制方法,提高了网络中智能设备之间的传输速率;使用Token机制保证网络的安全性同时,可以获取网络中设备节点的使用权限,不需要一对一的重复验证就可以实现自动登录,提供了网络中各个设备共享认证的方式,。
任何本领域技术人员均可在不违背本发明的精神及范畴下,对上述实施例进行修饰与改变。因此,本发明的权利保护范围,应如权利要求书所列。
Claims (10)
- 一种共享认证方法,其特征在于,所述共享认证方法应用于JXTA网络中,所述JXTA网络包括若干个智能设备,所述方法包括:S1,第一智能设备建立服务通道,并监听具有相同管道通告的第二智能设备的第一注册请求,所述第一注册请求包含所述第二智能设备的注册信息;S2,所述第一智能设备根据所述注册信息生成并存储第一授权码,并发送所述第一授权码信息至第二智能设备;S3,所述第二智能设备再次向第一智能设备发送包含所述第一授权码的第一连接请求,所述第一智能设备根据所述第一授权码生成并存储第一Token信息,并返回所述第一Token信息至该第二智能设备,所述第二智能设备根据所述第一Token信息生成第二连接请求,向所述第一智能设备请求连接并建立全双工通道。
- 如权利要求1所述的共享认证方法,其特征在于,所述方法还包括:S4,所述第二智能设备向第三智能设备发送所述第二连接请求,其中,所述第三智能设备已注册到JXTA网络,并具有所述管道通告;S5,所述第三智能设备接收所述第二连接请求,发送第二注册请求至所述第一智能设备,所述第二连接请求包含所述第一Token信息和第三设备自身注册信息;S6,所述第一智能设备验证所述第三智能设备,并向所述第二智能设备返回包含所述第三智能设备的第二Token信息;S7,所述第二智能设备根据所述第二Token信息,生成并发送第三连接请求至所述第三智能设备,与所述第三智能设备建立全双工通道。
- 如权利要求1所述的一种共享认证方法,其特征在于,于步骤S1之前还包括:启动所述JXTA网络后,搜索并获取该JXTA网络中的智能设备节点列表;发送所述管道通告至所述JXTA网络中的各智能设备。
- 一种基于权利要求1至3任意一项所述JXTA网络共享认证的智能设备控制方法,其特征在于,所述方法包括:第一智能设备发送第一控制信息至所述第二智能设备;所述第二智能设备监听所述第一控制信息;当收到所述第一控制信息时,根据所述第一控制信息控制运行自身的应用程序。
- 如权利要求4所述的智能设备控制方法,其特征在于,所述方法还包括:第二智能设备发送第二控制信息至所述第一智能设备;所述第一智能设备监听所述第二控制信息;当收到所述第二控制信息时,根据所述第二控制信息控制运行自身的应用程序。
- 一种智能设备,其特征在于,所述智能设备位于包含若干个所述智能设备的JXTA网络中,包括:验证模块,用于监听具有相同管道通告的第二智能设备的第一注册请求,所述第一注册请求包含所述第二智能设备的注册信息,并根据所述注册信息验证第二智能设备并生成存储第一授权码;认证模块,用于验证所述第二智能设备后发送所述第一授权码至第二智能设备,当所述第二智能设备再次发送包含所述第一授权码的第一连接请求时,根据所述第一授权码生成并存储第一Token信息,并返回所述第一Token信息至该第二智能设备,所述第二智能设备根据所述第一token信息生成第二连接请求,向所述第一智能设备请求连接并建立全双工通道;所述验证模块还用于当第二智能设备向第三智能设备发送所述第二连接请求时,验证来自于第三智能设备的第二注册请求;所述认证模块还用于向第二智能设备返回包含所述第三智能设备的第二Token信息,所述第二智能设备根据所述第二Token信息,生成并发送第三连接请求至第三智能设备,与所述第三智能设备建立全双工通道。
- 如权利要求6所述的智能设备,其特征在于,所述智能设备还包括:第一控制模块,用于监听其他智能设备的控制信息,并当收到所述控制信 息,控制自身应用程序的运行。
- 一种与权利要求6所述智能设备进行全双工连接的智能设备,其特征在于,所述智能设备位于包含若干个智能设备的JXTA网络中,包括:注册请求模块,用于生成向第一智能设备请求验证的第一注册请求;连接请求模块,用于向第一智能设备发送包含所述第一授权码的第一连接请求,并根据所述第一Token信息生成并发送第二连接请求至第一智能设备和第三智能设备,所述第三智能设备接收所述第二连接请求,发送第二注册请求至所述第一智能设备,所述第二注册请求包含所述第一Token信息和第三设备自身注册信息,所述第一智能设备验证第三智能设备,并向第二智能设备返回包含所述第三智能设备的第二Token信息;所述连接请求模块还用于根据所述第二Token信息,生成并发送第三连接请求至第三智能设备,与所述第三智能设备建立全双工通道。
- 如权利要求8所述的智能设备,其特征在于所述智能设备还包括:第二控制模块,用于监听其它智能设备的控制信息,并当收到所述控制信息,控制自身应用程序的运行。
- 一种共享认证系统,其特征在于,所述系统包括如权利要求6、7、8、9所述的若干智能设备。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611162026.1 | 2016-12-15 | ||
CN201611162026.1A CN106534192B (zh) | 2016-12-15 | 2016-12-15 | 一种共享认证方法及系统、智能设备及控制方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018107671A1 true WO2018107671A1 (zh) | 2018-06-21 |
Family
ID=58340821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/087057 WO2018107671A1 (zh) | 2016-12-15 | 2017-06-02 | 一种共享认证方法及系统、智能设备及控制方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106534192B (zh) |
WO (1) | WO2018107671A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534192B (zh) * | 2016-12-15 | 2020-01-07 | 上海斐讯数据通信技术有限公司 | 一种共享认证方法及系统、智能设备及控制方法 |
CN113612628B (zh) * | 2021-07-09 | 2023-04-18 | 苏州浪潮智能科技有限公司 | 一种实现自适应跨网段双向通信的方法、系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103269373A (zh) * | 2013-05-28 | 2013-08-28 | 中山大学 | 一种基于jxta平台的p2p文件共享方法 |
CN105516195A (zh) * | 2016-01-19 | 2016-04-20 | 上海众人网络安全技术有限公司 | 一种基于应用平台登录的安全认证系统及其认证方法 |
CN105933023A (zh) * | 2016-04-12 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | 一种基于智能终端的信息互动系统及头部智能穿戴设备 |
EP3086506A1 (en) * | 2013-12-20 | 2016-10-26 | Samsung Electronics Co., Ltd. | Apparatus and method for registering home device in server in home network system |
CN106534192A (zh) * | 2016-12-15 | 2017-03-22 | 上海斐讯数据通信技术有限公司 | 一种共享认证方法及系统、智能设备及控制方法 |
-
2016
- 2016-12-15 CN CN201611162026.1A patent/CN106534192B/zh active Active
-
2017
- 2017-06-02 WO PCT/CN2017/087057 patent/WO2018107671A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103269373A (zh) * | 2013-05-28 | 2013-08-28 | 中山大学 | 一种基于jxta平台的p2p文件共享方法 |
EP3086506A1 (en) * | 2013-12-20 | 2016-10-26 | Samsung Electronics Co., Ltd. | Apparatus and method for registering home device in server in home network system |
CN105516195A (zh) * | 2016-01-19 | 2016-04-20 | 上海众人网络安全技术有限公司 | 一种基于应用平台登录的安全认证系统及其认证方法 |
CN105933023A (zh) * | 2016-04-12 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | 一种基于智能终端的信息互动系统及头部智能穿戴设备 |
CN106534192A (zh) * | 2016-12-15 | 2017-03-22 | 上海斐讯数据通信技术有限公司 | 一种共享认证方法及系统、智能设备及控制方法 |
Also Published As
Publication number | Publication date |
---|---|
CN106534192B (zh) | 2020-01-07 |
CN106534192A (zh) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210105838A1 (en) | Peer to peer networking and sharing systems and methods | |
JP6464298B2 (ja) | エンドツーエンドm2mサービス層セッション | |
CN107534672B (zh) | 一种促进网络客户端提供网络服务的方法、设备与系统 | |
EP3073699B1 (en) | System and method for controlling mutual access of smart devices | |
JP5855867B2 (ja) | コンテンツ中心ネットワークを介するサービス仮想化 | |
JP2005509977A5 (zh) | ||
US8219614B2 (en) | Edge peer device, pan gateway device, super peer device, and P2P network-based interconnection method | |
KR102311514B1 (ko) | 시커 디바이스와 목표 디바이스 간의 접속을 설정하는 방법 및 시스템 | |
CN106664228A (zh) | 在cpe和配套设备之间进行共享 | |
CN103108037A (zh) | 一种通信方法,Web服务器及Web通信系统 | |
CN107003981B (zh) | 与本地配对的设备同步以使用点到点通信从远程服务器获得数据 | |
US11539616B1 (en) | Upgrading meshnet connections in a mesh network | |
WO2018107671A1 (zh) | 一种共享认证方法及系统、智能设备及控制方法 | |
JP6393475B2 (ja) | 通信アダプタ装置、通信システム、トンネル通信方法、及びプログラム | |
US8924520B2 (en) | Method, remote access server and system for configuring a quality of service parameter | |
US20150150103A1 (en) | Method of authenticating a device to access a service | |
KR20100062866A (ko) | 일반 피어 장치, pan 게이트웨이 장치, 수퍼 피어 장치, p2p 네트워크 기반의 상호 연동 방법 | |
JP5586689B2 (ja) | ホームネットワーク、ホームネットワーク間での装置情報共有方法、及びホームネットワークシステム | |
CN115460562A (zh) | 安全可信的点对点离线通信系统和方法 | |
US12003479B1 (en) | Conflict resolution to enable access to local network devices via mesh network devices | |
JP2004171274A (ja) | 分散型認証システム及び分散型認証プログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17881252 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17881252 Country of ref document: EP Kind code of ref document: A1 |