Name
Class javax.security.auth.callback.Password-Callback
Synopsis
Login modules use this callback to
determine the user’s password.
Your callback handler should return the appropriate password by
calling the setPassword( )
method. If the
isEchoOn( )
method returns
false
, then the password should not be echoed as
the user types it.
Class Definition
public class javax.security.auth.callback.PasswordCallback extends java.lang.Object implements javax.security.auth.callback.Callback { // Constructors public PasswordCallback(String, boolean); // Instance Methods public void clearPassword( ); public char[] getPassword( ); public String getPrompt( ); public boolean isEchoOn( ); public void setPassword(char[]); }
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.