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 SummaryNested Classes Modifier and Type Class Description static classCaptcha.Builder
 - 
Method SummaryAll 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- 
builderpublic static Captcha.Builder builder() Create a new builder.
 - 
toBuilderpublic Captcha.Builder toBuilder() 
 - 
getUrlpublic String getUrl() The unique URL path at which to show the CAPTCHA challenge.- Returns:
- the value
 
 - 
getSessionExpirationInSecondspublic Integer getSessionExpirationInSeconds() The amount of time before the CAPTCHA expires, in seconds.If unspecified, defaults to 300. - Returns:
- the value
 
 - 
getTitlepublic String getTitle() The title used when displaying a CAPTCHA challenge.If unspecified, defaults to Are you human? - Returns:
- the value
 
 - 
getHeaderTextpublic 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
 
 - 
getFooterTextpublic 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
 
 - 
getFailureMessagepublic 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
 
 - 
getSubmitLabelpublic 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
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-