PXPolicy

public final class PXPolicy

The policy that defines the behaviour of the SDK.

Constructors

Link copied to clipboard
PXPolicy PXPolicy(    ArrayList<String> domains,     Boolean requestsInterceptedAutomaticallyEnabled,     Boolean delayResponseUntilChallengeSolvedOrCancelled,     PXPolicyChallengeType challengeType)

Functions

Link copied to clipboard
final PXPolicyChallengeType getChallengeType()

Challenge type. Default is WEB_VIEW.

final Boolean getDelayResponseUntilChallengeSolvedOrCancelled()

Indication that responses for blocked requests should be delayed until the challenge was solved or cancelled by the user. This property is relevant only when requestsInterceptedAutomaticallyEnabled is true. Notice that enabling this could mean that your request handler code will not be called at all (for example, when the user does not solve the challenge). Default is false.

Link copied to clipboard
final ArrayList<String> getDomains()

Set of domains that should be intercepted. Empty set means that all domains will be intercepted. Default is an empty set.

final Boolean getRequestsInterceptedAutomaticallyEnabled()

Indication that requests should be intercepted automatically. Specify false for manual requests handling. Default is true.

Link copied to clipboard
final Unit setChallengeType(PXPolicyChallengeType challengeType)

Challenge type. Default is WEB_VIEW.

final Unit setDelayResponseUntilChallengeSolvedOrCancelled(Boolean delayResponseUntilChallengeSolvedOrCancelled)

Indication that responses for blocked requests should be delayed until the challenge was solved or cancelled by the user. This property is relevant only when requestsInterceptedAutomaticallyEnabled is true. Notice that enabling this could mean that your request handler code will not be called at all (for example, when the user does not solve the challenge). Default is false.

final Unit setRequestsInterceptedAutomaticallyEnabled(Boolean requestsInterceptedAutomaticallyEnabled)

Indication that requests should be intercepted automatically. Specify false for manual requests handling. Default is true.

Properties

Link copied to clipboard
private PXPolicyChallengeType challengeType

Challenge type. Default is WEB_VIEW.

private Boolean delayResponseUntilChallengeSolvedOrCancelled

Indication that responses for blocked requests should be delayed until the challenge was solved or cancelled by the user. This property is relevant only when requestsInterceptedAutomaticallyEnabled is true. Notice that enabling this could mean that your request handler code will not be called at all (for example, when the user does not solve the challenge). Default is false.

Link copied to clipboard
private final ArrayList<String> domains

Set of domains that should be intercepted. Empty set means that all domains will be intercepted. Default is an empty set.

Link copied to clipboard
private Boolean requestsInterceptedAutomaticallyEnabled

Indication that requests should be intercepted automatically. Specify false for manual requests handling. Default is true.