Skip to content

Commit abb8f3c

Browse files
committed
Added Javadoc and license information
Signed-off-by: Dominik Schadow <dominikschadow@googlemail.com>
1 parent f245445 commit abb8f3c

File tree

7 files changed

+147
-0
lines changed

7 files changed

+147
-0
lines changed

Ch04_OutputEscapingSpring/src/main/java/de/dominikschadow/webappsecurity/controller/ContactController.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity.controller;
219

320
import org.springframework.stereotype.Controller;
@@ -10,6 +27,10 @@
1027

1128
import de.dominikschadow.webappsecurity.domain.Contact;
1229

30+
/**
31+
*
32+
* @author Dominik Schadow
33+
*/
1334
@Controller
1435
@SessionAttributes
1536
public class ContactController {

Ch04_OutputEscapingSpring/src/main/java/de/dominikschadow/webappsecurity/controller/IndexController.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity.controller;
219

320
import org.springframework.stereotype.Controller;
@@ -6,6 +23,10 @@
623

724
import de.dominikschadow.webappsecurity.domain.Contact;
825

26+
/**
27+
*
28+
* @author Dominik Schadow
29+
*/
930
@Controller
1031
public class IndexController {
1132
@RequestMapping("/index")

Ch04_OutputEscapingSpring/src/main/java/de/dominikschadow/webappsecurity/domain/Contact.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity.domain;
219

20+
/**
21+
*
22+
* @author Dominik Schadow
23+
*/
324
public class Contact {
425
private String firstname;
526
private String lastname;

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/Account.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity;
219

20+
/**
21+
*
22+
* @author Dominik Schadow
23+
*/
324
public class Account {
425
private int accountId;
526
private String name;

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/IntegerAccessReferenceMapSample.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity;
219

320
import java.sql.Connection;
@@ -11,6 +28,10 @@
1128
import org.owasp.esapi.errors.AccessControlException;
1229
import org.owasp.esapi.reference.IntegerAccessReferenceMap;
1330

31+
/**
32+
*
33+
* @author Dominik Schadow
34+
*/
1435
public class IntegerAccessReferenceMapSample {
1536
private IntegerAccessReferenceMap accounts = new IntegerAccessReferenceMap();
1637

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/RandomAccessReferenceMapSample.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity;
219

320
import java.sql.Connection;
@@ -11,6 +28,10 @@
1128
import org.owasp.esapi.errors.AccessControlException;
1229
import org.owasp.esapi.reference.RandomAccessReferenceMap;
1330

31+
/**
32+
*
33+
* @author Dominik Schadow
34+
*/
1435
public class RandomAccessReferenceMapSample {
1536
private RandomAccessReferenceMap accounts = new RandomAccessReferenceMap();
1637

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/User.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1+
/*
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package de.dominikschadow.webappsecurity;
219

20+
/**
21+
*
22+
* @author Dominik Schadow
23+
*/
324
public class User {
425
private int accountId;
526
private String name;

0 commit comments

Comments
 (0)