Package moe.kyokobot.libdave
Class NativeDaveFactory
java.lang.Object
moe.kyokobot.libdave.NativeDaveFactory
- All Implemented Interfaces:
moe.kyokobot.libdave.DaveFactory
- Direct Known Subclasses:
NativeNettyDaveFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmoe.kyokobot.libdave.Decryptormoe.kyokobot.libdave.Encryptormoe.kyokobot.libdave.SessioncreateSession(String context, String authSessionId, moe.kyokobot.libdave.callbacks.MLSFailureCallback callback) static voidLoads the native library and ensures thatNativeDaveFactorycan be used on this platform.intstatic voidsetLogSink(@Nullable moe.kyokobot.libdave.callbacks.DaveLogSink sink) Sets a log sink for native code.
-
Constructor Details
-
NativeDaveFactory
public NativeDaveFactory()
-
-
Method Details
-
ensureAvailable
Loads the native library and ensures thatNativeDaveFactorycan be used on this platform.- Throws:
RuntimeException
-
setLogSink
public static void setLogSink(@Nullable @Nullable moe.kyokobot.libdave.callbacks.DaveLogSink sink) Sets a log sink for native code. This is optional and can be used to receive log messages from the native library.- Parameters:
sink- an instance ofDaveLogSinkto receive log messages, or null to disable logging (default).
-
maxSupportedProtocolVersion
public int maxSupportedProtocolVersion()- Specified by:
maxSupportedProtocolVersionin interfacemoe.kyokobot.libdave.DaveFactory
-
createDecryptor
public moe.kyokobot.libdave.Decryptor createDecryptor()- Specified by:
createDecryptorin interfacemoe.kyokobot.libdave.DaveFactory
-
createEncryptor
public moe.kyokobot.libdave.Encryptor createEncryptor()- Specified by:
createEncryptorin interfacemoe.kyokobot.libdave.DaveFactory
-
createSession
public moe.kyokobot.libdave.Session createSession(String context, String authSessionId, moe.kyokobot.libdave.callbacks.MLSFailureCallback callback) - Specified by:
createSessionin interfacemoe.kyokobot.libdave.DaveFactory
-