-
- All Implemented Interfaces:
-
java.io.Serializable,org.forgerock.android.auth.callback.Callback,org.forgerock.android.auth.callback.DerivableCallback
public class MetadataCallback extends AbstractCallback implements DerivableCallback
A callback that allows some extra metadata to be sent in the response.
When serialized as JSON in an authenticate response, the value object will be the value of a single data output value, so for a value of
{ "foo": "bar" }, this would be output as:{ "authId": "...", "callbacks": [ // ... { "type": "MetadataCallback", "output": [ { "name": "data", "value": { "foo": "bar" } } ] } ] }
-
-
Constructor Summary
Constructors Constructor Description MetadataCallback()MetadataCallback(JSONObject jsonObject, int index)
-
Method Summary
Modifier and Type Method Description JSONObjectgetValue()StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AM Class<out Callback>getDerivedCallback()Retrieve the derived callback class, return null if no derive callback found. -
-
Constructor Detail
-
MetadataCallback
MetadataCallback()
-
MetadataCallback
MetadataCallback(JSONObject jsonObject, int index)
-
-
Method Detail
-
getValue
JSONObject getValue()
-
getType
String getType()
Return the type of the Callback, the type name should align with the Callback type returned from AM
-
getDerivedCallback
Class<out Callback> getDerivedCallback()
Retrieve the derived callback class, return null if no derive callback found.
-
-
-
-