com.worklight.wlclient.api.challengehandler

Class 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.
    • 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 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.


© Copyright IBM Corp. 2006, 2015. All Rights Reserved.