Welcome!

Java IoT Authors: Pat Romanski, Elizabeth White, Liz McMillan, Yeshim Deniz, Frank Lupo

Related Topics: Java IoT, Cloud Security

Java IoT: Article

Java, Security, and Open Source

Standards are fundamental to security

Now that a significant number of JSRs are being developed as open source projects, I thought it would be interesting to explore the implications of this for security.

First, let's start with the basics. Security is fundamental to the Java platform - it's built in to the Java Language and the Java Virtual Machine specifications.

In the early days it was expected that a primary use of Java would be "executable content" downloaded from the Web. (See this paper from 1995 on security in Java - "A new programming language from Sun Microsystems".) Obviously the security implications of running arbitrary "foreign" code are serious. Java took these into account.

At the most fundamental level, the Java compiler and virtual machine use several mechanisms to ensure security. These include strong data typing and automatic memory management to guard against problems like buffer overflows, bytecode verification to ensure that the contents of Java class files are consistent with the specifications, and secure class loading to ensure that untrusted code cannot interfere with the running of other Java programs.

Security for applets was originally enforced using a simple "sandbox" mechanism. Untrusted code was permitted to execute only in a "sandbox" where it was prohibited from performing many potentially harmful actions such as reading or writing to the local disk or making new network connections. While this simple approach provided effective security, it proved to be too restrictive, making it difficult for benevolent but technically untrusted programs to do anything useful.

Java 1.1 introduced a code-signing and authentication mechanism that made it possible to remove the sandbox restrictions on code that had been digitally signed by a trusted third party. However, in practice this still proved too inflexible, since it adopted an all-or-nothing approach. (Either code was completely trusted and could do anything, or it was completely untrusted and severely restricted.) Finally, Java 1.2 (Java 2), introduced a sophisticated fine-grained security policy, making it possible to grant or deny specific permissions to all Java code (not just applets).

Building on the security features of the language and virtual machine, a variety of APIs provide flexible and extensible support for cryptography, secure communication, authentication, access control, and public key infrastructure. (Click here for details - probably more than you want to know!)

Because security is fundamental, the majority of these APIs were developed and evolved as part of the base Java SE platform JSRs rather than as standalone JSRs. However, there have been several JSRs that specifically addressed security:

It goes without saying that standards are fundamental to security. If we can't agree on encryption algorithms or on secure communication protocols, then we have nothing. Standards, and their public nature, make security possible. However, standards by themselves are not sufficient. Implementations must conform to the standards (conformance test suites, or TCKs, can help to ensure this), and of course the implementations must be free of bugs that would otherwise compromise security. How can we ensure this? Does the public nature of the open source development process help or hinder the development of secure implementations?

Some argue that opening up the source code to public scrutiny is dangerous - that it makes it more likely that "hackers" will discover and exploit security flaws. Others argue that public exposure is the best defense -the more people who study the source code the more likely it is that security problems will be discovered and corrected. A detailed review of the arguments can be found here.

I don't believe that open source development processes necessarily result in secure software, any more than they guarantee high quality. It's just as easy to write buggy or insecure code "in the open" as it is behind closed doors. However, if the source code is available for public scrutiny, and if others are free to modify it, this may make it possible to discover and correct problems that would otherwise go undetected. As Whitfield Diffie, the co-inventor of public-key cryptography and chief security officer at Sun Microsystems has pointed out, "all of the popular cryptographic systems used on the Internet are public...It's simply unrealistic to depend on secrecy for security in computer software." (Risky business: Keeping security a secret.)

The public nature of the JCP's standards-development process, coupled with open source coding practices, are the best guarantees of Java's security.

This Month's Active JSRs
As always, several JSRs advanced through the process this month. (For full details, see the Focus on JSRs section on the JCP homepage or subscribe to our mailing list.)

While it may be more interesting and more exciting to push a new JSR through the process, we shouldn't forget the importance of ongoing maintenance. A standard that is defined but that doesn't evolve is not very useful. This month JSR 927: Java TV, led by Sun, submitted its fourth Maintenance Review. Java standards for TV have been under development for several years and seem likely to reach their full potential soon as OCAP-compatible set-top boxes reach the market. (The "900 number" of the JSR, by the way, signifies that this specification was developed before the JCP was created, and was "grandfathered in" to the process for maintenance purposes.) Similarly, JSR 82: Java APIs for Bluetooth, led by Motorola, issued its third Maintenance Release six years after the initial release of the specification. The spec leads for both of these JSRs are to be commended for their ongoing commitment.

JSR 290: Java Language & XML User Interface Markup Integration, led by Sun, released its Proposed Final Draft. If you, like me, are intrigued by the possibility of combining Java user interfaces with XML markup, check out this JSR, which enables the creation of rich user interfaces on mobile devices by leveraging W3C XML markup specifications such as Scalable Vector Graphics and the Compound Document Format.

Finally, JSR 311: JAX-RS: The Java API for RESTful Web Services - one of the "open and transparent" JSRs that I wrote about last month - is currently in its Final Approval Ballot process.

While we're talking about ballots, if you're a JCP member you will soon have the opportunity to vote in our annual elections. (If you're not, now is a good time to join. It's easy and free for individuals.) More on this next month.

More Stories By Patrick Curran

Patrick Curran is chair of the JCP and director of the JCP Program at Sun Microsystems, Inc.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...
Amazon is pursuing new markets and disrupting industries at an incredible pace. Almost every industry seems to be in its crosshairs. Companies and industries that once thought they were safe are now worried about being “Amazoned.”. The new watch word should be “Be afraid. Be very afraid.” In his session 21st Cloud Expo, Chris Kocher, a co-founder of Grey Heron, will address questions such as: What new areas is Amazon disrupting? How are they doing this? Where are they likely to go? What are th...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, will discuss how given the magnitude of today's applicati...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
SYS-CON Events announced today that Avere Systems, a leading provider of hybrid cloud enablement solutions, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere Systems was created by file systems experts determined to reinvent storage by changing the way enterprises thought about and bought storage resources. With decades of experience behind the company’s founders, Avere got its ...
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.