Microsoft SDK for Java

checkAccept

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.

Syntax

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.

Parameters

host The host.
port The port.

Exceptions

SecurityException if the security check fails.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.