@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class DeviceFingerprintChallenge extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The device fingerprint challenge settings. The device fingerprint challenge generates hashed
signatures of both virtual and real browsers to identify and block malicious bots.
Note: Objects should always be created or deserialized using the DeviceFingerprintChallenge.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 DeviceFingerprintChallenge.Builder
, which maintain a
set of all explicitly set fields called DeviceFingerprintChallenge.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
DeviceFingerprintChallenge.Action
The action to take on requests from detected bots.
|
static class |
DeviceFingerprintChallenge.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DeviceFingerprintChallenge(Boolean isEnabled,
DeviceFingerprintChallenge.Action action,
Integer failureThreshold,
Integer actionExpirationInSeconds,
Integer failureThresholdExpirationInSeconds,
Integer maxAddressCount,
Integer maxAddressCountExpirationInSeconds,
BlockChallengeSettings challengeSettings)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DeviceFingerprintChallenge.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
DeviceFingerprintChallenge.Action |
getAction()
The action to take on requests from detected bots.
|
Integer |
getActionExpirationInSeconds()
The number of seconds between challenges for the same IP address.
|
BlockChallengeSettings |
getChallengeSettings() |
Integer |
getFailureThreshold()
The number of failed requests allowed before taking action.
|
Integer |
getFailureThresholdExpirationInSeconds()
The number of seconds before the failure threshold resets.
|
Boolean |
getIsEnabled()
Enables or disables the device fingerprint challenge Web Application Firewall feature.
|
Integer |
getMaxAddressCount()
The maximum number of IP addresses permitted with the same device fingerprint.
|
Integer |
getMaxAddressCountExpirationInSeconds()
The number of seconds before the maximum addresses count resets.
|
int |
hashCode() |
DeviceFingerprintChallenge.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"isEnabled","action","failureThreshold","actionExpirationInSeconds","failureThresholdExpirationInSeconds","maxAddressCount","maxAddressCountExpirationInSeconds","challengeSettings"}) public DeviceFingerprintChallenge(Boolean isEnabled, DeviceFingerprintChallenge.Action action, Integer failureThreshold, Integer actionExpirationInSeconds, Integer failureThresholdExpirationInSeconds, Integer maxAddressCount, Integer maxAddressCountExpirationInSeconds, BlockChallengeSettings challengeSettings)
public static DeviceFingerprintChallenge.Builder builder()
Create a new builder.
public DeviceFingerprintChallenge.Builder toBuilder()
public Boolean getIsEnabled()
Enables or disables the device fingerprint challenge Web Application Firewall feature.
public DeviceFingerprintChallenge.Action getAction()
The action to take on requests from detected bots. If unspecified, defaults to DETECT
.
public Integer getFailureThreshold()
The number of failed requests allowed before taking action. If unspecified, defaults to
10
.
public Integer getActionExpirationInSeconds()
The number of seconds between challenges for the same IP address. If unspecified, defaults to
60
.
public Integer getFailureThresholdExpirationInSeconds()
The number of seconds before the failure threshold resets. If unspecified, defaults to 60
.
public Integer getMaxAddressCount()
The maximum number of IP addresses permitted with the same device fingerprint. If
unspecified, defaults to 20
.
public Integer getMaxAddressCountExpirationInSeconds()
The number of seconds before the maximum addresses count resets. If unspecified, defaults to
60
.
public BlockChallengeSettings getChallengeSettings()
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.