public class PXContext extends Object
Created by shikloshi on 03/07/2016.
Constructor and Description |
---|
PXContext(javax.servlet.http.HttpServletRequest request,
IPProvider ipProvider,
HostnameProvider hostnameProvider,
PXConfiguration pxConfiguration) |
Modifier and Type | Method and Description |
---|---|
String |
getCollectorURL() |
String |
getPxOriginalTokenCookie() |
String |
getRiskMode() |
boolean |
isHandledResponse()
Check if PerimeterX already handled the response thus the request should not be passed to the application
In case true, you can check if
isRequestLowScore() or PXContext#isFirstPartyRequest()
for more information if the response was handled by first party or score was lower than the configured threshold |
boolean |
isRequestLowScore()
Check if request is verified or not, this method should not be used as a condition if to pass the request to
the application, instead use
isHandledResponse() for the reason that its not
handling a case where we already responded if this is a first party request
The isRequestLowScore() only indicates if the request was verified and should
called only if more details about the request is needed (like knowing the reason why shouldn't be passed) |
boolean |
isVerified()
Deprecated.
- Use
isHandledResponse() |
void |
setBlockAction(String blockAction) |
void |
setCookieVersion(String cookieVersion) |
void |
setOriginalTokenCookie(String originalTokenCookie) |
void |
setRiskCookie(AbstractPXCookie riskCookie) |
public PXContext(javax.servlet.http.HttpServletRequest request, IPProvider ipProvider, HostnameProvider hostnameProvider, PXConfiguration pxConfiguration)
public String getPxOriginalTokenCookie()
public String getRiskMode()
public void setOriginalTokenCookie(String originalTokenCookie)
public void setRiskCookie(AbstractPXCookie riskCookie)
public void setBlockAction(String blockAction)
@Deprecated public boolean isVerified()
isHandledResponse()
public boolean isRequestLowScore()
isHandledResponse()
for the reason that its not
handling a case where we already responded if this is a first party request
The isRequestLowScore()
only indicates if the request was verified and should
called only if more details about the request is needed (like knowing the reason why shouldn't be passed)public boolean isHandledResponse()
isRequestLowScore()
or PXContext#isFirstPartyRequest()
for more information if the response was handled by first party or score was lower than the configured thresholdpublic String getCollectorURL()
public void setCookieVersion(String cookieVersion)
Copyright © 2018 PerimeterX. All rights reserved.