FileDocCategorySizeDatePackage
SessionAuthenticator.javaAPI DocAzureus 3.0.3.43033Thu Feb 09 19:43:18 GMT 2006org.gudy.azureus2.plugins.download.session

SessionAuthenticator

public interface SessionAuthenticator
A session authenticator handles secure torrent session handshaking and data encryption/decryption on behalf of a download.

Fields Summary
Constructors Summary
Methods Summary
public java.util.MapcreateSessionSyn(org.gudy.azureus2.plugins.peers.Peer peer)
Create bencode-able map info for outgoing session syn.

param
peer with session
return
syn info

public org.gudy.azureus2.plugins.utils.PooledByteBufferdecodeSessionData(org.gudy.azureus2.plugins.peers.Peer peer, org.gudy.azureus2.plugins.utils.PooledByteBuffer encoded_data)
Decode the given (possibly encrypted) session data into clean form.

param
peer with session
param
encoded_data to decode
return
decoded form of data
throws
SessionAuthenticatorException on decode error / failure

public org.gudy.azureus2.plugins.utils.PooledByteBufferencodeSessionData(org.gudy.azureus2.plugins.peers.Peer peer, org.gudy.azureus2.plugins.utils.PooledByteBuffer decoded_data)
Encode the given clean session data into (possibly encrypted) encoded form.

param
peer with session
param
decoded_data to encode
return
encoded form of data
throws
SessionAuthenticatorException on encode error / failure

public voidverifySessionAck(org.gudy.azureus2.plugins.peers.Peer peer, java.util.Map ack_info)
Decode and verify the given (bencoded) map of outgoing session ACK information.

param
peer with session
param
ack_info incoming session ack info
throws
SessionAuthenticatorException on verify error / failure

public java.util.MapverifySessionSyn(org.gudy.azureus2.plugins.peers.Peer peer, java.util.Map syn_info)
Decode and verify the given (bencoded) map of incoming session SYN information, and create the session ACK reply.

param
peer with session
param
syn_info incoming session syn info
return
bencode-able map info for session ack reply
throws
SessionAuthenticatorException on verify error / failure