Microsoft SDK for Java

checkListen

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.

Syntax

public synchronized void checkListen(int port);

Parameters

port The local port from which permission to listen is being checked.

Remarks

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.

Exceptions

SecurityException if the security check fails.

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