← Back to packages

Package org.signal.chat.credentials

Service Credentials

Service CredentialsAnonymous

Message CheckSvrCredentialsRequest

Message CheckSvrCredentialsResponse

Message GetCreateCallLinkCredentialRequest

Message GetCreateCallLinkCredentialResponse

Message GetDeliveryCertificateRequest

Message GetDeliveryCertificateResponse

Message GetExternalServiceCredentialsRequest

Message GetExternalServiceCredentialsResponse

Message GetGroupCredentialsRequest

Message GetGroupCredentialsResponse

Enum AuthCheckResult

Enum ExternalServiceType

Services

service Credentials

Provides methods for obtaining and verifying credentials that allow an authenticated user to authenticate in another service or context without revealing their identity.

Generates a pair of delivery certificates that the holder can include to identify themselves to a message recipient (but not the server) in a sealed-sender message.

Generates a set of zero-knowledge credentials for various group-related actions.

service CredentialsAnonymous

Provides methods for working with previously-generated credentials without revealing an association between the credentials and the caller's identity to the server.

Given a list of secure value recovery (SVR) service credentials and a phone number, checks and returns which of the provided credentials were generated by the user with the given phone number and have not yet expired.

Messages

message CheckSvrCredentialsRequest

Field Type Description
1 number string

A phone number in the E164 format to check the passwords against. Only passwords generated for the user associated with the given number will be marked as AUTH_CHECK_RESULT_MATCH.

2 passwords repeated string

A list of credentials from previously made calls to ExternalServiceCredentials.GetExternalServiceCredentials() for EXTERNAL_SERVICE_TYPE_SVR. This list may contain credentials generated by different users. Up to 10 credentials can be checked.

message CheckSvrCredentialsResponse

For each of the credentials tokens in the CheckSvrCredentialsRequest contains the result of the check.

Field Type Description
1 matches map<string, AuthCheckResult>

message GetCreateCallLinkCredentialRequest

Field Type Description
1 credential_request bytes

A zero-knowledge credential request

message GetCreateCallLinkCredentialResponse

Field Type Description
1 credential bytes

A zero-knowledge credential that may be redeemed at or up to one day after the given redemption time

message GetDeliveryCertificateRequest

Field Type Description

message GetDeliveryCertificateResponse

A pair of message delivery certificates. The response unconditionally includes certificates with and without the caller's phone number so the server never learns anything about the caller's intent to share their phone number with their contacts.

Field Type Description
1 certificate_with_e164 bytes

A delivery receipt that includes the caller's phone number; may be empty if the authenticated account does not have a phone number

2 certificate_without_e164 bytes

A delivery receipt that does not include the caller's phone number

message GetExternalServiceCredentialsRequest

Field Type Description
1 externalService org.signal.chat.credentials.ExternalServiceType

A service to request credentials for.

message GetExternalServiceCredentialsResponse

Field Type Description
1 username string

A username that can be presented to authenticate with the external service.

2 password string

A password that can be presented to authenticate with the external service.

message GetGroupCredentialsRequest

Field Type Description
1 redemption_start_seconds uint64

The earliest time for which to issue group credentials; must be aligned to a UTC day boundary and may be no more than one day in the past at the time of the call.

2 redemption_end_seconds uint64

The latest time for which to issue group credentials; must be aligned to a UTC day boundary and no more than seven days in the future at the time of the call.

message GetGroupCredentialsResponse

Field Type Description
1 group_credentials repeated org.signal.chat.common.ZkCredential

A collection of credentials allowing the holder to anonymously authenticate themselves for group-related actions

2 call_link_auth_credentials repeated org.signal.chat.common.ZkCredential

A collection of credentials allowing the holder to read, update, and delete group call links

3 pni bytes

The phone number identifier for which the included credentials were generated. Empty if the account does not have a phone number.

Enums

enum AuthCheckResult

Name Number Description
AUTH_CHECK_RESULT_UNSPECIFIED 0
AUTH_CHECK_RESULT_MATCH 1

The credentials could be used to make a call to SVR service by the user associated with the CheckSvrCredentialsRequest.number phone number.

AUTH_CHECK_RESULT_NO_MATCH 2

The credentials were generated by a different user.

AUTH_CHECK_RESULT_INVALID 3

This status indicates that the corresponding credentials token should no longer be used. This may be because it has expired or invalid, but it can also mean that there is a more recent token in the request which should be used instead.

enum ExternalServiceType

Name Number Description
EXTERNAL_SERVICE_TYPE_UNSPECIFIED 0
EXTERNAL_SERVICE_TYPE_DIRECTORY 1
EXTERNAL_SERVICE_TYPE_PAYMENTS 2
EXTERNAL_SERVICE_TYPE_STORAGE 3
EXTERNAL_SERVICE_TYPE_SVR 4