THE PACKAGE JAVA.LANG
java.lang.SecurityManager
20.17
20.17.24
public void checkListen(int port)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if listening to the specified local network
port
is not permitted.
This method is invoked for the current security manager ( 20.18.4) by the
constructor of one argument for class
java.net.DatagramSocket
and by the
constructors for class
java.net.ServerSocket
. (These classes are not docu
mented in this specification. See
The Java Application Programming Interface
.)
The
checkListen
method defined by class
SecurityManager
always throws
a
SecurityException
. A subclass must override this method if listening to a
local network port is to be permitted with a security manager installed.
20.17.25
public void checkAccept(String host, int port)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if accepting a connection from the indicated
port
of the indicated network
host
is not permitted.
This method is invoked for the current security manager ( 20.18.4) by method
accept
of class
java.net.ServerSocket
. (This class is not documented in this
specification. See
The Java Application Programming Interface
.)
The
checkAccept
method defined by class
SecurityManager
always throws
a
SecurityException
. A subclass must override this method if accepting a net
work connection is to be permitted with a security manager installed.
20.17.26
public void checkSetFactory()
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if installing a factory for a socket, server socket, URL, or URL connection is not
permitted.
This method is invoked for the current security manager ( 20.18.4) by:
method
setSocketFactory
of class
java.net.ServerSocket
method
setSocketImplFactory
of class
java.net.Socket
method
setURLStreamHandlerFactory
of class
java.net.URL
method
setContentHandlerFactory
of class
java.net.URLConnection
(These classes are not documented in this specification. See
The Java Application
Programming Interface
.)
577
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved