if (location.href.indexOf('is-external=true') == -1) { parent.document.; } //-->
allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.
allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.