PasswordCallback


PasswordCallback javax.security.auth.callback

Java 1.4 serializable

This Callback class represents a request for a password. A CallbackHandler should handle it by displaying the prompt returned by getPrompt( ) and then allowing the user the enter a password. When the user has entered the password, it should pass the entered text to setPassword( ) . If isEchoOn( ) returns true, then the Handler should display the password as the user types it.

Figure 19-10. javax.security.auth.callback.PasswordCallback

 public class  PasswordCallback  implements Callback, Serializable {  // Public Constructors  public  PasswordCallback  (String  prompt  , boolean  echoOn  );  // Public Instance Methods  public void  clearPassword  ( );        public char[ ]  getPassword  ( );        public String  getPrompt  ( );        public boolean  isEchoOn  ( );        public void  setPassword  (char[ ]  password  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net