forked from I2P_Developers/i2p.i2p
Crypto: SessionTagListener for RatchetTagSet
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
package net.i2p.router.crypto.ratchet;
|
||||
|
||||
import net.i2p.data.SessionTag;
|
||||
|
||||
/**
|
||||
* Something that looks for SessionTags.
|
||||
*
|
||||
* @since 0.9.44
|
||||
*/
|
||||
interface SessionTagListener {
|
||||
|
||||
/**
|
||||
* Map the tag to this tagset.
|
||||
*
|
||||
* @return true if added, false if dup
|
||||
*/
|
||||
public boolean addTag(RatchetSessionTag tag, RatchetTagSet ts);
|
||||
|
||||
/**
|
||||
* Remove the tag associated with this tagset.
|
||||
*/
|
||||
public void expireTag(RatchetSessionTag tag, RatchetTagSet ts);
|
||||
}
|
Reference in New Issue
Block a user