Class DeviceFingerprintChallenge
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waas.model.DeviceFingerprintChallenge
-
@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 theDeviceFingerprintChallenge.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 theDeviceFingerprintChallenge.Builder
, which maintain a set of all explicitly set fields calledDeviceFingerprintChallenge.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 class
DeviceFingerprintChallenge.Action
The action to take on requests from detected bots.static class
DeviceFingerprintChallenge.Builder
-
Constructor Summary
Constructors Constructor Description DeviceFingerprintChallenge(Boolean isEnabled, DeviceFingerprintChallenge.Action action, Integer failureThreshold, Integer actionExpirationInSeconds, Integer failureThresholdExpirationInSeconds, Integer maxAddressCount, Integer maxAddressCountExpirationInSeconds, BlockChallengeSettings challengeSettings)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
DeviceFingerprintChallenge
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static DeviceFingerprintChallenge.Builder builder()
Create a new builder.
-
toBuilder
public DeviceFingerprintChallenge.Builder toBuilder()
-
getIsEnabled
public Boolean getIsEnabled()
Enables or disables the device fingerprint challenge Web Application Firewall feature.- Returns:
- the value
-
getAction
public DeviceFingerprintChallenge.Action getAction()
The action to take on requests from detected bots.If unspecified, defaults to DETECT.
- Returns:
- the value
-
getFailureThreshold
public Integer getFailureThreshold()
The number of failed requests allowed 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
-
getMaxAddressCount
public Integer getMaxAddressCount()
The maximum number of IP addresses permitted with the same device fingerprint.If unspecified, defaults to 20.
- Returns:
- the value
-
getMaxAddressCountExpirationInSeconds
public Integer getMaxAddressCountExpirationInSeconds()
The number of seconds before the maximum addresses count resets.If unspecified, defaults to 60.
- Returns:
- the value
-
getChallengeSettings
public BlockChallengeSettings getChallengeSettings()
-
toString
public String toString()
- Overrides:
toString
in 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:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-