@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestInspection extends Object implements Serializable, Cloneable, StructuredPojo
The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
This is part of the AWSManagedRulesATPRuleSet configuration in ManagedRuleGroupConfig.
In these settings, you specify how your application accepts login attempts by providing the request payload type and the names of the fields within the request body where the username and password are provided.
| Constructor and Description |
|---|
RequestInspection() |
| Modifier and Type | Method and Description |
|---|---|
RequestInspection |
clone() |
boolean |
equals(Object obj) |
PasswordField |
getPasswordField()
Details about your login page password field.
|
String |
getPayloadType()
The payload type for your login endpoint, either JSON or form encoded.
|
UsernameField |
getUsernameField()
Details about your login page username field.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPasswordField(PasswordField passwordField)
Details about your login page password field.
|
void |
setPayloadType(String payloadType)
The payload type for your login endpoint, either JSON or form encoded.
|
void |
setUsernameField(UsernameField usernameField)
Details about your login page username field.
|
String |
toString()
Returns a string representation of this object.
|
RequestInspection |
withPasswordField(PasswordField passwordField)
Details about your login page password field.
|
RequestInspection |
withPayloadType(PayloadType payloadType)
The payload type for your login endpoint, either JSON or form encoded.
|
RequestInspection |
withPayloadType(String payloadType)
The payload type for your login endpoint, either JSON or form encoded.
|
RequestInspection |
withUsernameField(UsernameField usernameField)
Details about your login page username field.
|
public void setPayloadType(String payloadType)
The payload type for your login endpoint, either JSON or form encoded.
payloadType - The payload type for your login endpoint, either JSON or form encoded.PayloadTypepublic String getPayloadType()
The payload type for your login endpoint, either JSON or form encoded.
PayloadTypepublic RequestInspection withPayloadType(String payloadType)
The payload type for your login endpoint, either JSON or form encoded.
payloadType - The payload type for your login endpoint, either JSON or form encoded.PayloadTypepublic RequestInspection withPayloadType(PayloadType payloadType)
The payload type for your login endpoint, either JSON or form encoded.
payloadType - The payload type for your login endpoint, either JSON or form encoded.PayloadTypepublic void setUsernameField(UsernameField usernameField)
Details about your login page username field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
usernameField - Details about your login page username field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1,
the username field specification is username1 and the password field specification is
password1.
public UsernameField getUsernameField()
Details about your login page username field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1
, the username field specification is username1 and the password field specification is
password1.
public RequestInspection withUsernameField(UsernameField usernameField)
Details about your login page username field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
usernameField - Details about your login page username field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1,
the username field specification is username1 and the password field specification is
password1.
public void setPasswordField(PasswordField passwordField)
Details about your login page password field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
passwordField - Details about your login page password field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1,
the username field specification is username1 and the password field specification is
password1.
public PasswordField getPasswordField()
Details about your login page password field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1
, the username field specification is username1 and the password field specification is
password1.
public RequestInspection withPasswordField(PasswordField passwordField)
Details about your login page password field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1, the
username field specification is username1 and the password field specification is
password1.
passwordField - Details about your login page password field.
How you specify this depends on the payload type.
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "login": { "username": "THE_USERNAME", "password": "THE_PASSWORD" } }, the username field
specification is /login/username and the password field specification is
/login/password.
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named username1 and password1,
the username field specification is username1 and the password field specification is
password1.
public String toString()
toString in class ObjectObject.toString()public RequestInspection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.