Class DAVEManager

java.lang.Object
moe.kyokobot.koe.internal.DAVEManager
All Implemented Interfaces:
AutoCloseable

public class DAVEManager extends Object implements AutoCloseable
  • Method Details

    • getMaxDAVEProtocolVersion

      public int getMaxDAVEProtocolVersion()
    • getCurrentProtocolVersion

      public int getCurrentProtocolVersion()
    • getMaxCiphertextByteSize

      public int getMaxCiphertextByteSize(moe.kyokobot.libdave.MediaType mediaType, int frameSize)
    • addUsers

      public void addUsers(Iterable<String> userIds)
    • addUser

      public void addUser(String userId)
    • removeUser

      public void removeUser(String userId)
    • encrypt

      public int encrypt(moe.kyokobot.libdave.MediaType mediaType, int ssrc, io.netty.buffer.ByteBuf output, io.netty.buffer.ByteBuf input, int size)
    • handleSessionDescription

      public void handleSessionDescription(@NotNull JsonObject session, long mlsGroupId)
    • handleSecureFramesPrepareProtocolTransition

      public void handleSecureFramesPrepareProtocolTransition(int transitionId, int newProtocolVersion)
    • handleSecureFramesExecuteTransition

      public void handleSecureFramesExecuteTransition(int transitionId)
    • handleSecureFramesPrepareEpoch

      public void handleSecureFramesPrepareEpoch(String epoch, int protocolVersion)
    • 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

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • setSelfKeyRatchet

      public void setSelfKeyRatchet(moe.kyokobot.libdave.KeyRatchet selfKeyRatchet)