Home » openjdk-7 » javax.security » auth » callback » [javadoc | source]
javax.security.auth.callback
public class: TextOutputCallback [javadoc | source]
java.lang.Object
   javax.security.auth.callback.TextOutputCallback

All Implemented Interfaces:
    Callback, java$io$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.

Field Summary
public static final  int INFORMATION    Information message. 
public static final  int WARNING    Warning message. 
public static final  int ERROR    Error message. 
Constructor:
 public TextOutputCallback(int messageType,
    String message) 
    Construct a TextOutputCallback with a message type and message to be displayed.

    Parameters:
    messageType - the message type (INFORMATION, WARNING or ERROR).


    message - the message to be displayed.


    Throws:
    IllegalArgumentException - if messageType is not either INFORMATION, WARNING or ERROR, if message is null, or if message has a length of 0.
    exception: IllegalArgumentException - if messageType is not either INFORMATION, WARNING or ERROR, if message is null, or if message has a length of 0.
Method from javax.security.auth.callback.TextOutputCallback Summary:
getMessage,   getMessageType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.security.auth.callback.TextOutputCallback Detail:
 public String getMessage() 
    Get the message to be displayed.

 public int getMessageType() 
    Get the message type.