Package moe.kyokobot.koe.internal
Class DAVEManager
java.lang.Object
moe.kyokobot.koe.internal.DAVEManager
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()intencrypt(moe.kyokobot.libdave.MediaType mediaType, int ssrc, io.netty.buffer.ByteBuf output, io.netty.buffer.ByteBuf input, int size) intgetMaxCiphertextByteSize(moe.kyokobot.libdave.MediaType mediaType, int frameSize) intvoidhandleMLSExternalSender(byte[] payload) voidhandleMLSPrepareCommitTransition(int transitionId, byte[] commit) voidhandleMLSProposals(byte[] payload) voidhandleMLSWelcome(int transitionId, byte[] welcome) voidhandleSecureFramesExecuteTransition(int transitionId) voidhandleSecureFramesPrepareEpoch(String epoch, int protocolVersion) voidhandleSecureFramesPrepareProtocolTransition(int transitionId, int newProtocolVersion) voidhandleSessionDescription(JsonObject session, long mlsGroupId) voidremoveUser(String userId) voidsetSelfKeyRatchet(moe.kyokobot.libdave.KeyRatchet selfKeyRatchet)
-
Method Details
-
getMaxDAVEProtocolVersion
public int getMaxDAVEProtocolVersion() -
getMaxCiphertextByteSize
public int getMaxCiphertextByteSize(moe.kyokobot.libdave.MediaType mediaType, int frameSize) -
addUsers
-
addUser
-
removeUser
-
encrypt
public int encrypt(moe.kyokobot.libdave.MediaType mediaType, int ssrc, io.netty.buffer.ByteBuf output, io.netty.buffer.ByteBuf input, int size) -
handleSessionDescription
-
handleSecureFramesPrepareProtocolTransition
public void handleSecureFramesPrepareProtocolTransition(int transitionId, int newProtocolVersion) -
handleSecureFramesExecuteTransition
public void handleSecureFramesExecuteTransition(int transitionId) -
handleSecureFramesPrepareEpoch
-
handleMLSExternalSender
public void handleMLSExternalSender(byte[] payload) -
handleMLSProposals
public void handleMLSProposals(byte[] payload) -
handleMLSPrepareCommitTransition
public void handleMLSPrepareCommitTransition(int transitionId, byte[] commit) -
handleMLSWelcome
public void handleMLSWelcome(int transitionId, byte[] welcome) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
setSelfKeyRatchet
public void setSelfKeyRatchet(moe.kyokobot.libdave.KeyRatchet selfKeyRatchet)
-