public class ClockSyncChallengeHandler extends SecurityCheckChallengeHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVER_TIME_STAMP |
static int |
WARNING_TIME |
Constructor and Description |
---|
ClockSyncChallengeHandler(java.lang.String securityCheck) |
Modifier and Type | Method and Description |
---|---|
void |
handleChallenge(JSONObject challenge)
You must implement this method to handle the challenge logic, for example to display the login screen.
|
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.
|
submitChallengeAnswer
cancel, clearChallengeRequests, clearWaitingList, getHandlerName, releaseWaitingList, startHandleChallenge
public static final java.lang.String SERVER_TIME_STAMP
public static final int WARNING_TIME
public ClockSyncChallengeHandler(java.lang.String securityCheck)
securityCheck
- public void handleSuccess(JSONObject identity)
SecurityCheckChallengeHandler
handleSuccess
in class SecurityCheckChallengeHandler
public void handleFailure(JSONObject error)
SecurityCheckChallengeHandler
handleFailure
in class SecurityCheckChallengeHandler
public void handleChallenge(JSONObject challenge)
BaseChallengeHandler
handleChallenge
in class BaseChallengeHandler<JSONObject>
challenge
- The response to be handled.