RecaptchaAction

public final class RecaptchaAction


Actions (e.g., RecaptchaAction.login) intended to be protected by reCAPTCHA Enterprise. An instance of this object should be passed to RecaptchaClient.execute or RecaptchaTasksClient.executeTask.

If the user action you try to protect from is not listed here, please create a custom RecaptchaAction using RecaptchaAction.custom.

Summary

Public fields

static final @NonNull RecaptchaAction

Indicates that the protected action is a login workflow.

static final @NonNull RecaptchaAction

Indicates that the protected action is a sign-up workflow.

Public methods

static final @NonNull RecaptchaAction
custom(@NonNull String customAction)

A customized user action.

final @NonNull String

Label of protected action.

Public fields

LOGIN

public static final @NonNull RecaptchaAction LOGIN

Indicates that the protected action is a login workflow.

SIGNUP

public static final @NonNull RecaptchaAction SIGNUP

Indicates that the protected action is a sign-up workflow.

Public methods

custom

public static final @NonNull RecaptchaAction custom(@NonNull String customAction)

A customized user action.

getAction

public final @NonNull String getAction()

Label of protected action.