| java.lang.Object java.lang.SecurityManager org.netbeans.TopSecurityManager
TopSecurityManager | public class TopSecurityManager extends SecurityManager (Code) | | NetBeans security manager implementation.
author: Ales Novak, Jesse Glick |
TopSecurityManager | public TopSecurityManager()(Code) | | constructs new TopSecurityManager
|
checkConnect | public void checkConnect(String host, int port)(Code) | | Checks connect
|
checkConnectImpl | final void checkConnectImpl(String host, int port)(Code) | | |
checkDelete | public void checkDelete(String file)(Code) | | The method has awful performance in super class
|
checkPropertyAccess | final public void checkPropertyAccess(String x)(Code) | | Performance - all props accessible
|
checkRead | public void checkRead(String file)(Code) | | The method is empty. This is not "secure", but on the other hand,
it reduces performance penalty of startup about 10%
|
checkRead | public void checkRead(FileDescriptor fd)(Code) | | |
checkTopLevelWindow | public boolean checkTopLevelWindow(Object window)(Code) | | |
checkWrite | public void checkWrite(FileDescriptor fd)(Code) | | |
checkWrite | public void checkWrite(String file)(Code) | | The method has awful performance in super class
|
exit | public static void exit(int status)(Code) | | Can be called from core classes to exit the system.
Direct calls to System.exit will not be honored, for safety.
Parameters: status - the status code to exit with See Also: "#20751" |
getClassURL | static URL getClassURL(Class clazz)(Code) | | a protocol through which was the class loaded (file://...) or null |
isSecureClass | static boolean isSecureClass(Class clazz)(Code) | | Checks if the class is loaded through the nbfs URL
|
isSecureProtocol | static boolean isSecureProtocol(String protocol)(Code) | | Boolean.TRUE iff the string is a safe protocol (file, nbfs, ...) |
makeSwingUseSpecialClipboard | public static void makeSwingUseSpecialClipboard(java.awt.datatransfer.Clipboard clip)(Code) | | Convinces Swing components that they should use special clipboard
and not Toolkit.getSystemClipboard.
Parameters: clip - clipboard to use |
register | public static void register(SecurityManager sm) throws SecurityException(Code) | | Register a delegate security manager that can handle some checks for us.
Currently only checkExit and checkTopLevelWindow are supported.
Parameters: sm - the delegate to register throws: SecurityException - without RuntimePermission "TopSecurityManager.register" |
Fields inherited from java.lang.SecurityManager | protected boolean inCheck(Code)(Java Doc)
|
|
|