Perimeter X
PerimeterX main class. You should interact with it in order to setup and start the SDK.
Functions
Returns a JSON string that represent a "blocked request" error. When the interceptor is enabled, the body of the URL response will be the same as the string that returns here. When the interceptor is disabled, you may replace the original URL response with the string that returns here.
This function checks if the SDK can handle the URL request's response and presents the block screen. Returns true
if the PerimeterX's payload in the response can be handled by the SDK. This function does not present the block screen. You must call the start(appId:delegate:completion:) function and wait until it's done before calling this function
Returns a JSON string that represent a "blocked request and challenge cancelled" error. When the interceptor is enabled, the body of the URL response will be the same as the string that returns here. When the interceptor is disabled, you may replace the original URL response with the string that returns here.
Returns a JSON string that represent a "blocked request and challenge solved" error. When the interceptor is enabled, the body of the URL response will be the same as the string that returns here.
This function handles the URL request's response and presents the block screen, if necessary. Returns true
if the PerimeterX's payload in the response was handled by the SDK. This function should be used only when the `PXPolicyUrlRequestInterceptionType`
is set to `PXPolicyUrlRequestInterceptionType/NONE`
in the policy.
Returns HTTP headers that should be added to the URL request. This function should be used only when the `PXPolicy/urlRequestInterceptionType`
is set to `PXPolicyUrlRequestInterceptionType/NONE`
.
Returns true if the error is "blocked request and challenge cancelled" error. This kind error should returned when the `PXPolicyUrlRequestInterceptionType`
is set to any value rather than `PXPolicyUrlRequestInterceptionType/NONE`
.
Returns true if the error is "blocked request and challenge solved" error. This kind error should returned when the `PXPolicyUrlRequestInterceptionType`
is set to any value rather than `PXPolicyUrlRequestInterceptionType/NONE`
.
Returns true if the error is "blocked request" error. This kind error should returned when the `PXPolicyUrlRequestInterceptionType`
is set to any value rather than `PXPolicyUrlRequestInterceptionType/NONE`
.
Provide outgoing URL request to the Account Defender feature. You must call the setUserId function before calling this function. If you are using the automatic interceptor you should not need to use this function (it will be called automatically by the interceptor).
Returns the current SDK version.
Set additional data that support Account Defender for given AppID.
Set custom parameters for given AppID.
Setup the web view to be synced with SDK. Do not set a web view client to the web view after calling this function. If you wish to set a web view client, call this function again with the new web view client. This function enables JavaScript in the web view's settings. Do not change this setting.
Call this function to start th SDK with multiple AppIDs. You should call this function only once. You should call this function only from the main thread.
Call this function to start th SDK with a single AppID. You should call this function only once. You should call this function only from the main thread.