com.worklight.wlclient.api.challengehandler

Class BaseChallengeHandler

  • java.lang.Object
    • com.worklight.wlclient.api.challengehandler.BaseChallengeHandler
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • activeRequest

        protected com.worklight.wlclient.WLRequest activeRequest
    • Constructor Detail

      • BaseChallengeHandler

        protected BaseChallengeHandler(java.lang.String name)
    • 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.


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