public class SqlInjectionMatchTuple extends Object implements Serializable, Cloneable
Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.
Constructor and Description |
---|
SqlInjectionMatchTuple() |
Modifier and Type | Method and Description |
---|---|
SqlInjectionMatchTuple |
clone() |
boolean |
equals(Object obj) |
FieldToMatch |
getFieldToMatch() |
String |
getTextTransformation()
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF.
|
int |
hashCode() |
void |
setFieldToMatch(FieldToMatch fieldToMatch) |
void |
setTextTransformation(String textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF.
|
void |
setTextTransformation(TextTransformation textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SqlInjectionMatchTuple |
withFieldToMatch(FieldToMatch fieldToMatch) |
SqlInjectionMatchTuple |
withTextTransformation(String textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF.
|
SqlInjectionMatchTuple |
withTextTransformation(TextTransformation textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF.
|
public void setFieldToMatch(FieldToMatch fieldToMatch)
fieldToMatch
- public FieldToMatch getFieldToMatch()
public SqlInjectionMatchTuple withFieldToMatch(FieldToMatch fieldToMatch)
fieldToMatch
- public void setTextTransformation(String textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If you
specify a transformation, AWS WAF performs the transformation on
FieldToMatch
before inspecting a request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces with one
space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking space,
decimal 160(ampersand)lt;
with a "less than" symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
textTransformation
- Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If
you specify a transformation, AWS WAF performs the transformation
on FieldToMatch
before inspecting a request for a
match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces
with one space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking
space, decimal 160(ampersand)lt;
with a "less than" symbol
(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding
characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
TextTransformation
public String getTextTransformation()
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If you
specify a transformation, AWS WAF performs the transformation on
FieldToMatch
before inspecting a request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces with one
space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking space,
decimal 160(ampersand)lt;
with a "less than" symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
FieldToMatch
before inspecting a
request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces
with one space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the
following operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking
space, decimal 160(ampersand)lt;
with a "less than"
symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding
characters(ampersand)#nnnn;
, with the corresponding characters
LOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
TextTransformation
public SqlInjectionMatchTuple withTextTransformation(String textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If you
specify a transformation, AWS WAF performs the transformation on
FieldToMatch
before inspecting a request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces with one
space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking space,
decimal 160(ampersand)lt;
with a "less than" symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
textTransformation
- Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If
you specify a transformation, AWS WAF performs the transformation
on FieldToMatch
before inspecting a request for a
match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces
with one space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking
space, decimal 160(ampersand)lt;
with a "less than" symbol
(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding
characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
TextTransformation
public void setTextTransformation(TextTransformation textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If you
specify a transformation, AWS WAF performs the transformation on
FieldToMatch
before inspecting a request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces with one
space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking space,
decimal 160(ampersand)lt;
with a "less than" symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
textTransformation
- Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If
you specify a transformation, AWS WAF performs the transformation
on FieldToMatch
before inspecting a request for a
match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces
with one space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking
space, decimal 160(ampersand)lt;
with a "less than" symbol
(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding
characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
TextTransformation
public SqlInjectionMatchTuple withTextTransformation(TextTransformation textTransformation)
Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If you
specify a transformation, AWS WAF performs the transformation on
FieldToMatch
before inspecting a request for a match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces with one
space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking space,
decimal 160(ampersand)lt;
with a "less than" symbol(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
textTransformation
- Text transformations eliminate some of the unusual formatting that
attackers use in web requests in an effort to bypass AWS WAF. If
you specify a transformation, AWS WAF performs the transformation
on FieldToMatch
before inspecting a request for a
match.
CMD_LINE
When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE
Use this option to replace the following characters with a space character (decimal 32):
COMPRESS_WHITE_SPACE
also replaces multiple spaces
with one space.
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded
characters. HTML_ENTITY_DECODE
performs the following
operations:
(ampersand)quot;
with "
(ampersand)nbsp;
with a non-breaking
space, decimal 160(ampersand)lt;
with a "less than" symbol
(ampersand)gt;
with >
(ampersand)#xhhhh;
, with the corresponding
characters(ampersand)#nnnn;
, with the corresponding charactersLOWERCASE
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).
URL_DECODE
Use this option to decode a URL-encoded value.
NONE
Specify NONE
if you don't want to perform any text
transformations.
TextTransformation
public String toString()
toString
in class Object
Object.toString()
public SqlInjectionMatchTuple clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.