File: esapi.tld

package info (click to toggle)
libowasp-esapi-java 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 7,480 kB
  • ctags: 4,161
  • sloc: java: 26,333; xml: 1,309; sh: 293; makefile: 4
file content (371 lines) | stat: -rw-r--r-- 10,161 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ OWASP Enterprise Security API (ESAPI)
  ~
  ~ This file is part of the Open Web Application Security Project (OWASP)
  ~ Enterprise Security API (ESAPI) project. For details, please see
  ~ <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
  ~
  ~ Copyright (c) 2007 - The OWASP Foundation
  ~
  ~ The ESAPI is published by OWASP under the BSD license. You should read and accept the
  ~ LICENSE before you use, modify, and/or redistribute this software.
  ~
  ~ @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
  ~ @created 2007
  -->

<taglib
	xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		http://java.sun.com/xml/ns/j2ee
		http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
	version="2.0">
	<description>
		OWASP Enterprise Security API (ESAPI) provides
		a JSP Tag Library that supplies easy access to
		encoding functionality in the form of JSP Tags and EL
		functions. These can be used to properly escape user
		supplied data at display time so that it cannot be used
		in injection attacks like Cross Site Scripting (XSS).
	</description>
	<display-name>OWASP ESAPI</display-name>
	<tlib-version>2.0</tlib-version>
	<short-name>esapi</short-name>
	<uri>
		http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API
	</uri>

	<tag>
		<description>
			Encode tag's content using Base64
		</description>
		<display-name>Encode For Base64</display-name>
		<name>encodeForBase64</name>
		<tag-class>
			org.owasp.esapi.tags.EncodeForBase64Tag
		</tag-class>
		<body-content>JSP</body-content>
		<attribute>
			<description>
				The encoding used to convert the tag
				content from a String to byte[]. The
				default is UTF-8.
			</description>
			<name>encoding</name>
		</attribute>
		<attribute>
			<description>
				Whether lines should be wrapped at 64
				characters. The default is false.
			</description>
			<name>wrap</name>
			<type>boolean</type>
		</attribute>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in CSS
		</description>
		<display-name>Encode For CSS</display-name>
		<name>encodeForCSS</name>
		<tag-class>org.owasp.esapi.tags.EncodeForCSSTag</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in HTML
		</description>
		<display-name>Encode For HTML</display-name>
		<name>encodeForHTML</name>
		<tag-class>org.owasp.esapi.tags.EncodeForHTMLTag</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in HTML Attributes
		</description>
		<display-name>Encode For HTML Attribute</display-name>
		<name>encodeForHTMLAttribute</name>
		<tag-class>
			org.owasp.esapi.tags.EncodeForHTMLAttributeTag
		</tag-class>
		<body-content>JSP</body-content>
	</tag>
	
	<tag>
		<description>
			Encode tag's content for usage in JavaScript
		</description>
		<display-name>Encode For JavaScript</display-name>
		<name>encodeForJavaScript</name>
		<tag-class>
			org.owasp.esapi.tags.EncodeForJavaScriptTag
		</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in URLs
		</description>
		<display-name>Encode For URL</display-name>
		<name>encodeForURL</name>
		<tag-class>org.owasp.esapi.tags.EncodeForURLTag</tag-class>
		<body-content>JSP</body-content>
	</tag>
	
	<tag>
		<description>
			Encode tag's content for usage in VBScript
		</description>
		<display-name>Encode For VBScript</display-name>
		<name>encodeForVBScript</name>
		<tag-class>
			org.owasp.esapi.tags.EncodeForVBScriptTag
		</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in XML Attributes
		</description>
		<display-name>Encode For XML Attribute</display-name>
		<name>encodeForXMLAttribute</name>
		<tag-class>
			org.owasp.esapi.tags.EncodeForXMLAttributeTag
		</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in XML
		</description>
		<display-name>Encode For XML</display-name>
		<name>encodeForXML</name>
		<tag-class>org.owasp.esapi.tags.EncodeForXMLTag</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<tag>
		<description>
			Encode tag's content for usage in XPath
		</description>
		<display-name>Encode For XPath</display-name>
		<name>encodeForXPath</name>
		<tag-class>org.owasp.esapi.tags.EncodeForXPathTag</tag-class>
		<body-content>JSP</body-content>
	</tag>

	<function>
		<description>
			Encodes argument in Base64. UTF-8 is used to
			convert the argument from a String to byte[]
			before encoding. Lines are not wrapped.
		</description>
		<display-name>Encode For Base64</display-name>
		<name>encodeForBase64</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForBase64(java.lang.String)
		</function-signature>
	</function>
	
	<function>
		<description>
			Encodes argument in Base64. UTF-8 is used to
			convert the argument from a String to byte[]
			before encoding. Lines are wrapped at 64 characters.
		</description>
		<display-name>
			Encode For Base64 with Line Wrapping
		</display-name>
		<name>encodeForBase64Wrap</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForBase64Wrap(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the second argument in Base64. The first
			argument is used as the character set used to
			convert the argument from a String to byte[]
			before encoding. Lines are not wrapped.
		</description>
		<display-name>
			Encode For Base64 Using Charset
		</display-name>
		<name>encodeForBase64Charset</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForBase64Charset(
				java.lang.String,
				java.lang.String)
		</function-signature>
	</function>
	
	<function>
		<description>
			Encodes the second argument in Base64. The
			first argument is used as the character set
			used to convert the argument from a String to
			byte[] before encoding. Lines are wrapped at
			64 characters.
		</description>
		<display-name>
			Encode For Base64 Using Charset
		</display-name>
		<name>encodeForBase64CharsetWrap</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForBase64CharsetWrap(
				java.lang.String,
				java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in CSS.
		</description>
		<display-name>Encode For Use in CSS</display-name>
		<name>encodeForCSS</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForCSS(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in HTML.
		</description>
		<display-name>Encode For Use in HTML</display-name>
		<name>encodeForHTML</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForHTML(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in HTML Attributes.
		</description>
		<display-name>Encode For Use in HTML Attributes</display-name>
		<name>encodeForHTMLAttribute</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForHTMLAttribute(
				java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in JavaScript.
		</description>
		<display-name>Encode For Use in JavaScript</display-name>
		<name>encodeForJavaScript</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForJavaScript(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in URLs.
		</description>
		<display-name>Encode For Use in URLs</display-name>
		<name>encodeForURL</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForURL(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in VBScript.
		</description>
		<display-name>Encode For Use in VBScript</display-name>
		<name>encodeForVBScript</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForVBScript(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in XML.
		</description>
		<display-name>Encode For Use in XML</display-name>
		<name>encodeForXML</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForXML(java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in XML Attributes.
		</description>
		<display-name>Encode For Use in XML Attributes</display-name>
		<name>encodeForXMLAttribute</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForXMLAttribute(
				java.lang.String)
		</function-signature>
	</function>

	<function>
		<description>
			Encodes the argument for use in XPath.
		</description>
		<display-name>Encode For Use in XPath</display-name>
		<name>encodeForXPath</name>
		<function-class>
			org.owasp.esapi.tags.ELEncodeFunctions
		</function-class>
		<function-signature>
			java.lang.String encodeForXPath(java.lang.String)
		</function-signature>
	</function>
</taglib>