Class ScriptTextOutputCallback
- java.lang.Object
-
- javax.security.auth.callback.TextOutputCallback
-
- com.sun.identity.authentication.callbacks.ScriptTextOutputCallback
-
- All Implemented Interfaces:
Serializable,Callback
public class ScriptTextOutputCallback extends TextOutputCallback
Adds script inclusion functionality to theTextOutputCallbackso that we can differentiate scripts from normal textual information types (information, warning, error).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSCRIPT-
Fields inherited from class javax.security.auth.callback.TextOutputCallback
ERROR, INFORMATION, WARNING
-
-
Constructor Summary
Constructors Constructor Description ScriptTextOutputCallback(String message)Constructor that "creates" it as an INFORMATION TextOutputCallback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMessageType()Overrides theTextOutputCallback's messageType to always return that we are a script.-
Methods inherited from class javax.security.auth.callback.TextOutputCallback
getMessage
-
-
-
-
Field Detail
-
SCRIPT
public static final int SCRIPT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScriptTextOutputCallback
public ScriptTextOutputCallback(String message)
Constructor that "creates" it as an INFORMATION TextOutputCallback.- Parameters:
message- The script which will be inserted into the page receiving this callback
-
-
Method Detail
-
getMessageType
public int getMessageType()
Overrides theTextOutputCallback's messageType to always return that we are a script.- Overrides:
getMessageTypein classTextOutputCallback- Returns:
- The constant indicator we are of type SCRIPT
-
-