|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
cancelTimer()
Remove timer for current tag (DEC), if any returns true if was removed false, if it was not found in any case, after calling this method there are no more timers are pending for current tag (DEC) |
void |
debug(java.lang.String s)
Print logging message, for user only |
void |
debugOFF()
Turn debugging of current merged off. |
void |
debugON()
Turn debug option on. |
void |
enableUNL(boolean update)
Disable/Enable UNL updates. |
byte[] |
getByteArray(java.lang.String name)
|
javax.crypto.Cipher |
getCipherDec()
Retrieve (decryption) cipher from the flow state |
javax.crypto.Cipher |
getCipherEnc()
Retrieves (encryption) cipher from the flow state |
javax.crypto.Mac |
getCipherMac()
Retrieve mac cipher from the flow state |
long |
getCurrentTag()
Returns current value of tag |
long |
getDEClimit()
Returns MAX_ACTIVE_DECS as described in the draft Maximum amount of per-flow state kept at a node |
int |
getInt(java.lang.String name)
|
long |
getLong(java.lang.String name)
|
int |
getMyID()
Returns ID to identify current node (currently it is based on the IP address |
byte[] |
getSecretEncKey()
Returns secret key for data encryption/decryption. |
byte[] |
getSecretKey()
Returns secret key material for generating secret keys. |
boolean |
getSecretKeyUpdated()
Returns true, if the secret key has been updated and sets this flag to false. |
byte[] |
getSecretMacKey()
Returns secret key for secure-hash mac. |
long |
getSenderID()
Returns upstream neighbor ID of the current incoming packet. |
long |
getTimer()
Returns absolute number of milliseconds - time at which second part of the packet processing (buildAndFwdIfDone) has been scheduled, or 0 if it has not been scheduled |
UNL |
getUNL()
Returns Upstream Neighbor List |
void |
logUdp(java.lang.String s)
Print the message to the UDP socket. |
boolean |
putByteArray(java.lang.String name,
byte[] value)
|
boolean |
putCipherDec(javax.crypto.Cipher c)
Store decryption cipher in the flow state. |
boolean |
putCipherEnc(javax.crypto.Cipher c)
Allows to store initialized (encryption) cipher in the flow state. |
boolean |
putCipherMac(javax.crypto.Mac m)
Store mac cipher in the flow state. |
boolean |
putInt(java.lang.String name,
int value)
The following 6 method are used to store and retrieve data in the flow state. |
boolean |
putLong(java.lang.String name,
long value)
|
boolean |
setTimer(long time)
This method can only be called from user done() method. |
Method Detail |
public long getTimer()
public boolean setTimer(long time)
public boolean cancelTimer()
public long getDEClimit()
public UNL getUNL() throws java.io.IOException
public void enableUNL(boolean update)
public long getCurrentTag()
public int getMyID()
public boolean putInt(java.lang.String name, int value)
public boolean putLong(java.lang.String name, long value)
public boolean putByteArray(java.lang.String name, byte[] value)
public int getInt(java.lang.String name)
public long getLong(java.lang.String name)
public byte[] getByteArray(java.lang.String name)
public long getSenderID()
public byte[] getSecretKey()
public byte[] getSecretEncKey()
public byte[] getSecretMacKey()
public boolean getSecretKeyUpdated()
public boolean putCipherEnc(javax.crypto.Cipher c)
public javax.crypto.Cipher getCipherEnc()
public boolean putCipherDec(javax.crypto.Cipher c)
public javax.crypto.Cipher getCipherDec()
public boolean putCipherMac(javax.crypto.Mac m)
public javax.crypto.Mac getCipherMac()
public void debugON()
public void debugOFF()
public void debug(java.lang.String s)
public void logUdp(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |