checkAccept(String, int)
- Method in class java.lang.SecurityManager public void checkAccept (String host, int port) 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. This method calls checkPermission with the SocketPermission(host+":"+port,"accept") permission. If you override this method, then you should make a call to super.checkAccept at the point the overridden method would normally throw an exception.Parameters: host - the host name of the socket connection. - the port number of the socket connection.port - the port number of the socket connection.Throws: SecurityException - if the calling thread does not have permission to accept the connection.See Also: ServerSocket.accept() , checkPermission | ||||
Search Dictionary:
