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 |
getAppId() |
BlockAction |
getBlockAction() |
String |
getBlockActionData() |
BlockReason |
getBlockReason() |
String |
getCollectorURL() |
String |
getCookieHmac() |
String |
getCookieOrigin() |
String |
getCookieVersion() |
CustomParameters |
getCustomParameters() |
String |
getDecodedOriginalToken() |
String |
getFullUrl() |
Map<String,String> |
getHeaders() |
String |
getHostname() |
String |
getHttpMethod() |
String |
getHttpVersion() |
String |
getIp() |
String |
getOriginalToken() |
Map<String,String> |
getOriginalTokenCookies() |
String |
getOriginalTokenError() |
String |
getOriginalUuid() |
PassReason |
getPassReason() |
String |
getPxCaptcha() |
PXConfiguration |
getPxConfiguration() |
String |
getPxCookie() |
String |
getPxCookieOrig() |
Map<String,String> |
getPxCookies() |
String |
getPxOriginalTokenCookie() |
javax.servlet.http.HttpServletRequest |
getRequest() |
String |
getRiskCookie() |
long |
getRiskRtt() |
int |
getRiskScore() |
S2SCallReason |
getS2sCallReason() |
String |
getUri() |
String |
getUserAgent() |
String |
getUuid() |
String |
getVid() |
boolean |
isFirstPartyRequest()
Check if PerimeterX treated the request as first partyta,
|
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 isFirstPartyRequest()
for more information if the response was handled by first party or score was lower than the configured threshold |
boolean |
isMadeS2SApiCall() |
boolean |
isMobileToken() |
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 |
isSensitiveRoute() |
boolean |
isVerified()
Deprecated.
- Use
isHandledResponse() |
void |
setBlockAction(String blockAction) |
void |
setBlockActionData(String blockActionData) |
void |
setBlockReason(BlockReason blockReason) |
void |
setCookieHmac(String cookieHmac) |
void |
setCustomParameters(CustomParameters customParameters) |
void |
setDecodedOriginalToken(String decodedOriginalToken) |
void |
setDeserializeFromOriginalToken(boolean deserializeFromOriginalToken) |
void |
setFirstPartyRequest(boolean firstPartyRequest) |
void |
setMadeS2SApiCall(boolean flag) |
void |
setOriginalTokenError(String originalTokenError) |
void |
setOriginalUuid(String originalUuid) |
void |
setPassReason(PassReason passReason) |
void |
setPxCookieOrig(String pxCookieOrig) |
void |
setRiskCookie(AbstractPXCookie riskCookie) |
void |
setRiskRtt(long riskRtt) |
void |
setRiskScore(int riskScore) |
void |
setS2sCallReason(S2SCallReason callReason) |
void |
setUuid(String uuid) |
void |
setVerified(boolean verified) |
void |
setVid(String vid) |
boolean |
shouldDeserializeFromOriginalToken() |
public PXContext(javax.servlet.http.HttpServletRequest request, IPProvider ipProvider, HostnameProvider hostnameProvider, PXConfiguration pxConfiguration)
public String getPxOriginalTokenCookie()
public String getPxCookie()
public String getCookieVersion()
public String getPxCaptcha()
public String getIp()
public String getVid()
public String getHostname()
public String getUri()
public String getUserAgent()
public String getFullUrl()
public S2SCallReason getS2sCallReason()
public void setS2sCallReason(S2SCallReason callReason)
public BlockReason getBlockReason()
public void setBlockReason(BlockReason blockReason)
public String getUuid()
public String getHttpMethod()
public String getHttpVersion()
public void setRiskScore(int riskScore)
public void setVid(String vid)
public void setUuid(String uuid)
public int getRiskScore()
public void setRiskCookie(AbstractPXCookie riskCookie)
public String getRiskCookie()
public javax.servlet.http.HttpServletRequest getRequest()
public String getAppId()
public String getPxCookieOrig()
public PassReason getPassReason()
public void setPassReason(PassReason passReason)
public void setPxCookieOrig(String pxCookieOrig)
public void setBlockAction(String blockAction)
public BlockAction getBlockAction()
public void setCookieHmac(String cookieHmac)
public String getCookieHmac()
public boolean isSensitiveRoute()
public long getRiskRtt()
public void setRiskRtt(long riskRtt)
@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 isFirstPartyRequest()
for more information if the response was handled by first party or score was lower than the configured thresholdpublic void setVerified(boolean verified)
public void setMadeS2SApiCall(boolean flag)
public boolean isMadeS2SApiCall()
public String getBlockActionData()
public void setBlockActionData(String blockActionData)
public String getCookieOrigin()
public boolean isMobileToken()
public String getCollectorURL()
public CustomParameters getCustomParameters()
public void setCustomParameters(CustomParameters customParameters)
public boolean isFirstPartyRequest()
public void setFirstPartyRequest(boolean firstPartyRequest)
public PXConfiguration getPxConfiguration()
public void setOriginalTokenError(String originalTokenError)
public void setDeserializeFromOriginalToken(boolean deserializeFromOriginalToken)
public boolean shouldDeserializeFromOriginalToken()
public void setDecodedOriginalToken(String decodedOriginalToken)
public void setOriginalUuid(String originalUuid)
public String getOriginalUuid()
public String getOriginalTokenError()
public String getDecodedOriginalToken()
public String getOriginalToken()
Copyright © 2018 PerimeterX. All rights reserved.