CallVerificationVerdict

public final class CallVerificationVerdict implements Parcelable


Represents the verdict of a call verification performed by the Bank App.

Summary

Nested types

@IntDef(value = [0, 1, 2, 3, 4])
@Retention(value = AnnotationRetention.SOURCE)
public annotation CallVerificationVerdict.VerificationState

Defines the possible integer constants for the verification state.

Constants

static final int

Indicates the call is confirmed to be legitimate by the Bank App.

static final int

Indicates the call is confirmed to be not legitimate by the Bank App.

static final int

Indicates the call verification status is unknown.

static final int

Indicates the Bank App tried to determine the call's legitimacy, but couldn't definitively determine it.

Public constructors

CallVerificationVerdict(
    @CallVerificationVerdict.VerificationState int verificationState,
    String errorMessage
)

Public methods

final int

The state of the verification.

static final @NonNull CallVerificationVerdict

Creates a verdict indicating the Bank App couldn't determine the call's legitimacy.

static final @NonNull CallVerificationVerdict

Creates a verdict indicating the call is legitimate.

static final @NonNull CallVerificationVerdict

Creates a verdict indicating the call is not legitimate.

void
writeToParcel(@NonNull Parcel dest, int flags)

Serializes this object to a Parcel.

Constants

LEGIT_CALL

public static final int LEGIT_CALL = 1

Indicates the call is confirmed to be legitimate by the Bank App.

NOT_LEGIT_CALL

public static final int NOT_LEGIT_CALL = 2

Indicates the call is confirmed to be not legitimate by the Bank App.

UNKNOWN

public static final int UNKNOWN = 0

Indicates the call verification status is unknown.

VERDICT_INCONCLUSIVE

public static final int VERDICT_INCONCLUSIVE = 3

Indicates the Bank App tried to determine the call's legitimacy, but couldn't definitively determine it.

Public fields

Public constructors

CallVerificationVerdict

public CallVerificationVerdict(
    @CallVerificationVerdict.VerificationState int verificationState,
    String errorMessage
)

Public methods

getVerificationState

public final int getVerificationState()

The state of the verification. This indicates whether the call is considered LEGIT_CALL, NOT_LEGIT_CALL, or VERDICT_INCONCLUSIVE if the call authenticity could not be determined. Must be one of the constants defined in the VerificationState.

inconclusive

public static final @NonNull CallVerificationVerdict inconclusive()

Creates a verdict indicating the Bank App couldn't determine the call's legitimacy.

legit

public static final @NonNull CallVerificationVerdict legit()

Creates a verdict indicating the call is legitimate.

notLegit

public static final @NonNull CallVerificationVerdict notLegit()

Creates a verdict indicating the call is not legitimate.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)

Serializes this object to a Parcel.

Parameters
@NonNull Parcel dest

The Parcel in which the object should be written.

int flags

Additional flags about how the object should be written.