Secure iNet Factory

com.jscape.inet.ssh.transport
Class MessageStream

java.lang.Object
  extended by com.jscape.inet.ssh.transport.MessageStream
Direct Known Subclasses:
MessageReader, MessageWriter

public abstract class MessageStream
extends java.lang.Object

Version:
1.0
Author:
Alex Usun

Constructor Summary
MessageStream()
           
 
Method Summary
 long getBytesCount()
          Returns transferred bytes count.
 void setCipher(javax.crypto.Cipher cipher)
          Setups the current stream cipher.
 void setCompression(Compression compression)
          Setups the current stream compression.
 void setMac(javax.crypto.Mac mac)
          Setups the current stream MAC.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageStream

public MessageStream()
Method Detail

getBytesCount

public long getBytesCount()
Returns transferred bytes count.

Returns:
the transferred bytes count

setCompression

public void setCompression(Compression compression)
Setups the current stream compression.

Parameters:
compression - the current stream compressor

setCipher

public void setCipher(javax.crypto.Cipher cipher)
Setups the current stream cipher.

Parameters:
cipher - the current stream cipher

setMac

public void setMac(javax.crypto.Mac mac)
Setups the current stream MAC.

Parameters:
mac - the current stream MAC

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved