Added in API level 35

E2eeSelfKey


class E2eeSelfKey : Parcelable
kotlin.Any
   ↳ android.provider.E2eeContactKeysManager.E2eeSelfKey

A parcelable class encapsulating self end to end encrypted contact key.

Summary

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

String

Gets the app-specified identifier for the account for which the end-to-end encryption key can be used.

String?

Gets the app-specified identifier for the device for which the end-to-end encryption key can be used.

ByteArray?

Gets the raw bytes for the end-to-end encryption key.

String

Gets the owner application package name.

Int

Gets the remote verification state for the end-to-end encryption key, for instance through a key transparency server.

Long

Gets the timestamp at which the end-to-end encryption key was updated.

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<E2eeContactKeysManager.E2eeSelfKey!>

Public methods

describeContents

Added in API level 35
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 35
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getAccountId

Added in API level 35
fun getAccountId(): String

Gets the app-specified identifier for the account for which the end-to-end encryption key can be used. Usually a phone number.

Return
String An app-specified identifier for the account. This value cannot be null.

getDeviceId

Added in API level 35
fun getDeviceId(): String?

Gets the app-specified identifier for the device for which the end-to-end encryption key can be used. Returns null if the app doesn't have the required visibility into the end-to-end encryption key.

Return
String? An app-specified identifier for the device.

getKeyValue

Added in API level 35
fun getKeyValue(): ByteArray?

Gets the raw bytes for the end-to-end encryption key. Returns null if the app doesn't have the required visibility into the end-to-end encryption key.

Return
ByteArray? A copy of the raw bytes for the end-to-end encryption key.

getOwnerPackageName

Added in API level 35
fun getOwnerPackageName(): String

Gets the owner application package name.

Return
String The owner application package name. This value cannot be null.

getRemoteVerificationState

Added in API level 35
fun getRemoteVerificationState(): Int

Gets the remote verification state for the end-to-end encryption key, for instance through a key transparency server.

Return
Int The remote verification state for the end-to-end encryption key. Value is android.provider.E2eeContactKeysManager#VERIFICATION_STATE_UNVERIFIED, android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFICATION_FAILED, or android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFIED

getTimeUpdated

Added in API level 35
fun getTimeUpdated(): Long

Gets the timestamp at which the end-to-end encryption key was updated. Returns -1 if the app doesn't have the required visibility into the key.

Return
Long The timestamp at which the key was updated in the System.currentTimeMillis() base.

hashCode

Added in API level 35
fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 35
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 35
static val CREATOR: Parcelable.Creator<E2eeContactKeysManager.E2eeSelfKey!>