Package org.forgerock.android.auth
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.
-
-
Method Summary
Modifier and Type Method Description abstract voidonCallbackReceived(Node node)Notify the listener that the AuthService has been started and moved to the first node. NodeonCallbackReceived(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. StringgetStage(List<Callback> callbacks)Workaround stage property for AM version <7.0. -
-
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 Idresponse- 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
-
-
-
-