Class Captcha
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waas.model.Captcha
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class Captcha extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe settings of the CAPTCHA challenge.If a specific URL should be accessed only by a human, a CAPTCHA challenge can be placed at the URL to protect the web application from bots.
Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Note: Objects should always be created or deserialized using theCaptcha.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theCaptcha.Builder, which maintain a set of all explicitly set fields calledCaptcha.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaptcha.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Captcha.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetFailureMessage()The text to show when incorrect CAPTCHA text is entered.StringgetFooterText()The text to show in the footer when showing a CAPTCHA challenge.StringgetHeaderText()The text to show in the header when showing a CAPTCHA challenge.IntegergetSessionExpirationInSeconds()The amount of time before the CAPTCHA expires, in seconds.StringgetSubmitLabel()The text to show on the label of the CAPTCHA challenge submit button.StringgetTitle()The title used when displaying a CAPTCHA challenge.StringgetUrl()The unique URL path at which to show the CAPTCHA challenge.inthashCode()Captcha.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
Captcha
@Deprecated @ConstructorProperties({"url","sessionExpirationInSeconds","title","headerText","footerText","failureMessage","submitLabel"}) public Captcha(String url, Integer sessionExpirationInSeconds, String title, String headerText, String footerText, String failureMessage, String submitLabel)
Deprecated.
-
-
Method Detail
-
builder
public static Captcha.Builder builder()
Create a new builder.
-
toBuilder
public Captcha.Builder toBuilder()
-
getUrl
public String getUrl()
The unique URL path at which to show the CAPTCHA challenge.- Returns:
- the value
-
getSessionExpirationInSeconds
public Integer getSessionExpirationInSeconds()
The amount of time before the CAPTCHA expires, in seconds.If unspecified, defaults to 300.
- Returns:
- the value
-
getTitle
public String getTitle()
The title used when displaying a CAPTCHA challenge.If unspecified, defaults to Are you human?
- Returns:
- the value
-
getHeaderText
public String getHeaderText()
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.’
- Returns:
- the value
-
getFooterText
public String getFooterText()
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.’
- Returns:
- the value
-
getFailureMessage
public String getFailureMessage()
The text to show when incorrect CAPTCHA text is entered.If unspecified, defaults to The CAPTCHA was incorrect. Try again.
- Returns:
- the value
-
getSubmitLabel
public String getSubmitLabel()
The text to show on the label of the CAPTCHA challenge submit button.If unspecified, defaults to Yes, I am human.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-