@Generated(value="software.amazon.awssdk:codegen") public final class XssMatchStatement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<XssMatchStatement.Builder,XssMatchStatement>
A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. XSS attacks are those where the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers. The XSS match statement provides the location in requests that you want AWS WAF to search and text transformations to use on the search area before AWS WAF searches for character sequences that are likely to be malicious strings.
| Modifier and Type | Class and Description |
|---|---|
static interface |
XssMatchStatement.Builder |
| Modifier and Type | Method and Description |
|---|---|
static XssMatchStatement.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FieldToMatch |
fieldToMatch()
The part of a web request that you want AWS WAF to inspect.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTextTransformations()
Returns true if the TextTransformations property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends XssMatchStatement.Builder> |
serializableBuilderClass() |
List<TextTransformation> |
textTransformations()
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection.
|
XssMatchStatement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final FieldToMatch fieldToMatch()
The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
public final boolean hasTextTransformations()
public final List<TextTransformation> textTransformations()
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all
transformations on the content of the request component identified by FieldToMatch, starting from
the lowest priority setting, before inspecting the content for a match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTextTransformations() to see if a value was sent in this field.
FieldToMatch, starting from the lowest priority setting, before inspecting the content for a
match.public XssMatchStatement.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<XssMatchStatement.Builder,XssMatchStatement>public static XssMatchStatement.Builder builder()
public static Class<? extends XssMatchStatement.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.