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. final CompletableFuture<RequestResult<Username, LookUpUsernameLinkFailure>>lookUpUsernameLink(UUID uuid, ByteArray entropy)Looks up a username link on the service by UUID. -
-
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.
-
lookUpUsernameLink
final CompletableFuture<RequestResult<Username, LookUpUsernameLinkFailure>> lookUpUsernameLink(UUID uuid, ByteArray entropy)
Looks up a username link on the service by UUID.
Returns a decrypted, validated username, or
nullif the UUID does not correspond to a username link (perhaps the user rotated their link).All exceptions are mapped into RequestResult; unexpected ones will be treated as RequestResult.ApplicationError.
-
-
-
-