View Javadoc

1   /*
2    * @(#) EventLogHandler.java Nov 24, 2003
3    * 
4    * Copyright (c) 2002-2005 Delft University of Technology Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the Lesser General Public License
9    */
10  package nl.tudelft.simulation.dsol.gui.applets;
11  
12  import java.io.FileDescriptor;
13  import java.security.Permission;
14  
15  /***
16   * A DSOLSecurityManager <br>
17   * (c) copyright 2002-2005 <a href="http://www.simulation.tudelft.nl">Delft
18   * University of Technology </a>, the Netherlands. <br>
19   * See for project information <a
20   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
21   * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
22   * General Public License (LGPL) </a>, no warranty.
23   * 
24   * @version $Revision$ $Date$
25   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja">Peter Jacobs </a>
26   */
27  public class DSOLSecurityManager extends java.lang.SecurityManager
28  {
29  	/***
30  	 * constructs a new DSOLSecurityManager
31  	 */
32  	public DSOLSecurityManager()
33  	{
34  		super();
35  	}
36  
37  	/***
38  	 * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
39  	 */
40  	public void checkPropertyAccess(final String key)
41  	{
42  		// The security manager accepts operation of this kind
43  	}
44  
45  	/***
46  	 * @see java.lang.SecurityManager#checkRead(java.io.FileDescriptor)
47  	 */
48  	public void checkRead(final FileDescriptor fd)
49  	{
50  		// The security manager accepts operation of this kind
51  	}
52  
53  	/***
54  	 * @see java.lang.SecurityManager#checkRead(java.lang.String,
55  	 *      java.lang.Object)
56  	 */
57  	public void checkRead(final String file, final Object context)
58  	{
59  		// The security manager accepts operation of this kind
60  	}
61  
62  	/***
63  	 * @see java.lang.SecurityManager#checkRead(java.lang.String)
64  	 */
65  	public void checkRead(final String file)
66  	{
67  		// The security manager accepts operation of this kind
68  	}
69  
70  	/***
71  	 * @see java.lang.SecurityManager#checkConnect(java.lang.String, int,
72  	 *      java.lang.Object)
73  	 */
74  	public void checkConnect(final String host, final int port,
75  			final Object context)
76  	{
77  		// The security manager accepts operation of this kind
78  	}
79  
80  	/***
81  	 * @see java.lang.SecurityManager#checkConnect(java.lang.String, int)
82  	 */
83  	public void checkConnect(final String host, final int port)
84  	{
85  		// The security manager accepts operation of this kind
86  	}
87  
88  	/***
89  	 * @see java.lang.SecurityManager#checkCreateClassLoader()
90  	 */
91  	public void checkCreateClassLoader()
92  	{
93  		// The security manager accepts operation of this kind
94  	}
95  
96  	/***
97  	 * @see java.lang.SecurityManager#checkAccept(java.lang.String, int)
98  	 */
99  	public void checkAccept(final String host, final int port)
100 	{
101 		// The security manager accepts operation of this kind
102 	}
103 
104 	/***
105 	 * @see java.lang.SecurityManager#checkAccess(java.lang.Thread)
106 	 */
107 	public void checkAccess(final Thread t)
108 	{
109 		// The security manager accepts operation of this kind
110 	}
111 
112 	/***
113 	 * @see java.lang.SecurityManager#checkAccess(java.lang.ThreadGroup)
114 	 */
115 	public void checkAccess(final ThreadGroup g)
116 	{
117 		// The security manager accepts operation of this kind
118 	}
119 
120 	/***
121 	 * @see java.lang.SecurityManager#checkLink(java.lang.String)
122 	 */
123 	public void checkLink(final String lib)
124 	{
125 		// The security manager accepts operation of this kind
126 	}
127 
128 
129 	/***
130 	 * @see java.lang.SecurityManager#checkMemberAccess(java.lang.Class, int)
131 	 */
132 	public void checkMemberAccess(final Class clazz, final int which)
133 	{
134 		// The security manager accepts operation of this kind
135 	}
136 
137 	/***
138 	 * @see java.lang.SecurityManager#checkPackageAccess(java.lang.String)
139 	 */
140 	public void checkPackageAccess(final String pkg)
141 	{
142 		// The security manager accepts operation of this kind
143 	}
144 
145 	/***
146 	 * @see java.lang.SecurityManager#checkPackageDefinition(java.lang.String)
147 	 */
148 	public void checkPackageDefinition(final String pkg)
149 	{
150 		// The security manager accepts operation of this kind
151 	}
152 
153 	/***
154 	 * @see java.lang.SecurityManager#checkPermission(java.security.Permission,
155 	 *      java.lang.Object)
156 	 */
157 	public void checkPermission(final Permission perm, final Object context)
158 	{
159 		// The security manager accepts operation of this kind
160 	}
161 
162 	/***
163 	 * @see java.lang.SecurityManager#checkPermission(java.security.Permission)
164 	 */
165 	public void checkPermission(final Permission perm)
166 	{
167 		// The security manager accepts operation of this kind
168 	}
169 
170 	/***
171 	 * @see java.lang.SecurityManager#checkPropertiesAccess()
172 	 */
173 	public void checkPropertiesAccess()
174 	{
175 		// The security manager accepts operation of this kind
176 	}
177 
178 	/***
179 	 * @see java.lang.SecurityManager#checkSecurityAccess(java.lang.String)
180 	 */
181 	public void checkSecurityAccess(final String target)
182 	{
183 		// The security manager accepts operation of this kind
184 	}
185 }