This method of the StandardSecurityManager Class determines whether classes within the current execution context, based on the call stack of the current thread, can accept a socket connection from the specified host and port.
public synchronized void checkAccept(String host, int port);
The check succeeds only if all the classes found on the call stack possess NetIOPermissions, and if those permissions allow the specified host and port for connections. This method overrides the java.lang.SecurityManager.checkAccept(String,int) method.
host | The host. |
port | The port. |
SecurityException if the security check fails.