Package org.forgerock.android.auth
Interface NodeListener
-
- All Implemented Interfaces:
-
org.forgerock.android.auth.FRListener
public interface NodeListener<T extends Object> 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 public classNodeListener.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitonCallbackReceived(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 . 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 Unit 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- Returns:
The Node Object
-
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- Returns:
A List of Callback Object
-
-
-
-