@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class JsChallenge extends Object
The JavaScript challenge settings. Javascript Challenge is the function to filter abnormal or malicious bots and allow access to real clients.
Note: Objects should always be created or deserialized using the JsChallenge.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 the JsChallenge.Builder
, which maintain a set of all explicitly set fields called __explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take __explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
JsChallenge.Action
The action to take against requests from detected bots.
|
static class |
JsChallenge.Builder |
Constructor and Description |
---|
JsChallenge(Boolean isEnabled,
JsChallenge.Action action,
Integer failureThreshold,
Integer actionExpirationInSeconds,
Header setHttpHeader,
BlockChallengeSettings challengeSettings)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JsChallenge.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
JsChallenge.Action |
getAction()
The action to take against requests from detected bots.
|
Integer |
getActionExpirationInSeconds()
The number of seconds between challenges from the same IP address.
|
BlockChallengeSettings |
getChallengeSettings() |
Integer |
getFailureThreshold()
The number of failed requests before taking action.
|
Boolean |
getIsEnabled()
Enables or disables the JavaScript challenge Web Application Firewall feature.
|
Header |
getSetHttpHeader()
Adds an additional HTTP header to requests that fail the challenge before being passed to the origin.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"isEnabled","action","failureThreshold","actionExpirationInSeconds","setHttpHeader","challengeSettings"}) @Deprecated public JsChallenge(Boolean isEnabled, JsChallenge.Action action, Integer failureThreshold, Integer actionExpirationInSeconds, Header setHttpHeader, BlockChallengeSettings challengeSettings)
public static JsChallenge.Builder builder()
Create a new builder.
public Boolean getIsEnabled()
Enables or disables the JavaScript challenge Web Application Firewall feature.
public JsChallenge.Action getAction()
The action to take against requests from detected bots. If unspecified, defaults to DETECT
.
public Integer getFailureThreshold()
The number of failed requests before taking action. If unspecified, defaults to 10
.
public Integer getActionExpirationInSeconds()
The number of seconds between challenges from the same IP address. If unspecified, defaults to 60
.
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
.
public BlockChallengeSettings getChallengeSettings()
Copyright © 2016–2019. All rights reserved.