public SecurityManager ()

Constructs a new SecurityManager.

If there is a security manager already installed, this method first calls the security manager's checkPermission method with the RuntimePermission("createSecurityManager") permission to ensure the calling thread has permission to create a new security manager. This may result in throwing a SecurityException.

Exceptions:
java.lang.SecurityException    if a security manager already exists and its checkPermission method doesn't allow creation of a new security manager.

See also:
java.lang.System.getSecurityManager(), checkPermission, java.lang.RuntimePermission