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 | |
| 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 |
hashCode() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<E2eeContactKeysManager.E2eeSelfKey!> | |
Public methods
describeContents
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
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
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
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
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
fun getOwnerPackageName(): String
Gets the owner application package name.
| Return | |
|---|---|
String |
The owner application package name. This value cannot be null. |
getRemoteVerificationState
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
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. |
writeToParcel
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
static val CREATOR: Parcelable.Creator<E2eeContactKeysManager.E2eeSelfKey!>