Package moe.kyokobot.libdave
Interface DaveFactory
- All Known Subinterfaces:
NettyDaveFactory
public interface DaveFactory
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new Decryptor instance.Creates a new Encryptor instance.createSession(String context, String authSessionId, MLSFailureCallback callback) Creates a new DAVE session.intReturns the maximum protocol version supported by the underlying native library.
-
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. -
createEncryptor
Encryptor createEncryptor()Creates a new Encryptor instance. -
createSession
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.
-