Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Captcha |
build() |
Captcha.Builder |
copy(Captcha model) |
Captcha.Builder |
failureMessage(String failureMessage)
The text to show when incorrect CAPTCHA text is entered.
|
Captcha.Builder |
footerText(String footerText)
The text to show in the footer when showing a CAPTCHA challenge.
|
Captcha.Builder |
headerText(String headerText)
The text to show in the header when showing a CAPTCHA challenge.
|
Captcha.Builder |
sessionExpirationInSeconds(Integer sessionExpirationInSeconds)
The amount of time before the CAPTCHA expires, in seconds.
|
Captcha.Builder |
submitLabel(String submitLabel)
The text to show on the label of the CAPTCHA challenge submit button.
|
Captcha.Builder |
title(String title)
The title used when displaying a CAPTCHA challenge.
|
Captcha.Builder |
url(String url)
The unique URL path at which to show the CAPTCHA challenge.
|
public Captcha.Builder url(String url)
The unique URL path at which to show the CAPTCHA challenge.
url
- the value to setpublic Captcha.Builder sessionExpirationInSeconds(Integer sessionExpirationInSeconds)
The amount of time before the CAPTCHA expires, in seconds. If unspecified, defaults to
300
.
sessionExpirationInSeconds
- the value to setpublic Captcha.Builder title(String title)
The title used when displaying a CAPTCHA challenge. If unspecified, defaults to Are you human?
title
- the value to setpublic Captcha.Builder headerText(String headerText)
The text to show in the header when showing a CAPTCHA challenge. If unspecified, defaults to ‘We have detected an increased number of attempts to access this website. To help us keep this site secure, please let us know that you are not a robot by entering the text from the image below.’
headerText
- the value to setpublic Captcha.Builder footerText(String footerText)
The text to show in the footer when showing a CAPTCHA challenge. If unspecified, defaults to ‘Enter the letters and numbers as they are shown in the image above.’
footerText
- the value to setpublic Captcha.Builder failureMessage(String failureMessage)
The text to show when incorrect CAPTCHA text is entered. If unspecified, defaults to
The CAPTCHA was incorrect. Try again.
failureMessage
- the value to setpublic Captcha.Builder submitLabel(String submitLabel)
The text to show on the label of the CAPTCHA challenge submit button. If unspecified,
defaults to Yes, I am human
.
submitLabel
- the value to setpublic Captcha build()
public Captcha.Builder copy(Captcha model)
Copyright © 2016–2024. All rights reserved.