Package moe.kyokobot.libdave.impl
Class NativeSession
java.lang.Object
moe.kyokobot.libdave.impl.DaveNativeHandle
moe.kyokobot.libdave.impl.NativeSession
- All Implemented Interfaces:
AutoCloseable,moe.kyokobot.libdave.Session
-
Field Summary
Fields inherited from class moe.kyokobot.libdave.impl.DaveNativeHandle
closed, handle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@Nullable moe.kyokobot.libdave.KeyRatchetgetKeyRatchet(String userId) byte[]byte[]CompletableFuture<byte[]>getPairwiseFingerprint(int version, String userId) intvoid@NotNull moe.kyokobot.libdave.CommitResultprocessCommit(byte @NotNull [] commit) byte[]processProposals(byte @NotNull [] proposals, @NotNull String[] recognizedUserIds) @Nullable moe.kyokobot.libdave.RosterMapprocessWelcome(byte @NotNull [] welcome, @NotNull String[] recognizedUserIds) voidreset()voidsetExternalSender(byte[] externalSender) voidsetProtocolVersion(int version) Methods inherited from class moe.kyokobot.libdave.impl.DaveNativeHandle
assertOpen, isClosed
-
Constructor Details
-
NativeSession
public NativeSession(long handle)
-
-
Method Details
-
init
- Specified by:
initin interfacemoe.kyokobot.libdave.Session
-
reset
public void reset()- Specified by:
resetin interfacemoe.kyokobot.libdave.Session
-
setProtocolVersion
public void setProtocolVersion(int version) - Specified by:
setProtocolVersionin interfacemoe.kyokobot.libdave.Session
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersionin interfacemoe.kyokobot.libdave.Session
-
getLastEpochAuthenticator
public byte[] getLastEpochAuthenticator()- Specified by:
getLastEpochAuthenticatorin interfacemoe.kyokobot.libdave.Session
-
setExternalSender
public void setExternalSender(byte[] externalSender) - Specified by:
setExternalSenderin interfacemoe.kyokobot.libdave.Session
-
processProposals
public byte[] processProposals(byte @NotNull [] proposals, @NotNull @NotNull String[] recognizedUserIds) - Specified by:
processProposalsin interfacemoe.kyokobot.libdave.Session
-
processCommit
@NotNull public @NotNull moe.kyokobot.libdave.CommitResult processCommit(byte @NotNull [] commit) - Specified by:
processCommitin interfacemoe.kyokobot.libdave.Session
-
processWelcome
@Nullable public @Nullable moe.kyokobot.libdave.RosterMap processWelcome(byte @NotNull [] welcome, @NotNull @NotNull String[] recognizedUserIds) - Specified by:
processWelcomein interfacemoe.kyokobot.libdave.Session
-
getMarshalledKeyPackage
public byte[] getMarshalledKeyPackage()- Specified by:
getMarshalledKeyPackagein interfacemoe.kyokobot.libdave.Session
-
getKeyRatchet
- Specified by:
getKeyRatchetin interfacemoe.kyokobot.libdave.Session
-
getPairwiseFingerprint
- Specified by:
getPairwiseFingerprintin interfacemoe.kyokobot.libdave.Session
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacemoe.kyokobot.libdave.Session- Specified by:
closein classDaveNativeHandle
-