Package 

Interface NodeListener

  • All Implemented Interfaces:
    org.forgerock.android.auth.FRListener

    
    public interface NodeListener<T>
     implements FRListener<T>
                        

    Interface for an object that listens to changes resulting from a AuthService.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onCallbackReceived(Node node) Notify the listener that the AuthService has been started and moved to the first node.
      Node onCallbackReceived(String authServiceId, JSONObject response) Transform the response from AM Intelligent Tree to Node Object, after the transformation onCallbackReceived will be invoked with the returned Node.
      List<Callback> parseCallback(JSONArray jsonArray) Parse the JSON Array callback response from AM, and transform to Callback instances.
      String getStage(List<Callback> callbacks) Workaround stage property for AM version <7.0.
      • Methods inherited from class org.forgerock.android.auth.FRListener

        onException, onSuccess
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onCallbackReceived

         abstract void onCallbackReceived(Node node)

        Notify the listener that the AuthService has been started and moved to the first node.

        Parameters:
        node - The first Node
      • onCallbackReceived

         Node onCallbackReceived(String authServiceId, JSONObject response)

        Transform the response from AM Intelligent Tree to Node Object, after the transformation onCallbackReceived will be invoked with the returned Node.

        Parameters:
        authServiceId - Unique Auth Service Id
        response - The JSON Response from AM Intelligent Tree
      • parseCallback

         List<Callback> parseCallback(JSONArray jsonArray)

        Parse the JSON Array callback response from AM, and transform to Callback instances.

        Parameters:
        jsonArray - The JSON Array callback response from AM
      • getStage

         String getStage(List<Callback> callbacks)

        Workaround stage property for AM version <7.0. https://github.com/jaredjensen/forgerock-sdk-blog/blob/master/auth_tree_stage.md

        Parameters:
        callbacks - Callback from Intelligent Tree