![]() ![]() |
||||
|
||||
[Design Application] Java Security Guards Embedded Networks By Conquering Its Early Security Issues, This Language Has Emerged As A Highly Secure Environment For Embedded Applications. Prithvi Rao November/December 2003
THE SECURITY MANAGER To accomplish this goal, the class method System.setSecurityManager() is used. The class Java.lang.SecurityManager is an abstract class. To implement a security policy, the user must extend this class. The following is an illustrative portion of a security manager. The complete code can be found on the previously listed web site: public class URLMain throws MalformedURLException, ClassNotFoundException
{
SampleSM sem;
The class name that's used here for the security manager is SampleSM. We declare it to be of type SampleSM. Hashtable clHashtable = new Hashtable(); URLClassLoader urlcl; Class cl; StringBuffer urlSB; StringBuffer classFileSB; int ch; String urlString; String classFileName; The hash table keeps track of all class loaders and string buffers for reading URLs and class files. ssm = new SampleSM(true); System.setSecurityManager(ssm); .... } The following list summarizes the usage of the security manager:
EARLY SECURITY ISSUES Another form of attack was applet-based. In this scenario, a class loader was installed from an applet. In turn, the class loader installed Java classes as trusted classes. This attack was made possible by a bug in the Java byte-code verifier. To reduce developers' security concerns, Sun Microsystems (www.sun.com) addressed these problems in later versions of Java. In the security community, there's a routine joke that there's only one really secure machine. It's a machine that's enclosed in a room with no entry capability, no network connectivity, and no console. Sometimes, the joke also includes the requirement for no power. These demands are obviously a little too stringent for the real world, in which Java is growing in popularity. Fortunately, early Java developers were very security conscious. They included protections for both language and code execution. The byte-code verifier, class loader, and security manager within the JVM all work in a cooperative manner to strengthen the security features of Java. Moreover, these features are accessible to developers. They allow them to design JVMs that meet specific security requirements for their own systems. The many protections that Java offers make it very unlikely that applications will be able to throw dirt in the proverbial sandbox. |
|||||||||||||||
|
|
|||||||||||||||
|
[Reader Comments] Java Security Guards Embedded Networks |
|
|
|
Electronic Design Europe Electronic Design China EEPN Microwaves & RF Schematics ![]() Electronic Design Military Electronics Featured Vendors EE Events Free Design Resources |
|
|
Planet EE Network Home |
Contact Us |
Editorial Calendar |
Media Kit |
Headlines |
Site Feedback & Bugs Copyright © 2010 Penton Media, Inc. Legal | Privacy Statement Terms of Use |