|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.auth.callback.PasswordCallback
public class PasswordCallback
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 to use. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordCallback(java.lang.String prompt, boolean echoOn)
prompt
- the prompt to useechoOn
- true if the password should be displayed as typed otherwise falseMethod Detail |
---|
public java.lang.String getPrompt()
public boolean isEchoOn()
public void setPassword(char[] password)
password
- the password to returngetPassword()
public char[] getPassword()
setPassword(char[])
public void clearPassord()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |