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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Pair<AuthenticatedChatConnection, FakeChatRemote> fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener) Test-only method to create a AuthenticatedChatConnection connected to a fake remote.
      static Pair<AuthenticatedChatConnection, FakeChatRemote> fakeConnect(TokioAsyncContext tokioAsyncContext, ChatConnectionListener listener, Array<String> alerts) Test-only method to create a AuthenticatedChatConnection connected 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