@FunctionalInterface
public interface DeviceFingerprintComponentExtractor
extends org.springframework.core.Ordered
| Modifier and Type | Method and Description |
|---|---|
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.
|
default int |
getOrder() |
static DeviceFingerprintComponentExtractor |
noOp()
Return a no-op DeviceFingerprintComponent.
|
default int getOrder()
getOrder in interface org.springframework.core.Orderedjava.util.Optional<java.lang.String> extractComponent(java.lang.String principal,
org.springframework.webflow.execution.RequestContext context,
boolean isNew)
principal - 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 devicestatic DeviceFingerprintComponentExtractor noOp()