public class UserContextDataType
extends java.lang.Object
implements java.io.Serializable
Contextual data, such as the user's device fingerprint, IP address, or location, used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
| Constructor and Description |
|---|
UserContextDataType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEncodedData()
Encoded device-fingerprint details that your app collected with the
Amazon Cognito context data collection library.
|
java.lang.String |
getIpAddress()
The source IP address of your user's device.
|
int |
hashCode() |
void |
setEncodedData(java.lang.String encodedData)
Encoded device-fingerprint details that your app collected with the
Amazon Cognito context data collection library.
|
void |
setIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserContextDataType |
withEncodedData(java.lang.String encodedData)
Encoded device-fingerprint details that your app collected with the
Amazon Cognito context data collection library.
|
UserContextDataType |
withIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
|
public java.lang.String getIpAddress()
The source IP address of your user's device.
Constraints:
Length: 0 - 131072
The source IP address of your user's device.
public void setIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
Constraints:
Length: 0 - 131072
ipAddress - The source IP address of your user's device.
public UserContextDataType withIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
ipAddress - The source IP address of your user's device.
public java.lang.String getEncodedData()
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
Constraints:
Length: 0 - 131072
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
public void setEncodedData(java.lang.String encodedData)
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
Constraints:
Length: 0 - 131072
encodedData - Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
public UserContextDataType withEncodedData(java.lang.String encodedData)
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
encodedData - Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object