java.lang.Object | +--javax.security.auth.callback.TextOutputCallback
Underlying security services instantiate and pass aTextOutputCallback
to theinvokeCallback
method of aCallbackHandler
to display information messages, warning messages and error messages.
CallbackHandler
ERROR Error message | |
INFORMATION Information message | |
WARNING Warning message |
TextOutputCallback(int messageType, java.lang.String message) Construct a TextOutputCallback with a message type and message to be displayed. |
getMessage() Get the message to be displayed. | |
getMessageType() Get the message type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public static final intINFORMATION
public static final intWARNING
public static final intERROR
publicTextOutputCallback(int messageType, java.lang.String message)
messageType
- the message type (INFORMATION
,WARNING
orERROR
).message
- the message to be displayed.java.lang.IllegalArgumentException
- ifmessageType
is not eitherINFORMATION
,WARNING
orERROR
,ifmessage
is null,or ifmessage
has a length of 0.public intgetMessageType()
INFORMATION
,WARNING
orERROR
).public java.lang.StringgetMessage()