Package org.signal.libsignal.net
Class AuthenticatedChatConnection
-
- All Implemented Interfaces:
-
org.signal.libsignal.internal.NativeHandleGuard.Owner
public class AuthenticatedChatConnection extends ChatConnection
Represents an authenticated communication channel with the ChatConnection.
Created by the factory method connectAuthChat rather than instantiated directly.
Note that a newly-created instance of this class won't be usable for sending messages or receiving events until start is called.
-
-
Method Summary
Modifier and Type Method Description static Pair<AuthenticatedChatConnection, FakeChatRemote>fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener)Test-only method to create a AuthenticatedChatConnectionconnected to a fake remote.static Pair<AuthenticatedChatConnection, FakeChatRemote>fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener, Array<String> alerts)Test-only method to create a AuthenticatedChatConnectionconnected to a fake remote.-
Methods inherited from class org.signal.libsignal.net.ChatConnection
disconnect, send, start -
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.SimpleOwner
unsafeNativeHandleWithoutGuard -
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.Owner
guard, guardedMap, guardedMapChecked, guardedRun, guardedRunChecked -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fakeConnect
static Pair<AuthenticatedChatConnection, FakeChatRemote> fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener)
Test-only method to create a
AuthenticatedChatConnectionconnected to a fake remote.The returned FakeChatRemote can be used to send messages to the connection.
-
fakeConnect
static Pair<AuthenticatedChatConnection, FakeChatRemote> fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener, Array<String> alerts)
Test-only method to create a
AuthenticatedChatConnectionconnected to a fake remote.The returned FakeChatRemote can be used to send messages to the connection.
-
-
-
-