Underlying security services instantiate and pass a
TextOutputCallback to the handle
method of a CallbackHandler to display information messages,
warning messages and error messages.
javax.security.auth.callback.CallbackHandler
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ERROR
Error message. |
| public static final int | INFORMATION
Information message. |
| private final String | |
| private final int | |
| private static final long | |
| public static final int | WARNING
Warning message. |
| Access | Constructor and Description |
|---|---|
| public | TextOutputCallback(int
the message type ( messageType, String INFORMATION,
WARNING or ERROR).the message to be displayed. message)Construct a TextOutputCallback with a message type and message to be displayed. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int |
| ERROR | back to summary |
|---|---|
| public static final int ERROR Error message. | |
| INFORMATION | back to summary |
|---|---|
| public static final int INFORMATION Information message. | |
| message | back to summary |
|---|---|
private final String message
| |
| messageType | back to summary |
|---|---|
private final int messageType
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| WARNING | back to summary |
|---|---|
| public static final int WARNING Warning message. | |
| TextOutputCallback | back to summary |
|---|---|
| public TextOutputCallback(int messageType, String message) Construct a TextOutputCallback with a message type and message to be displayed.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Get the message to be displayed.
| |
| getMessageType | back to summary |
|---|---|
| public int getMessageType() Get the message type.
| |