System.setSecurityManager

System.setSecurityManager

Class Overview | Class Members | This Package | All Packages

Syntax
public static void setSecurityManager( SecurityManager s )
Parameters
s
the security manager.
Description
Sets the System security. If a security manager has already been established for the currently running Java application, a SecurityException is thrown. Otherwise, the argument is established as the current security manager. If the argument is null and no security manager has been established, then no action is taken and the method simply returns.

Exceptions
SecurityException if the security manager has already been set.