public class ContextDataType extends Object implements 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(Object obj) |
String |
getEncodedData()
Encoded data containing device fingerprinting details, collected using
the Amazon Cognito context data collection library.
|
List<HttpHeader> |
getHttpHeaders()
HttpHeaders received on your server in same order.
|
String |
getIpAddress()
Source IP address of your user.
|
String |
getServerName()
Your server endpoint where this API is invoked.
|
String |
getServerPath()
Your server path where this API is invoked.
|
int |
hashCode() |
void |
setEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using
the Amazon Cognito context data collection library.
|
void |
setHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
void |
setIpAddress(String ipAddress)
Source IP address of your user.
|
void |
setServerName(String serverName)
Your server endpoint where this API is invoked.
|
void |
setServerPath(String serverPath)
Your server path where this API is invoked.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ContextDataType |
withEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using
the Amazon Cognito context data collection library.
|
ContextDataType |
withHttpHeaders(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(String ipAddress)
Source IP address of your user.
|
ContextDataType |
withServerName(String serverName)
Your server endpoint where this API is invoked.
|
ContextDataType |
withServerPath(String serverPath)
Your server path where this API is invoked.
|
public String getIpAddress()
Source IP address of your user.
Source IP address of your user.
public void setIpAddress(String ipAddress)
Source IP address of your user.
ipAddress - Source IP address of your user.
public ContextDataType withIpAddress(String ipAddress)
Source IP address of your user.
Returns a reference to this object so that method calls can be chained together.
ipAddress - Source IP address of your user.
public String getServerName()
Your server endpoint where this API is invoked.
Your server endpoint where this API is invoked.
public void setServerName(String serverName)
Your server endpoint where this API is invoked.
serverName - Your server endpoint where this API is invoked.
public ContextDataType withServerName(String serverName)
Your server endpoint where this API is invoked.
Returns a reference to this object so that method calls can be chained together.
serverName - Your server endpoint where this API is invoked.
public String getServerPath()
Your server path where this API is invoked.
Your server path where this API is invoked.
public void setServerPath(String serverPath)
Your server path where this API is invoked.
serverPath - Your server path where this API is invoked.
public ContextDataType withServerPath(String serverPath)
Your server path where this API is invoked.
Returns a reference to this object so that method calls can be chained together.
serverPath - Your server path where this API is invoked.
public List<HttpHeader> getHttpHeaders()
HttpHeaders received on your server in same order.
HttpHeaders received on your server in same order.
public void setHttpHeaders(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(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 String getEncodedData()
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
public void setEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
encodedData - Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
public ContextDataType withEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
Returns a reference to this object so that method calls can be chained together.
encodedData - Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.