Class MetadataCallback
java.lang.Object
com.sun.identity.authentication.spi.MetadataCallback
- All Implemented Interfaces:
Callback
A callback that allows some extra metadata to be sent in the response.
When serialized as JSON in an authenticate response, the outputValue
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"
}
}
]
}
]
}
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataCallback.Builder
builder()
Get a builder for constructing a new MetadataCallback.Get the output for the callback.
-
Method Details
-
getOutputValue
Get the output for the callback.- Returns:
- The output value.
-
builder
Get a builder for constructing a new MetadataCallback.- Returns:
- The builder.
-