E2eeAccountContactKeyParcelable


public final class E2eeAccountContactKeyParcelable implements Parcelable, E2eeBaseKeyParcelable


代表帳戶金鑰,這是用戶擁有的金鑰,用於與特定應用程式專用帳戶相關聯的端對端加密,可能與零個、一個或多個聯絡人相關聯。

摘要

巢狀型別

E2eeAccountContactKeyParcelable 的建構工具類別。

公用方法

boolean
@NonNull String

傳回帳戶金鑰的 account ID

@NonNull ImmutableList<ContactInfoParcelable>

傳回與金鑰相關聯的 ContactInfoParcelable

@NonNull String

傳回帳戶金鑰的 device ID

@Nullable byte[]

傳回帳戶金鑰的 key bytes

int

傳回金鑰的本機驗證狀態。

@NonNull String

傳回擁有帳戶金鑰的套件名稱。

int

傳回金鑰的遠端驗證狀態。

long

傳回帳戶金鑰的 timestamp of the last update

int
void
writeToParcel(Parcel dest, int flags)

繼承常數

來自 android.os.Parcelable
static final int
static final int
static final int
static final int

繼承方法

來自 android.os.Parcelable
abstract int
int

常數

公開欄位

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 boolean equals(@Nullable Object other)

getAccountId

public @NonNull String getAccountId()

傳回帳戶金鑰的 account ID

getContactInfos

public @NonNull ImmutableList<ContactInfoParcelablegetContactInfos()

傳回與金鑰相關聯的 ContactInfoParcelable

如果金鑰未與任何聯絡人建立關聯,這份清單可能會是空白的。如果金鑰與多個聯絡人相關聯 (例如多個聯絡人共用同一個電話號碼),則可能包含多個項目。

getDeviceId

public @NonNull String getDeviceId()

傳回帳戶金鑰的 device ID

getKeyValue

public @Nullable byte[] getKeyValue()

傳回帳戶金鑰的 key bytes

getLocalVerificationState

public int getLocalVerificationState()

傳回金鑰的本機驗證狀態。

詳情請參閱 com.google.android.gms.contactkeys.constants.VerificationState

getOwnerPackageName

public @NonNull String getOwnerPackageName()

傳回擁有帳戶金鑰的套件名稱。

getRemoteVerificationState

public int getRemoteVerificationState()

傳回金鑰的遠端驗證狀態。

詳情請參閱 com.google.android.gms.contactkeys.constants.VerificationState

getTimeUpdated

public long getTimeUpdated()

傳回帳戶金鑰的 timestamp of the last update

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)