org.ssonet.net
Interface SSONETProtocolStream

All Superinterfaces:
IOStream
All Known Implementing Classes:
SSONETProtocolImpl

public interface SSONETProtocolStream
extends IOStream

Interface for the SSONETProtocol.

Version:
$Id: SSONETProtocolStream.java,v 1.4 2004/02/10 16:17:55 tk4 Exp $
Author:
Thomas Kriegelstein

Method Summary
 int getConnectionState()
          Returns the state the connection is in.
 void requestMechanismNegotiation()
          This method can be called by an application to request a new mechanism negotation.
 void requestSecurityGoalNegotiation()
          This method can be called by an application to request a new security goal and a directly following mechanism negotation.
 void setConnectionState(int connectionState)
          Don't call.
 
Methods inherited from interface org.ssonet.io.IOStream
available, closeIn, closeOut, read, write
 

Method Detail

requestSecurityGoalNegotiation

public void requestSecurityGoalNegotiation()
                                    throws java.io.IOException
This method can be called by an application to request a new security goal and a directly following mechanism negotation. negotation. The security goal and mechanism configurations for this negotation must be set into the SSONETContext for this connection prior to the call to this method.

java.io.IOException

requestMechanismNegotiation

public void requestMechanismNegotiation()
                                 throws java.io.IOException
This method can be called by an application to request a new mechanism negotation. The mechanism configuration for this negotation must be set into the SSONETContext for this connection prior to the call to this method.

java.io.IOException

setConnectionState

public void setConnectionState(int connectionState)
Don't call. Sets the connections state to the given value.

Parameters:
connectionState - new state
See Also:
ConnectionListener

getConnectionState

public int getConnectionState()
Returns the state the connection is in.

Returns:
connection's state
See Also:
ConnectionListener


Copyright © 2003 DRIM Team. All Rights Reserved.