Interface DaveFactory

All Known Subinterfaces:
NettyDaveFactory

public interface DaveFactory
Entry point for creating DAVE sessions, encryptors and decryptors.

Objects created by one factory implementation can only be combined with objects from the same implementation.

  • Method Details

    • maxSupportedProtocolVersion

      int maxSupportedProtocolVersion()
      Returns the maximum protocol version supported by the underlying native library.
      Returns:
      The maximum supported DAVE protocol version.
    • createDecryptor

      Decryptor createDecryptor()
      Creates a new Decryptor instance.
      Returns:
      A new decryptor, which must be closed when no longer needed.
    • createEncryptor

      Encryptor createEncryptor()
      Creates a new Encryptor instance.
      Returns:
      A new encryptor, which must be closed when no longer needed.
    • createSession

      Session createSession(String context, String authSessionId, MLSFailureCallback callback)
      Creates a new DAVE session.
      Parameters:
      context - A string context for the session, often used for logging or identifying the session.
      authSessionId - The authentication session ID associated with the user.
      callback - Callback to handle MLS failures, such as invalid transitions.
      Returns:
      A new session, which must be closed when no longer needed.