Package org.forgerock.android.auth
Class Node
-
- All Implemented Interfaces:
-
java.io.Serializable
public class Node implements Serializable
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringAUTH_IDpublic final static StringSTAGEpublic final static StringHEADERpublic final static StringDESCRIPTIONpublic final StringauthIdpublic final Stringstagepublic final Stringheaderpublic final Stringdescriptionpublic final List<Callback>callbacks
-
Method Summary
Modifier and Type Method Description StringgetAuthId()Retrieve the AuthId. StringgetStage()Retrieve the Stage. StringgetHeader()Retrieve the Header. StringgetDescription()Retrieve the Description. List<Callback>getCallbacks()Retrieve all the Callback. <T> TgetCallback(Class<T> clazz)Find the first match Callback with the provided Class. voidnext(Context context, NodeListener<out Object> listener)Move on to the next node in the tree. voidsetCallback(Callback callback)Sets the Callback object for the AuthService node. -
-
Method Detail
-
getAuthId
String getAuthId()
Retrieve the AuthId.
- Returns:
The AuthId attribute associate with this Node
-
getStage
String getStage()
Retrieve the Stage.
- Returns:
The Stage attribute associate with this Node
-
getHeader
String getHeader()
Retrieve the Header.
- Returns:
The Header attribute associate with this Node
-
getDescription
String getDescription()
Retrieve the Description.
- Returns:
The Description attribute associate with this Node
-
getCallbacks
List<Callback> getCallbacks()
Retrieve all the Callback.
-
getCallback
<T> T getCallback(Class<T> clazz)
Find the first match Callback with the provided Class. Returns null if not found.
- Parameters:
clazz- The Callback Class- Returns:
The Callback instance
-
next
void next(Context context, NodeListener<out Object> listener)
Move on to the next node in the tree.
- Parameters:
context- The Application Contextlistener- Listener for receiving AuthService related changes onSuccess on success login.
-
setCallback
void setCallback(Callback callback)
Sets the Callback object for the AuthService node.
- Parameters:
callback- Callback Object with the new state.
-
-
-
-