public class ContextDataType
extends java.lang.Object
implements java.io.Serializable
Contextual user data type used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
| Constructor and Description |
|---|
ContextDataType() |
| 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.util.List<HttpHeader> |
getHttpHeaders()
HttpHeaders received on your server in same order.
|
java.lang.String |
getIpAddress()
The source IP address of your user's device.
|
java.lang.String |
getServerName()
Your server endpoint where this API is invoked.
|
java.lang.String |
getServerPath()
Your server path where this API is invoked.
|
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 |
setHttpHeaders(java.util.Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
void |
setIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
|
void |
setServerName(java.lang.String serverName)
Your server endpoint where this API is invoked.
|
void |
setServerPath(java.lang.String serverPath)
Your server path where this API is invoked.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ContextDataType |
withEncodedData(java.lang.String encodedData)
Encoded device-fingerprint details that your app collected with the
Amazon Cognito context data collection library.
|
ContextDataType |
withHttpHeaders(java.util.Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
ContextDataType |
withHttpHeaders(HttpHeader... httpHeaders)
HttpHeaders received on your server in same order.
|
ContextDataType |
withIpAddress(java.lang.String ipAddress)
The source IP address of your user's device.
|
ContextDataType |
withServerName(java.lang.String serverName)
Your server endpoint where this API is invoked.
|
ContextDataType |
withServerPath(java.lang.String serverPath)
Your server path where this API is invoked.
|
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 ContextDataType 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 getServerName()
Your server endpoint where this API is invoked.
Constraints:
Length: 0 - 131072
Your server endpoint where this API is invoked.
public void setServerName(java.lang.String serverName)
Your server endpoint where this API is invoked.
Constraints:
Length: 0 - 131072
serverName - Your server endpoint where this API is invoked.
public ContextDataType withServerName(java.lang.String serverName)
Your server endpoint where this API is invoked.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
serverName - Your server endpoint where this API is invoked.
public java.lang.String getServerPath()
Your server path where this API is invoked.
Constraints:
Length: 0 - 131072
Your server path where this API is invoked.
public void setServerPath(java.lang.String serverPath)
Your server path where this API is invoked.
Constraints:
Length: 0 - 131072
serverPath - Your server path where this API is invoked.
public ContextDataType withServerPath(java.lang.String serverPath)
Your server path where this API is invoked.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
serverPath - Your server path where this API is invoked.
public java.util.List<HttpHeader> getHttpHeaders()
HttpHeaders received on your server in same order.
HttpHeaders received on your server in same order.
public void setHttpHeaders(java.util.Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
httpHeaders - HttpHeaders received on your server in same order.
public ContextDataType withHttpHeaders(HttpHeader... httpHeaders)
HttpHeaders received on your server in same order.
Returns a reference to this object so that method calls can be chained together.
httpHeaders - HttpHeaders received on your server in same order.
public ContextDataType withHttpHeaders(java.util.Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
Returns a reference to this object so that method calls can be chained together.
httpHeaders - HttpHeaders received on your server in same order.
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 ContextDataType 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