com.worklight.wlclient.api.challengehandler
Class SecurityCheckChallengeHandler
- java.lang.Object
-
- com.worklight.wlclient.api.challengehandler.BaseChallengeHandler
-
- com.worklight.wlclient.api.challengehandler.SecurityCheckChallengeHandler
-
public abstract class SecurityCheckChallengeHandler extends BaseChallengeHandler
Abstract base class for the IBM MobileFirst Platform challenge handlers. You must extend it to handle challenges sent by a security check.
-
-
Field Summary
-
Fields inherited from class com.worklight.wlclient.api.challengehandler.BaseChallengeHandler
activeRequest
-
-
Constructor Summary
Constructors Constructor and Description SecurityCheckChallengeHandler(java.lang.String securityCheck)
Constructs an SecurityCheckChallengeHandler for a specific security check.
-
Method Summary
Methods Modifier and Type Method and Description void
handleFailure(JSONObject error)
This method is called when the MobileFirst Platform Server reports an authentication failure.void
handleSuccess(JSONObject identity)
This method is called when the MobileFirst Platform Server reports an authentication success.void
submitChallengeAnswer(JSONObject answer)
Send the answer back to the request.-
Methods inherited from class com.worklight.wlclient.api.challengehandler.BaseChallengeHandler
cancel, handleChallenge
-
-
-
-
Constructor Detail
-
SecurityCheckChallengeHandler
public SecurityCheckChallengeHandler(java.lang.String securityCheck)
Constructs an SecurityCheckChallengeHandler for a specific security check.- Parameters:
securityCheck
- The name of the security check that this class can handle.
-
-
Method Detail
-
submitChallengeAnswer
public void submitChallengeAnswer(JSONObject answer)
Send the answer back to the request.
-
handleSuccess
public void handleSuccess(JSONObject identity)
This method is called when the MobileFirst Platform Server reports an authentication success.
-
handleFailure
public void handleFailure(JSONObject error)
This method is called when the MobileFirst Platform Server reports an authentication failure.
-
-