VerificationState


public enum VerificationState extends Enum


Verification state of a contact key.

The state parameter is the integer that will be used for the Contact Keys client IPCs that update the verification state of a key.

Summary

Nested types

public static class VerificationState.Companion

Enum Values

UNVERIFIED

Unverified state of a contact end to end encrypted key.

VERIFICATION_FAILED

Failed verification state of a contact end to end encrypted key.

VERIFIED

Verified state of a contact end to end encrypted key.

Public methods

final @NonNull EnumEntries<@NonNull VerificationState>

Verification state of a contact key.

final int
final @NonNull VerificationState

Returns the enum constant of this type with the specified name.

final @NonNull VerificationState[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

UNVERIFIED

VerificationState VerificationState.UNVERIFIED

Unverified state of a contact end to end encrypted key.

This is the default state for newly-inserted keys and does not represent an error state.

VERIFICATION_FAILED

VerificationState VerificationState.VERIFICATION_FAILED

Failed verification state of a contact end to end encrypted key.

For local verifications, a verification fails when a QR code is scanned, and that QR code includes the corresponding ownerPackageName and accountId but none of the keys for this ownerPackageName and accountId have the corresponding deviceId and keyValue.

VERIFIED

VerificationState VerificationState.VERIFIED

Verified state of a contact end to end encrypted key.

For local verifications, a key is verified when the most recent scanned QR code that included the key's ownerPackageName and accountId also included the key's deviceId and keyValue.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull VerificationStategetEntries()

Verification state of a contact key.

The state parameter is the integer that will be used for the Contact Keys client IPCs that update the verification state of a key.

getState

public final int getState()

valueOf

public final @NonNull VerificationState valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull VerificationState[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.