Package org.signal.libsignal.net
Class UnauthUsernamesService
-
- All Implemented Interfaces:
public final class UnauthUsernamesService
-
-
Constructor Summary
Constructors Constructor Description UnauthUsernamesService(UnauthenticatedChatConnection connection)
-
Method Summary
Modifier and Type Method Description final CompletableFuture<RequestResult<ServiceId.Aci, Void>>lookUpUsernameHash(ByteArray hash)Looks up a username hash on the service, like that computed by org.signal.libsignal.usernames.Username. -
-
Constructor Detail
-
UnauthUsernamesService
UnauthUsernamesService(UnauthenticatedChatConnection connection)
-
-
Method Detail
-
lookUpUsernameHash
final CompletableFuture<RequestResult<ServiceId.Aci, Void>> lookUpUsernameHash(ByteArray hash)
Looks up a username hash on the service, like that computed by org.signal.libsignal.usernames.Username.
Produces the corresponding account's ACI, or
nullif the username doesn't correspond to an account.All exceptions are mapped into RequestResult; unexpected ones will be treated as RequestResult.ApplicationError.
-
-
-
-