Enum TokenProperties.InvalidReason (3.79.0)

public enum TokenProperties.InvalidReason extends Enum<TokenProperties.InvalidReason> implements ProtocolMessageEnum

Enum that represents the types of invalid token reasons. Ensure that applications can handle values not explicitly listed.

Protobuf enum google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason

Implements

ProtocolMessageEnum

Static Fields

Name Description
BROWSER_ERROR

A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.

BROWSER_ERROR = 6;

BROWSER_ERROR_VALUE

A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.

BROWSER_ERROR = 6;

DUPE

The user verification had already been seen.

DUPE = 4;

DUPE_VALUE

The user verification had already been seen.

DUPE = 4;

EXPIRED

The user verification token had expired.

EXPIRED = 3;

EXPIRED_VALUE

The user verification token had expired.

EXPIRED = 3;

INVALID_REASON_UNSPECIFIED

Default unspecified type.

INVALID_REASON_UNSPECIFIED = 0;

INVALID_REASON_UNSPECIFIED_VALUE

Default unspecified type.

INVALID_REASON_UNSPECIFIED = 0;

MALFORMED

The provided user verification token was malformed.

MALFORMED = 2;

MALFORMED_VALUE

The provided user verification token was malformed.

MALFORMED = 2;

MISSING

The user verification token was not present.

MISSING = 5;

MISSING_VALUE

The user verification token was not present.

MISSING = 5;

UNEXPECTED_ACTION

The action provided at token generation was different than the expected_action in the assessment request. The comparison is case-insensitive. This reason can only be returned if all of the following are true:

  • your site_key has the POLICY_BASED_CHALLENGE integration type
  • you set an action score threshold higher than 0.0
  • you provided a non-empty expected_action

UNEXPECTED_ACTION = 7;

UNEXPECTED_ACTION_VALUE

The action provided at token generation was different than the expected_action in the assessment request. The comparison is case-insensitive. This reason can only be returned if all of the following are true:

  • your site_key has the POLICY_BASED_CHALLENGE integration type
  • you set an action score threshold higher than 0.0
  • you provided a non-empty expected_action

UNEXPECTED_ACTION = 7;

UNKNOWN_INVALID_REASON

If the failure reason was not accounted for.

UNKNOWN_INVALID_REASON = 1;

UNKNOWN_INVALID_REASON_VALUE

If the failure reason was not accounted for.

UNKNOWN_INVALID_REASON = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()