FileDocCategorySizeDatePackage
TorrentSessionAuthenticator.javaAPI DocAzureus 3.0.3.43003Thu Feb 09 19:42:52 GMT 2006com.aelitis.azureus.core.peermanager.download.session

TorrentSessionAuthenticator

public interface TorrentSessionAuthenticator

Fields Summary
Constructors Summary
Methods Summary
public java.util.MapcreateSessionSyn(com.aelitis.azureus.core.peermanager.connection.AZPeerConnection connection)
Create bencode-able map info for outgoing session syn.

param
connection with session
return
syn info

public org.gudy.azureus2.core3.util.DirectByteBufferdecodeSessionData(com.aelitis.azureus.core.peermanager.connection.AZPeerConnection connection, org.gudy.azureus2.core3.util.DirectByteBuffer encoded_data)
Decode the given (possibly encrypted) session data into clean form.

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

public org.gudy.azureus2.core3.util.DirectByteBufferencodeSessionData(com.aelitis.azureus.core.peermanager.connection.AZPeerConnection connection, org.gudy.azureus2.core3.util.DirectByteBuffer decoded_data)
Encode the given clean session data into (possibly encrypted) encoded form.

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

public voidverifySessionAck(com.aelitis.azureus.core.peermanager.connection.AZPeerConnection connection, java.util.Map ack_info)
Decode and verify the given (bencoded) map of outgoing session ACK information.

param
connection with session
param
ack_info incoming session ack info
throws
AuthenticatorException on verify error / failure

public java.util.MapverifySessionSyn(com.aelitis.azureus.core.peermanager.connection.AZPeerConnection connection, java.util.Map syn_info)
Decode and verify the given (bencoded) map of incoming session SYN information, and create the session ACK reply.

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