Crypto: SessionTagListener for RatchetTagSet

This commit is contained in:
zzz
2019-10-24 14:01:53 +00:00
parent ee46678955
commit 6a47319b66

View File

@ -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);
}