public class CookieDeviceFingerprintComponentExtractor extends java.lang.Object implements DeviceFingerprintComponentExtractor
DeviceFingerprintComponentExtractor that sets/retrieves a cookie from the request to track trusted devices.| Constructor and Description |
|---|
CookieDeviceFingerprintComponentExtractor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDeviceFingerPrintCookie(org.springframework.webflow.execution.RequestContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String cookieValue)
Create device finger print cookie.
|
protected java.util.function.Supplier<java.lang.String> |
createDeviceFingerPrintCookieValue()
Create device finger print cookie value supplier.
|
java.util.Optional<java.lang.String> |
extractComponent(java.lang.String principal,
org.springframework.webflow.execution.RequestContext context,
boolean isNew)
Determine a unique browser/device fingerprint component for the provided request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrder, noOppublic CookieDeviceFingerprintComponentExtractor()
public java.util.Optional<java.lang.String> extractComponent(java.lang.String principal,
org.springframework.webflow.execution.RequestContext context,
boolean isNew)
DeviceFingerprintComponentExtractorextractComponent in interface DeviceFingerprintComponentExtractorprincipal - The principal uid we are generating a fingerprint for.context - the request to generate the device fingerprint from.isNew - a boolean indicating if we are currently recording a new trusted deviceprotected void createDeviceFingerPrintCookie(org.springframework.webflow.execution.RequestContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String cookieValue)
context - the contextrequest - the requestcookieValue - the cookie valueprotected java.util.function.Supplier<java.lang.String> createDeviceFingerPrintCookieValue()