Class HiddenValueCallback
- java.lang.Object
-
- com.sun.identity.authentication.callbacks.HiddenValueCallback
-
- All Implemented Interfaces:
Serializable
,Callback
public class HiddenValueCallback extends Object implements Callback, Serializable
Adds a hidden value callback so that the login form can return values that the are not visually rendered on the page.- Since:
- 12.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HiddenValueCallback(String id)
Create a new HiddenValueCallback with the id as specified.HiddenValueCallback(String id, String value)
Create a new HiddenValueCallback with the id and initial value as specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
Get the initial default value set on the HiddenValueCallback.String
getId()
Get the id for the HiddenValueCallback to use when it is rendered as an HTML element.String
getValue()
Get the value set on the HiddenValueCallback when it is sent in a REST request.void
setValue(String value)
Set the value on the HiddenValueCallback.
-
-
-
Constructor Detail
-
HiddenValueCallback
public HiddenValueCallback(String id)
Create a new HiddenValueCallback with the id as specified.- Parameters:
id
- The id for the HiddenValueCallback when it is rendered as an HTML element.
-
HiddenValueCallback
public HiddenValueCallback(String id, String value)
Create a new HiddenValueCallback with the id and initial value as specified.- Parameters:
id
- The id for the HiddenValueCallback when it is rendered as an HTML element.value
- The initial value for the HiddenValueCallback when it is rendered as an HTML element.
-
-
Method Detail
-
getValue
public String getValue()
Get the value set on the HiddenValueCallback when it is sent in a REST request.- Returns:
- The value set on the callback.
-
setValue
public void setValue(String value)
Set the value on the HiddenValueCallback.- Parameters:
value
- The value to set on the callback.
-
getId
public String getId()
Get the id for the HiddenValueCallback to use when it is rendered as an HTML element.- Returns:
- The id for the callback.
-
getDefaultValue
public String getDefaultValue()
Get the initial default value set on the HiddenValueCallback.- Returns:
- The initial default value.
-
-