java.rmi.transport
Interface SecureConnectionAcceptor


public interface SecureConnectionAcceptor

Defines a transport-neutral interface to objects that listen for incoming connections for secure remote calls. In the case of TCP, a connection acceptor is usually a wrapper around an instance of java.net.ServerSocket.

Since:
1.4

Method Summary
 SecureServerConnection accept()
          Blocks as necessary until a new incoming connection is made, and returns a SecureServerConnection instance representing that connection.
 void close()
          Causes the acceptor to stop listening for new incoming connections.
 SecureClientEndpoint getClientEndpoint()
          Returns a client endpoint that is compatible with this acceptor.
 

Method Detail

getClientEndpoint

public SecureClientEndpoint getClientEndpoint()
Returns a client endpoint that is compatible with this acceptor.

All client endpoint instances returned by repeated calls to this method, and all serialized copies of them, must be equal.

Returns:
a client endpoint that is compatible with this acceptor

accept

public SecureServerConnection accept()
                              throws java.io.IOException
Blocks as necessary until a new incoming connection is made, and returns a SecureServerConnection instance representing that connection.
Returns:
a connection
Throws:
java.io.IOException - if an I/O exception occurs

close

public void close()
           throws java.io.IOException
Causes the acceptor to stop listening for new incoming connections. It has no effect on existing connections that were previously returned from the accept method.
Throws:
java.io.IOException - if an I/O exception occurs


Copyright © 2000 Sun Microsystems, Inc. All rights reserved