Class HumanInteractionChallenge
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waas.model.HumanInteractionChallenge
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class HumanInteractionChallenge extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe human interaction challenge settings.The human interaction challenge checks various event listeners in the user’s browser to determine if there is a human user making a request.
Note: Objects should always be created or deserialized using theHumanInteractionChallenge.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 theHumanInteractionChallenge.Builder, which maintain a set of all explicitly set fields calledHumanInteractionChallenge.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 classHumanInteractionChallenge.ActionThe action to take against requests from detected bots.static classHumanInteractionChallenge.Builder
-
Constructor Summary
Constructors Constructor Description HumanInteractionChallenge(Boolean isEnabled, HumanInteractionChallenge.Action action, Integer failureThreshold, Integer actionExpirationInSeconds, Integer failureThresholdExpirationInSeconds, Integer interactionThreshold, Integer recordingPeriodInSeconds, Header setHttpHeader, BlockChallengeSettings challengeSettings, Boolean isNatEnabled)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HumanInteractionChallenge.Builderbuilder()Create a new builder.booleanequals(Object o)HumanInteractionChallenge.ActiongetAction()The action to take against requests from detected bots.IntegergetActionExpirationInSeconds()The number of seconds between challenges for the same IP address.BlockChallengeSettingsgetChallengeSettings()IntegergetFailureThreshold()The number of failed requests before taking action.IntegergetFailureThresholdExpirationInSeconds()The number of seconds before the failure threshold resets.IntegergetInteractionThreshold()The number of interactions required to pass the challenge.BooleangetIsEnabled()Enables or disables the human interaction challenge Web Application Firewall feature.BooleangetIsNatEnabled()When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses.IntegergetRecordingPeriodInSeconds()The number of seconds to record the interactions from the user.HeadergetSetHttpHeader()Adds an additional HTTP header to requests that fail the challenge before being passed to the origin.inthashCode()HumanInteractionChallenge.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
HumanInteractionChallenge
@Deprecated @ConstructorProperties({"isEnabled","action","failureThreshold","actionExpirationInSeconds","failureThresholdExpirationInSeconds","interactionThreshold","recordingPeriodInSeconds","setHttpHeader","challengeSettings","isNatEnabled"}) public HumanInteractionChallenge(Boolean isEnabled, HumanInteractionChallenge.Action action, Integer failureThreshold, Integer actionExpirationInSeconds, Integer failureThresholdExpirationInSeconds, Integer interactionThreshold, Integer recordingPeriodInSeconds, Header setHttpHeader, BlockChallengeSettings challengeSettings, Boolean isNatEnabled)
Deprecated.
-
-
Method Detail
-
builder
public static HumanInteractionChallenge.Builder builder()
Create a new builder.
-
toBuilder
public HumanInteractionChallenge.Builder toBuilder()
-
getIsEnabled
public Boolean getIsEnabled()
Enables or disables the human interaction challenge Web Application Firewall feature.- Returns:
- the value
-
getAction
public HumanInteractionChallenge.Action getAction()
The action to take against requests from detected bots.If unspecified, defaults to DETECT.
- Returns:
- the value
-
getFailureThreshold
public Integer getFailureThreshold()
The number of failed requests before taking action.If unspecified, defaults to 10.
- Returns:
- the value
-
getActionExpirationInSeconds
public Integer getActionExpirationInSeconds()
The number of seconds between challenges for the same IP address.If unspecified, defaults to 60.
- Returns:
- the value
-
getFailureThresholdExpirationInSeconds
public Integer getFailureThresholdExpirationInSeconds()
The number of seconds before the failure threshold resets.If unspecified, defaults to 60.
- Returns:
- the value
-
getInteractionThreshold
public Integer getInteractionThreshold()
The number of interactions required to pass the challenge.If unspecified, defaults to 3.
- Returns:
- the value
-
getRecordingPeriodInSeconds
public Integer getRecordingPeriodInSeconds()
The number of seconds to record the interactions from the user.If unspecified, defaults to 15.
- Returns:
- the value
-
getSetHttpHeader
public Header getSetHttpHeader()
Adds an additional HTTP header to requests that fail the challenge before being passed to the origin.Only applicable when the action is set to DETECT.
- Returns:
- the value
-
getChallengeSettings
public BlockChallengeSettings getChallengeSettings()
-
getIsNatEnabled
public Boolean getIsNatEnabled()
When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses.- 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
-
-