This method of the StandardSecurityManager Class determines whether classes within the current execution context, based on the call stack of the current thread, can wait for connection requests on the specified local port number.
public synchronized void checkListen(int port);
port | The local port from which permission to listen is being checked. |
The check succeeds only if all the classes found on the call stack possess NetIOPermissions, and if those permissions allow listening for connections on the specified port. This method overrides the java.lang.SecurityManager.checkListen(int) method.
SecurityException if the security check fails.