IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  Java technology  >

Take control of the DOM, Part 3

developerWorks

返回原文..


Listing 1. SecurityOps.html
		
	<html><head><title>Weblet Security Sampler</title>
<style type="text/css">
      <!-- div.outputArea {margin-left: 5%; font-weight: bold} -->
</style>
</head>
<body>
<p>This weblet attempts several security-sensitive operations.  Each
operation is described below, and then the operation's output is shown.
Which operations work, and which ones don't, will vary as you grant and
revoke permissions in the appropriate policy file.</p>
<p>Operations on the local file system are restricted:
<div id="readFileDiv" class=outputArea></div>
</p>
<p>Like applets, weblets can see <i>some</i> System Properties:
<div id="propertiesDiv" class=outputArea></div>
</p>
<p>And like applets, weblets <i>can't</i> see some
System Properties:
<div id="hiddenDiv" class=outputArea></div>
</p>
<p>Weblets cannot, by default, access the current Java Security Policy:
<div id="policyDiv" class=outputArea></div>
</p>
<p>Terminating the JVM is usually a bad idea, and is restricted:
<div id="killDiv" class=outputArea></div>
</p>
<p>Printing is restricted by default:
<div id="printDiv" class=outputArea></div>
</p>
<p>If loaded from a host, weblets can connect to that host:
<div id="hostDiv" class=outputArea></div>
</p>
<p>Weblets cannot by default connect to other systems:
<div id="serverDiv" class=outputArea></div>
</p>
<object classid="clsid:F88A5D85-29A0-11D3-AE55-0000861DDC26">
     <param name="WEBLET_CLASSNAME" value="SecurityOps">
     <param name="WEBLET_CODEBASE" value="SecuritySamples.jar">
     <comment>
       <object type="application/x-weblet" width="0" height="0">
         <param name="WEBLET_CLASSNAME" value="SecurityOps">
         <param name="WEBLET_CODEBASE" value="SecuritySamples.jar">
       </object>
     </comment>
</object>
</body></html>
		
	   
	   

返回原文.

    关于 IBM 隐私条约 联系 IBM 使用条款