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)