FileDocCategorySizeDatePackage
TransportHelperFilterStreamCipher.javaAPI DocAzureus 3.0.3.41975Mon Mar 05 14:57:18 GMT 2007com.aelitis.azureus.core.networkmanager.impl

TransportHelperFilterStreamCipher

public class TransportHelperFilterStreamCipher extends TransportHelperFilterStream

Fields Summary
private TransportCipher
read_cipher
private TransportCipher
write_cipher
Constructors Summary
protected TransportHelperFilterStreamCipher(TransportHelper _transport, TransportCipher _read_cipher, TransportCipher _write_cipher)

		super( _transport );
		
		read_cipher		= _read_cipher;
		write_cipher	= _write_cipher;
	
Methods Summary
protected voidcryptoIn(java.nio.ByteBuffer source_buffer, java.nio.ByteBuffer target_buffer)

		read_cipher.update( source_buffer, target_buffer );
	
protected voidcryptoOut(java.nio.ByteBuffer source_buffer, java.nio.ByteBuffer target_buffer)

		write_cipher.update( source_buffer, target_buffer );
	
public java.lang.StringgetName()

		return( read_cipher.getName() + getHelper().getName());
	
public booleanisEncrypted()

		return( true );