com.worklight.wlclient.api.challengehandler
Class BaseChallengeHandler
- java.lang.Object
-
- com.worklight.wlclient.api.challengehandler.BaseChallengeHandler
-
- Direct Known Subclasses:
- GatewayChallengeHandler, SecurityCheckChallengeHandler
public abstract class BaseChallengeHandler extends java.lang.Object
Abstract base class for all the challenge handlers.
-
-
Field Summary
Fields Modifier and Type Field and Description protected com.worklight.wlclient.WLRequest
activeRequest
-
Constructor Summary
Constructors Modifier Constructor and Description protected
BaseChallengeHandler(java.lang.String name)
-
Method Summary
Methods Modifier and Type Method and Description void
cancel()
Calling this method tells MobileFirst Platform that the challenge that you no longer want to take any actions to attempt to resolve the challenge.abstract void
handleChallenge(java.lang.Object challenge)
You must implement this method to handle the challenge logic, for example to display the login screen.
-
-
-
Method Detail
-
cancel
public void cancel()
Calling this method tells MobileFirst Platform that the challenge that you no longer want to take any actions to attempt to resolve the challenge. This method returns control to MobileFirst Platform for further handling. For example, call this method when the user clicks on a cancel button.
-
handleChallenge
public abstract void handleChallenge(java.lang.Object challenge)
You must implement this method to handle the challenge logic, for example to display the login screen. The framework will only call this method if it is determined that this challenge handler is a match for this challenge.- Parameters:
challenge
- The response to be handled.
-
-