org.dvb.auth.callback
Class PasswordCallback

java.lang.Object
  extended byorg.dvb.auth.callback.PasswordCallback
All Implemented Interfaces:
Callback

public class PasswordCallback
extends java.lang.Object
implements Callback

Underlying security services instantiate and pass a PasswordCallback to the handle method of a CallbackHandler to retrieve password information. The CallbackHandler uses this to communicate to the security services a password obtained from the end-user.


Constructor Summary
PasswordCallback(java.lang.String prompt, boolean echoOn)
          Creates a new instance of PasswordCallback
 
Method Summary
 void clearPassord()
          Clear the retrieved password.
 char[] getPassword()
          Get the retrieved password.
 java.lang.String getPrompt()
          Get the prompt.
 boolean isEchoOn()
          return whether the password should be displayed as being typed.
 void setPassword(char[] password)
          Set the retrieved password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordCallback

public PasswordCallback(java.lang.String prompt,
                        boolean echoOn)
Creates a new instance of PasswordCallback

Method Detail

getPrompt

public java.lang.String getPrompt()
Get the prompt.


isEchoOn

public boolean isEchoOn()
return whether the password should be displayed as being typed.


setPassword

public void setPassword(char[] password)
Set the retrieved password.


getPassword

public char[] getPassword()
Get the retrieved password.

Returns:
the last password previously set by setPassword or null if none has been set

clearPassord

public void clearPassord()
Clear the retrieved password.