The present patent disclosure relates generally to a communications system for providing communications to a plurality of devices and specifically to a system and method for secure messaging between wireless devices and application gateway.
Due to the proliferation of wireless networks, there are a continually increasing number of wireless devices in use today. These devices include mobile telephones, personal digital assistance (PDAs) with wireless communication capabilities, two-way pagers and the like. Concurrently with the increase of available wireless devices, software applications running on such devices have increased their utility. For example, the wireless device may include an application that retrieves a weather report for a list of desired cities or an application that allows a user to shop for groceries. These software applications take advantage of the ability to transmit data of the wireless network in order to provide timely and useful services to users, often in addition to voice communication. However, due to a plethora of different types of devices, restricted resources of some devices, and complexity of delivering large amounts of data to the devices, developing software applications remains a difficult and time-consuming task.
Currently, devices are configured to communicate with Web services through Internet-based browsers and/or native applications. Browsers have the advantage of being adaptable to operate on a cross-platform basis for a variety of different devices, but have a disadvantage of requesting pages (screen definitions in HTML) from the Web service, which hinders the persistence of data contained in the screens. A further disadvantage of browsers is that the screens are rendered at runtime, which can be resource-intensive. Applications for browsers are efficient tools for designing platform independent applications. Accordingly, different runtime environments (RE), regardless of the platform, execute the same application. However, since different wireless devices have different capabilities and form factors, the application may not be executed or displayed as desired. Further, browser based application often require significant transfer bandwidth to operate efficiently, which may be costly or even unavailable for some wireless devices.
On the other hand, native applications are developed for a specific wireless device platform, thereby providing a relatively optimized application program for a runtime environment running on that platform. However, a platform dependent application introduces several drawbacks, including having to develop multiple versions of the same application and being relatively large in size, thereby taxing memory resources of the wireless device. Further, application developers need experience with programming languages such as Java and C++ to construct such native applications.
Systems and methods disclosed herein provide a communication system for provisioning component-based applications on devices to obviate or mitigate at least some of the aforementioned disadvantages.
An embodiment of the patent disclosure will now be described by way of example only with reference to the following drawings in which:
In accordance with an aspect of the present patent disclosure there is provided a system for secure messaging between a wireless device and an application gateway, the system comprising an application gateway server including a message broker for communicating between the system and the device, the application gateway server configured for communication with a provisioning server and a discovery server and including an application mapping layer for effecting asymmetric encryption between the device and the application gateway and including encryption having a first set of keys for encrypting messages to the device and decryption having a second set of keys for decrypting messages from the device.
In accordance with yet another aspect of the present patent disclosure there is provided a method of secure messaging between a wireless device and an application gateway, the method comprising the steps of connecting a device to an application mapping layer via a secure socket; and exchanging encryption keys for effecting asymmetric encryption between the device and the application gateway and including encryption having a first set of keys for encrypting messages to the device and decryption having a second set of keys for decrypting messages from the device.
Accordingly, the present patent disclosure provides an entire solution from end-to-end; combining a variety of security patterns and technologies in a specific manner to provide a highly secure form of protecting data in a messaging style format between two endpoints on a network.
The present patent disclosure provides an optimized strength of encryption on the paths from application mapping layer to wireless device and vice versa. The present patent disclosure is also able to change in nature to suit the dynamic nature of the payload sizes and transmission rates in the mobile market.
Throughout the present patent application we are using RSA (Rivest, Shamir and Adlemean) and ECC (Elliptic Curve Cryptography) as examples of efficient two-way asymmetric algorithms and AES (Advanced Encryption Standard) as an example of a symmetric algorithm.
For convenience, like numerals in the description refer to like structures in the drawings. Referring to
The wireless devices 102 are typically personal digital assistants (PDAs), such as a Blackberry™ by Research in Motion for example, but may include other devices. Each of the wireless devices 102 includes a runtime environment capable of hosting a plurality of component applications.
Component applications comprise one or more data components, presentation components, and/or message components, which are written in a structured definition language such as Extensible Markup Language (XML) code. The component applications can further comprise workflow components which contain a series of instructions such as written in a subset of ECMAScript, and can be embedded in the XML in some implementations. Therefore, since the applications are compartmentalized, a common application can be written for multiple devices by providing corresponding presentation components without having to rewrite the other components. Further, large portions of the responsibility of typical applications are transferred to the runtime environment for the component applications. The details of the component applications are described at the end of this description.
The wireless devices 102 are in communication with the application gateway 106 via the communication network 104. Accordingly, the communication network 104 may include several components such as a wireless network 110, a relay 112, a corporate server 114 and/or a mobile data server 116 for relaying data between the wireless devices 102 and the application gateway 106.
The application gateway 106 comprises a gateway server 118 a provisioning server 120 and a discovery server 122. The gateway server 118 acts as a message broker between the runtime environment on the wireless devices 102 and the backend servers 108. The gateway server 118 is in communication with both the provisioning server 120 and the discovery server 122. The gateway server 118 is further in communication with a plurality of the backend servers 108, such as Web services 108a, database services 108b, as well as other enterprise services 108c, via a suitable link. For example, the gateway server 118 is connected with the Web services 108a and database services 108b via Simple Object Access Protocol (SOAP) and Java Database Connectivity (JDBC) respectively. Other types of backend servers 108 and their corresponding links will be apparent to a person of ordinary skill in the art.
Each wireless device 102 is initially provisioned with a service book establishing various protocols and settings, including connectivity information for the corporate server 114 and/or the mobile data server 116. These parameters may include a Uniform Resource Locator (URL) for the application gateway server 118. Alternately, if the wireless device 102 is not initially provisioned with the URL and encryption key, they may be pushed to the wireless device 102 via the mobile data server 116. The mobile device 102 can then connect with the application gateway 106 via the URL of the application gateway server 118.
Referring to
A provisioning service 211 and a discovery service 213 are provided by the provisioning server 120 and discovery server 120, respectively
At the lowest level, the base services layer 202 offers basic, domain-independent system services to other components in higher levels. Thus, for example, all subsystems in the application gateway services layer 204 and the application services layer 206 can utilize and collaborate with the subsystems in the base services layer 202. In the present embodiment, the base services layer 202 includes a utilities subsystem 211, a security subsystem 213, a configuration subsystem 214, and a logging subsystem 216.
The application gateway services layer 204 provides wireless component application domain specific services. These services provide efficient message transformation and delivery to backend systems 108 and provide wireless device 102 and component application lifecycle management. In the present embodiment, the application gateway services layer 204 includes a lifecycle subsystem 220, a connector subsystem 222, a messaging subsystem 224, and a transformation subsystem 226.
The application services layer 206 sits at the top of the architecture and provides external program interfaces and user interfaces using subsystems provided by the lower layers. For example, various applications such as a service provider lifecycle application, a packaging application and a message listening application provide external program interfaces since they communicate primarily with applications on external systems. Similarly, an administration application provides a user interface by providing a user with the ability to access and potentially modify application gateway data and/or parameters.
The administration service 208 is responsible for administrative system messages, administration of the wireless devices 102, runtime administration of the application gateway subsystems, support and display system diagnostics, and administration of default implementations of the provisioning and discovery services.
The messaging listening application provides an interface for receiving messages from the wireless devices 102 as well as external sources and forwarding them to the messaging subsystem. Further, the message listening application typically authenticates that the source of the message is valid.
The security subsystem 212 providing services used by other subsystems for securing communications with the wireless device 102. In order to facilitate secure communications, the security subsystem 212 encrypts and decrypts messages, validates signatures and signs messages.
Referring to
The keystore interface 304 facilitates generating encryption keys and storing and retrieving keys as required.
The signature interface 306 facilitates validating message signatures received as well as signing messages to be transmitted. Similarly to the encryption algorithm, the validation and signature algorithms are can be replaced with different algorithms if desired.
Packaging Application
The packaging application is provided as part of the application 230 for facilitating provisioning of component applications on the wireless devices 102. During a first request for a component application package, the packaging application processes a raw component application, also referred to as a component application bundle, and prepares it for wireless transmission. The packaging application loads the component application bundle from a specified location, typically a predefined URL, determines what security actions and processing it needs to perform, and returns a packaged component application to the provisioning service for storage.
Security actions that may need to occur include, for example, authentication of the component application bundle publisher. Authentication can be achieved by verifying the validity of the publisher's certificate and the using the application gateway signature to sign the packaged component application. Further, a certificate may be generated within a tag by an application development tool and stored within the application bundle; this certificate of the development tool may also be verified.
The component application bundle typically includes modules such as XML definitions, mappings, application resources, and resource bundles for localization support. The XML definitions include XML coding of application data, messages, screen components and workflow. XML is used as an example of any structured definition language applicable to coding of the component applications.
The mappings define the relationship between the component application and one or more backend servers 108. In the present embodiment, the mapping is defined using the Web Services Description Language (WSDL). WSDL is defined in the standard as an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint. Related concrete endpoints are combined into abstract endpoints (services). WSDL is extensible to allow description of endpoints and their messages regardless of what message formats or network protocols are used to communicate, however, the only bindings described in this document describe how to use WSDL in conjunction with SOAP, HTTP, and Multi-Purpose Internet Mail Extensions (MIME).
Accordingly, when a message is received from the wireless device 102, it includes an identifier illustrating the component application from which it originated. This information is used to identify a corresponding mapping, which determines how to interpret the message as well as where to send it. In the present embodiment, each wireless device 102 in uniquely addressable. Accordingly, return messages are pushed to the device via the mobile data server 116. In alternate embodiments, the push can be achieved via other known carrier/device specific push protocols, as will be appreciated by a person skilled in the art; for example, a Wireless Application Protocol (WAP) push performed over Short Message System (SMS).
The application resources include one or more resources such as images, sound, video and the like, that are packaged with the application as static dependencies. The resource bundles typically include localization information for the component application. An example of localization information includes language support, text direction, scrolling directions, dictionary and thesaurus services and the like.
Accordingly, the processing of the component application bundle includes localization using the provided resource bundle, binary encoding, marking the component application with a secure flag and uploading the packaged component application in a provided destination repository, which is typically designated by URL. In the present embodiment, the binary encoding is performed for reducing the bandwidth required for transmitting the component application to the wireless device 102. The binary encoding is achieved using the Wireless Application Protocol Binary XML (WBXML) standard, although other coding schemes may be used. Yet further, it may not be required to perform binary encoding at all. Further, the mapping is transmitted to the message broker 602 for facilitating communication between the runtime environment executing the component application and the associate backend server or servers 108.
The packaging application is available to external subsystems as a Web service. In the present embodiment, it is accessed by the provisioning service 120, but it may also be accessed by third-party custom provisioning services.
Referring to
The Application Gateway (AG) 106 serves as a mediator between a WiCA application (Wiclet) executed by RE 102 and a one or more back-end systems 108 with which the wiclet communicates. In most cases the back-end system(s) 108 is expected to be a Web service using SOAP over HTTP or HTTPS as transport protocol.
The term Web service is used interchangeable with back-end throughout this document since Web services are the most common expected back-end systems. The WiCA communication model 400 is based upon asynchronous messaging paradigm. In this model the application gateway (AG) 106 establishes and mediates the connection between the device 102 and the back-end system(s) 108 to:
Referring to
Referring to
Referring to
In operation, once a secure handshake has been established as shown in
The Secure Messaging model supports independent PKI infrastructure schemes in each direction between the Mobile Device (MD) 102 to Application Mapping Layer (AML) 600. This ensures that all messages are sent in the most efficient manner while still providing a secure overall solution. By using asymmetric algorithms one can differentiate in processing costs and time for encrypting versus decrypting depending on the algorithm specification.
RSA is the most commonly used public key cryptosystem. It was developed by Ron Rivest, Adi Shamir and Leonard Adleman in 1977. This algorithm depends on a one-way function involving the factorization of a large integer n. Where n is a product of two large prime numbers, p and q. The one-way function of RSA is to calculate n relatively easily if p and q are known. However, the inverse task of factoring a sufficiently large known n to discover its two prime factors p and q is currently computationally infeasible.
ECC (Elliptic Curve Cryptography) is another public key cryptosystem. Both RSA and ECC can provide secure communications, however, ECC has advantages over RSA and other commonly used public key cryptosystems. RSA is based on the integer factorization problem while ECC is based on the discrete logarithm problem (DLP).
ECC has the following advantages over RSA:
RSA has the following advantage over ECC:
During the handshaking process each side takes the other's public key in trust and uses it to verify data received. These keys are both public keys but may at a later time be switched to a different specification. This processing and over-the-air requirements for the mobile device while assuring adequate strength security.
In the secure handshake, the mobile device (MD) 102 connects to the application mapping layer (AML) 600 via a secure socket layer (SSL) to exchange keys. The SSL ensures trust between the two endpoints during the key transfer process. These keys are persisted in an encoded format on both MD and AML sides for use in all secure message transmissions.
Once exchanged, these public keys play an important role in the securing of data using the following security principles:
Non-Repudiation/Integrity Here proof is needed that the message that was sent has come from the person who you believe it to be from. This is often accomplished using digital signatures, which makes the sender to sign some portion of data with a private key that may be verified with their public key. Integrity exists when it is verified that the message remains the same without modification as when it was sent. This is done with a digital signature that signs all of the data.
Confidentiality is an easy concept for most people to understand. It is the act of keeping secrets. Confidentiality is the process of keeping information from being revealed to entities not intended to receive the information. Encryption is a common and effective way (if used correctly) to provide confidentiality of information.
The secure messaging has a data model that supports two different security modes. Each mode supports different security principles. Depending on the security mode used, the data payload size and performance are affected. Both security modes support data signing and therefore use the public keys 604 and 608 exchanged in the handshake illustrated in
Referring to
Referring to
The signed and encrypted mode supports the Non-Repudiation/Integrity and adds Confidentiality. This mode should be used when you need the same security that the signed mode provides, plus you also do not want the signature and plain text data to be visible in the clear. The confidentiality is done using symmetric key technology. In this model, an AES symmetric key is encrypted using the public key exchanged in the handshake. This AES algorithm is used in both directions. Once decrypted it is used as a bulk key to decrypt the signed data contents, which has been ciphered with an AES algorithm.
The secure messaging solution does not dictate the particular transport that should use in sending any type of data between the MD and the AML. The solution inherently allows for applications to send any such data as defined in the data model over any remote protocol. However, it does require some type of message container to define if the messages sent in the container are secure, if so what version they are using and the security mode. Following is the final format of a message containing a secure message
Referring to
Numerous modifications, variations and adaptations may be made to the particular embodiments described above without departing from the scope patent disclosure, which is defined in the claims.
This non-provisional application claims benefit of U.S. Provisional Application No. 60/672,040 filed Apr. 18, 2005.
Number | Name | Date | Kind |
---|---|---|---|
5909491 | Luo | Jun 1999 | A |
20010034771 | Hutsch et al. | Oct 2001 | A1 |
20020131598 | Chiu | Sep 2002 | A1 |
20020152382 | Xiao | Oct 2002 | A1 |
20030051029 | Reedy et al. | Mar 2003 | A1 |
20030147536 | Andivahis et al. | Aug 2003 | A1 |
20030185396 | Asano et al. | Oct 2003 | A1 |
20040114760 | Brown et al. | Jun 2004 | A1 |
20040193329 | Ransom et al. | Sep 2004 | A1 |
20040194105 | Shenfield et al. | Sep 2004 | A1 |
20050201562 | Becker et al. | Sep 2005 | A1 |
20050285734 | Sheynman et al. | Dec 2005 | A1 |
20060053480 | Lacasse et al. | Mar 2006 | A1 |
20060126838 | Taieb et al. | Jun 2006 | A1 |
Number | Date | Country |
---|---|---|
1 284 570 | Feb 2003 | EP |
2004081801 | Sep 2004 | WO |
Entry |
---|
PCT International Search Report and Written Opinion mailed Apr. 4, 2006 for corresponding PCT Application No. PCT/CA2005/001963. |
Number | Date | Country | |
---|---|---|---|
20060234731 A1 | Oct 2006 | US |
Number | Date | Country | |
---|---|---|---|
60672040 | Apr 2005 | US |