E2eeAccountContactKeyParcelable


public final class E2eeAccountContactKeyParcelable implements Parcelable, E2eeBaseKeyParcelable


Represents an account key, a client-owned key used for end-to-end encryption tied to a given app-specific account, which may be tied to zero, one or more contacts.

Summary

Nested types

Builder class for E2eeAccountContactKeyParcelable.

Public methods

boolean
@NonNull String

Returns the account ID for the account key.

@NonNull ImmutableList<ContactInfoParcelable>

Returns the ContactInfoParcelables associated with the key.

@NonNull String

Returns the device ID for the account key.

@Nullable byte[]

Returns the key bytes of the account key.

int

Returns the local verification state of the key.

@NonNull String

Returns the name of the package that owns the account key.

int

Returns the remote verification state of the key.

long

Returns the timestamp of the last update for the account key.

int
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int

Constants

Public fields

accountId

public @NonNull String accountId

deviceId

public @NonNull String deviceId

keyValue

public @Nullable byte[] keyValue

localVerificationState

public int localVerificationState

ownerPackageName

public @NonNull String ownerPackageName

remoteVerificationState

public int remoteVerificationState

timeUpdated

public long timeUpdated

Public methods

equals

public boolean equals(@Nullable Object other)

getAccountId

public @NonNull String getAccountId()

Returns the account ID for the account key.

getContactInfos

public @NonNull ImmutableList<ContactInfoParcelablegetContactInfos()

Returns the ContactInfoParcelables associated with the key.

The list may be empty if the key is not associated with any contacts. It may contain multiple entries if the key is associated with multiple contacts (for instance, multiple contacts sharing the same phone number).

getDeviceId

public @NonNull String getDeviceId()

Returns the device ID for the account key.

getKeyValue

public @Nullable byte[] getKeyValue()

Returns the key bytes of the account key.

getLocalVerificationState

public int getLocalVerificationState()

Returns the local verification state of the key.

See com.google.android.gms.contactkeys.constants.VerificationState for more details.

getOwnerPackageName

public @NonNull String getOwnerPackageName()

Returns the name of the package that owns the account key.

getRemoteVerificationState

public int getRemoteVerificationState()

Returns the remote verification state of the key.

See com.google.android.gms.contactkeys.constants.VerificationState for more details.

getTimeUpdated

public long getTimeUpdated()

Returns the timestamp of the last update for the account key.

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)