|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.HopConfig
public class HopConfig
Defines the general configuration for a hop in a tunnel.
Field Summary | |
---|---|
static int |
REPLY_IV_LENGTH
IV length for getReplyIV() |
Constructor Summary | |
---|---|
HopConfig()
|
Method Summary | |
---|---|
long |
getCreation()
when was this tunnel created (in ms since the epoch)? |
long |
getExpiration()
when does this tunnel expire (in ms since the epoch)? |
SessionKey |
getIVKey()
what key should we use to encrypt the preIV before passing it on? |
SessionKey |
getLayerKey()
what key should we use to encrypt the layer before passing it on? |
java.util.Map |
getOptions()
what are the configuration options for this tunnel (if any). |
long |
getProcessedMessagesCount()
|
Hash |
getReceiveFrom()
what is the previous peer in the tunnel (if any)? |
TunnelId |
getReceiveTunnel()
|
byte[] |
getReceiveTunnelId()
what tunnel ID are we receiving on? |
ByteArray |
getReplyIV()
iv used to encrypt the reply sent for the new tunnel creation crypto |
SessionKey |
getReplyKey()
key to encrypt the reply sent for the new tunnel creation crypto |
Hash |
getSendTo()
what is the next peer in the tunnel (if any)? |
TunnelId |
getSendTunnel()
|
byte[] |
getSendTunnelId()
what is the next tunnel ID we are sending to? |
void |
incrementProcessedMessages()
take note of a message being pumped through this tunnel |
void |
setCreation(long when)
|
void |
setExpiration(long when)
|
void |
setIVKey(SessionKey key)
|
void |
setLayerKey(SessionKey key)
|
void |
setOptions(java.util.Map options)
|
void |
setReceiveFrom(Hash from)
|
void |
setReceiveTunnelId(byte[] id)
|
void |
setReceiveTunnelId(TunnelId id)
|
void |
setReplyIV(ByteArray iv)
|
void |
setReplyKey(SessionKey key)
|
void |
setSendTo(Hash to)
|
void |
setSendTunnelId(byte[] id)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int REPLY_IV_LENGTH
getReplyIV()
Constructor Detail |
---|
public HopConfig()
Method Detail |
---|
public byte[] getReceiveTunnelId()
public TunnelId getReceiveTunnel()
public void setReceiveTunnelId(byte[] id)
public void setReceiveTunnelId(TunnelId id)
public Hash getReceiveFrom()
public void setReceiveFrom(Hash from)
public byte[] getSendTunnelId()
public TunnelId getSendTunnel()
public void setSendTunnelId(byte[] id)
public Hash getSendTo()
public void setSendTo(Hash to)
public SessionKey getLayerKey()
public void setLayerKey(SessionKey key)
public SessionKey getIVKey()
public void setIVKey(SessionKey key)
public SessionKey getReplyKey()
public void setReplyKey(SessionKey key)
public ByteArray getReplyIV()
public void setReplyIV(ByteArray iv)
public long getExpiration()
public void setExpiration(long when)
public long getCreation()
public void setCreation(long when)
public java.util.Map getOptions()
public void setOptions(java.util.Map options)
public void incrementProcessedMessages()
public long getProcessedMessagesCount()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |