Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 11495a0

Browse files
matts6matts6
authored andcommitted
insert files
1 parent ffb5bee commit 11495a0

File tree

300 files changed

+8069
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+8069
-0
lines changed

auction_example/LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

auction_example/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auction_example
2+
===============
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+

auction_example/WebContent/WEB-INF/ESAPI.properties

Lines changed: 452 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0"?>
2+
3+
<facelet-taglib version="2.0">
4+
<namespace>http://esapi.com/validation</namespace>
5+
6+
<tag>
7+
<tag-name>xssEncoded</tag-name>
8+
<component>
9+
<component-type>xssEncodedComponent</component-type>
10+
</component>
11+
</tag>
12+
13+
<tag>
14+
<tag-name>xssValidation</tag-name>
15+
<component>
16+
<component-type>xssValidationComponent</component-type>
17+
</component>
18+
</tag>
19+
20+
<tag>
21+
<tag-name>validation</tag-name>
22+
<component>
23+
<component-type>csapiValidationComponent</component-type>
24+
</component>
25+
</tag>
26+
27+
<tag>
28+
<tag-name>owaspCsrfToken</tag-name>
29+
<component>
30+
<component-type>owaspCsrfTokenComponent</component-type>
31+
</component>
32+
</tag>
33+
34+
<tag>
35+
<tag-name>validation</tag-name>
36+
<validator>
37+
<validator-id>esapiValidator</validator-id>
38+
</validator>
39+
40+
<attribute>
41+
<description>name of validation</description>
42+
<name>name</name>
43+
<required>true</required>
44+
<type>java.lang.String</type>
45+
</attribute>
46+
47+
<attribute>
48+
<description>format attribute will use for the date validation</description>
49+
<name>format</name>
50+
<required>false</required>
51+
<type>java.lang.String</type>
52+
</attribute>
53+
54+
<attribute>
55+
<description>encoding attribute is used for file conding </description>
56+
<name>encoding</name>
57+
<required>false</required>
58+
<type>java.lang.String</type>
59+
</attribute>
60+
</tag>
61+
62+
<tag>
63+
<tag-name>authorization</tag-name>
64+
<component>
65+
<component-type>esapiAuthorization</component-type>
66+
</component>
67+
<attribute>
68+
<description>Enter User Role</description>
69+
<name>role</name>
70+
<required>true</required>
71+
<type>java.lang.String</type>
72+
</attribute>
73+
</tag>
74+
75+
</facelet-taglib>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0"?>
2+
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5+
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
6+
version="2.0">
7+
8+
<render-kit>
9+
<render-kit-id>HTML_BASIC</render-kit-id>
10+
<render-kit-class>ch.security4web.esapi.renderkit.EsapiHtmlRenderKitImpl</render-kit-class>
11+
12+
<!--
13+
<renderer>
14+
<component-family>javax.faces.Input</component-family>
15+
<renderer-type>javax.faces.Text</renderer-type>
16+
<renderer-class>esapi.unifreiburg.renderkit.EsapiTextRenderer</renderer-class>
17+
</renderer>
18+
19+
<renderer>
20+
<component-family>javax.faces.OutcomeTarget</component-family>
21+
<renderer-type>javax.faces.Link</renderer-type>
22+
<renderer-class>esapi.unifreiburg.renderkit.EsapiOutputLinkRenderer</renderer-class>
23+
</renderer>
24+
-->
25+
</render-kit>
26+
27+
<!--
28+
<application>
29+
<system-event-listener>
30+
<system-event-listener-class>esapi.unifreiburg.xss.PreRenderViewListener</system-event-listener-class>
31+
<system-event-class>javax.faces.event.PreRenderViewEvent</system-event-class>
32+
</system-event-listener>
33+
</application>
34+
-->
35+
36+
<!--
37+
<navigation-rule>
38+
<from-view-id>/page1.xhtml</from-view-id>
39+
<navigation-case>
40+
<from-outcome>redirectOutcome</from-outcome>
41+
<to-view-id>/page2.xhtml</to-view-id>
42+
<redirect>
43+
<view-param>
44+
<name>entryName</name>
45+
<value>#{someBean.value}</value>
46+
</view-param>
47+
</redirect>
48+
</navigation-case>
49+
</navigation-rule>
50+
-->
51+
52+
</faces-config>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)