|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.SecurityManager
org.netbeans.TopSecurityManager
public class TopSecurityManager
NetBeans security manager implementation.
| Field Summary |
|---|
| Fields inherited from class java.lang.SecurityManager |
|---|
inCheck |
| Constructor Summary | |
|---|---|
TopSecurityManager()
constructs new TopSecurityManager |
|
| Method Summary | |
|---|---|
void |
checkConnect(String host,
int port)
Checks connect |
void |
checkConnect(String s,
int port,
Object context)
|
void |
checkDelete(String file)
The method has awful performance in super class |
void |
checkExit(int status)
|
void |
checkPermission(Permission perm)
|
void |
checkPermission(Permission perm,
Object context)
|
void |
checkPropertyAccess(String x)
Performance - all props accessible |
void |
checkRead(FileDescriptor fd)
|
void |
checkRead(String file)
The method is empty. |
boolean |
checkTopLevelWindow(Object window)
|
void |
checkWrite(FileDescriptor fd)
|
void |
checkWrite(String file)
The method has awful performance in super class |
static void |
exit(int status)
Can be called from core classes to exit the system. |
static void |
install()
|
static void |
makeSwingUseSpecialClipboard(Clipboard clip)
Convinces Swing components that they should use special clipboard and not Toolkit.getSystemClipboard. |
static void |
register(SecurityManager sm)
Register a delegate security manager that can handle some checks for us. |
static void |
unregister(SecurityManager sm)
Unregister a delegate security manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopSecurityManager()
| Method Detail |
|---|
public static void register(SecurityManager sm)
throws SecurityException
sm - the delegate to register
SecurityException - without RuntimePermission "TopSecurityManager.register"
public static void unregister(SecurityManager sm)
throws SecurityException
sm - the delegate to unregister
SecurityException - without RuntimePermission "TopSecurityManager.unregister"
public void checkExit(int status)
throws SecurityException
checkExit in class SecurityManagerSecurityExceptionpublic static void exit(int status)
status - the status code to exit withpublic boolean checkTopLevelWindow(Object window)
checkTopLevelWindow in class SecurityManagerpublic final void checkPropertyAccess(String x)
checkPropertyAccess in class SecurityManagerpublic void checkRead(String file)
checkRead in class SecurityManagerpublic void checkRead(FileDescriptor fd)
checkRead in class SecurityManagerpublic void checkWrite(FileDescriptor fd)
checkWrite in class SecurityManagerpublic void checkDelete(String file)
checkDelete in class SecurityManagerpublic void checkWrite(String file)
checkWrite in class SecurityManager
public void checkConnect(String host,
int port)
checkConnect in class SecurityManager
public void checkConnect(String s,
int port,
Object context)
checkConnect in class SecurityManagerpublic void checkPermission(Permission perm)
checkPermission in class SecurityManager
public void checkPermission(Permission perm,
Object context)
checkPermission in class SecurityManagerpublic static void install()
public static void makeSwingUseSpecialClipboard(Clipboard clip)
clip - clipboard to use
|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||