SecurityManager.checkAccept

SecurityManager.checkAccept

Class Overview | Class Members | This Package | All Packages

Syntax
public void checkAccept( String host, int port )
Parameters
host
the host name of the socket connection.
port
the port number of the socket connection.
Description
Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the specified host and port number.

This method is invoked for the current security manager by the accept method of class ServerSocket.

The checkAccept method for class SecurityManager always throws a SecurityException.

Exceptions
SecurityException if the caller does not have permission to accept the connection.
See Also
getSecurityManager, accept