A Callback of this type represents a request to display text to the user . A callback handler should call getMessage( ) and display the returned string to the user. It should also call getMessageType( ) and use the returned value (which is one of the constants defined by the class) to indicate the type or severity of the information. Figure 19-12. javax.security.auth.callback.TextOutputCallbackpublic class TextOutputCallback implements Callback, Serializable { // Public Constructors public TextOutputCallback (int messageType , String message ); // Public Constants public static final int ERROR ; =2 public static final int INFORMATION ; =0 public static final int WARNING ; =1 // Public Instance Methods public String getMessage ( ); public int getMessageType ( ); } |