TextOutputCallbackpublic class TextOutputCallback extends Object implements Callback, Serializable Underlying security services instantiate and pass a
TextOutputCallback to the handle
method of a CallbackHandler to display information messages,
warning messages and error messages. |
Fields Summary |
---|
private static final long | serialVersionUID | public static final int | INFORMATIONInformation message. | public static final int | WARNINGWarning message. | public static final int | ERRORError message. | private int | messageType | private String | message |
Constructors Summary |
---|
public TextOutputCallback(int messageType, String message)Construct a TextOutputCallback with a message type and message
to be displayed.
if ((messageType != INFORMATION &&
messageType != WARNING && messageType != ERROR) ||
message == null || message.length() == 0)
throw new IllegalArgumentException();
this.messageType = messageType;
this.message = message;
|
Methods Summary |
---|
public java.lang.String | getMessage()Get the message to be displayed.
return message;
| public int | getMessageType()Get the message type.
return messageType;
|
|