Debian Codegraph @

samples/tests/spec/scripting/security2.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" >
4
5
6 <!--
7
8 Licensed to the Apache Software Foundation (ASF) under one or more
9 contributor license agreements. See the NOTICE file distributed with
10 this work for additional information regarding copyright ownership.
11 The ASF licenses this file to You under the Apache License, Version 2.0
12 (the "License"); you may not use this file except in compliance with
13 the License. You may obtain a copy of the License at
14
15 http://www.apache.org/licenses/LICENSE-2.0
16
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22
23 -->
24 <!-- ========================================================================= -->
25 <!-- Checks that access to critical functions is not allowed. -->
26 <!-- Specifically, this test checks that: -->
27 <!-- -->
28 <!-- - access to local files is denied. -->
29 <!-- - access to the network via sockets is denied. -->
30 <!-- - access to audio is denied. -->
31 <!-- - access to logging is denied. -->
32 <!-- - access to network features is denied. -->
33 <!-- - access to system properties is denied. -->
34 <!-- - access to serialization is denied. -->
35 <!-- - access to SQL log is denied. -->
36 <!-- - access to SSL is denied. -->
37 <!-- -->
38 <!-- This test is designed for Java Language scripting. -->
39 <!-- -->
40 <!-- @author [email protected] -->
41 <!-- @version $Id$ -->
42 <!-- ========================================================================= -->
43
44 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
45
46
47 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
48 width="450" height="500" viewBox="0 0 450 500">
49 <title>
50 Check Security Settings on Load
51 </title>
52
53 <script type="text/ecmascript" xlink:href="../../resources/script/scrollbar.js"/>
54 <script type="text/ecmascript" xlink:href="../../resources/script/common.js"/>
55 <!-- <script type="text/ecmascript" xlink:href="http://zantafio:8080/samples/tests//resources/script/common.js"/> -->
56 <!-- <script type="application/java-archive" xlink:href="http://zantafio:8080/samples/tests/spec/scripting/security2.jar"/> -->
57 <script type="application/java-archive" xlink:href="security2.jar"/>
58
59 <style type="text/css"><![CDATA[
60 .cellLabel {
61 fill: white;
62 stroke: black;
63 shape-rendering: crispEdges;
64 }
65
66 .cellStatus {
67 stroke: black;
68 shape-rendering: crispEdges;
69 }
70
71 .label {
72 font-size: 12;
73 font-family: sans-serif;
74 fill: black;
75 text-anchor: middle;
76 }
77
78 .passedTest {
79 fill: rgb(0,200,50);
80 stroke: none;
81 shape-rendering: crispEdges;
82 }
83
84 .failedTest {
85 fill: crimson;
86 stroke: none;
87 shape-rendering: crispEdges;
88 }
89
90 #table {
91 stroke: black;
92 }
93
94 .untested {
95 fill: gray;
96 stroke: none;
97 shapeRendering: crispEdges;
98 }
99
100 .tableCell {
101 fill: none;
102 stroke: black;
103 shapeRendering: crispEdges;
104 }
105 ]]>
106 </style>
107
108 <!-- ============================================================= -->
109 <!-- Test content -->
110 <!-- ============================================================= -->
111 <g id="testContent">
112 <text x="225" y="30" class="title">
113 Java Jar-file Security Check
114 </text>
115
116 <defs>
117 <g id="row" fill="gray">
118 <rect id="rowLabel" class="cellLabel" x="0" y="0" width="150" height="20"/>
119 <rect id="rowStatus" class="cellStatus" x="150" y="0" width="20"
120 height="20"/>
121 </g>
122 </defs>
123
124 <defs>
125 <clipPath id="clipA">
126 <use xlink:href="#contentClipRect"/>
127 </clipPath>
128
129 <rect id="contentClipRect" x="50" y="70" width="350" height="375"/>
130
131 <g id="upArrow" >
132 <circle cx="6" cy="6" r="6" fill="gray" />
133 <polygon points="0 0, -1 1, 1 1"
134 transform="translate(6, 4) scale(3)"/>
135 </g>
136
137 <g id="downArrow" >
138 <circle cx="6" cy="6" r="6" fill="gray" />
139 <polygon points="0 0, -1 1, 1 1"
140 transform="translate(6, 8) scale(3) rotate(180)"/>
141 </g>
142
143 <g id="cursor">
144 <polygon points="0 0, -1 1, 1 1"
145 transform="translate(2) scale(6) translate(0, 1) rotate(-90)"/>
146 </g>
147
148
149 </defs>
150
151 <g id="securityTableTitle" fill="none" stroke="black" shape-rendering="crispEdges">
152 <rect x="50" y="50" width="330" height="20" fill="lightgray"/>
153 <g>
154 <desc>Test Result</desc>
155 <polygon points="383,53 397,53 383,67" fill="crimson" stroke="none" />
156 <polygon points="383,67 397,67 397,53" fill="rgb(0,200,50)" stroke="none" />
157 </g>
158 <rect x="380" y="50" width="20" height="20" />
159 <text x="215" y="65" text-anchor="middle" stroke="none" fill="black">Security Check Type</text>
160 </g>
161
162 <g transform="translate(0, 0)">
163 <g id="scrolledArea">
164 <g id="clippedArea"
165 onload="new ScrollBar('securityResults', 30, 400, 70, 375, 1200, 12, '#upArrow', '#downArrow', '#cursor', 12)"
166 clip-path="url(#clipA)">
167 <g id="securityResults">
168 <!-- Here is where the security results will be appended -->
169 </g>
170 </g>
171 </g>
172 </g>
173
174 <use xlink:href="#contentClipRect" stroke="rgb(64,64,64)" fill="none"/>
175
176 <!-- =========================================== -->
177 <!-- Button for starting the security check -->
178 <!-- =========================================== -->
179 <g transform="translate(90, 470)" onmouseover="setAttribute('runTest', 'fill', 'gold')"
180 onmouseout="setAttribute('runTest', 'fill', 'lightgray')">
181 <rect id="runTest" x="-40" y="-10" width="80" height="20"
182 stroke="black" fill="lightgray" />
183
184 <text x="0" y="5" text-anchor="middle">Run Test</text>
185 </g>
186
187 <!-- =========================================== -->
188 <!-- Used to display the overall status -->
189 <!-- =========================================== -->
190 <g id="globalStatusGroup">
191 <rect x="380" y="460" width="20" height="20"
192 class="tableCell" />
193 <rect id="globalStatus"
194 x="383" y="463" width="14" height="14"
195 class="untested" />
196 <text id="successRatio" x="375" y="475" text-anchor="end">not run</text>
197 </g>
198
199
200 </g>
201
202
203 </svg>