java.lang.Object | |
↳ | javax.security.auth.callback.PasswordCallback |
Used in conjunction with a CallbackHandler
to retrieve a password
when needed.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PasswordCallback instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clears the password stored in this
PasswordCallback .
| |||||||||||
Returns the password.
| |||||||||||
Returns the prompt that was specified when creating this
PasswordCallback
| |||||||||||
Queries whether this
PasswordCallback expects user input to be
echoed, which is specified during the creation of the object.
| |||||||||||
Sets the password.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new PasswordCallback
instance.
prompt | the message that should be displayed to the user |
---|---|
echoOn | determines whether the user input should be echoed |
Clears the password stored in this PasswordCallback
.
Returns the password. The security service that needs the password
usually calls this method once the CallbackHandler
has finished
its work.
Returns the prompt that was specified when creating this PasswordCallback
Queries whether this PasswordCallback
expects user input to be
echoed, which is specified during the creation of the object.
true
if (and only if) user input should be echoed
Sets the password. The CallbackHandler
that performs the actual
provisioning or input of the password needs to call this method to hand
back the password to the security service that requested it.
password | the password. A copy of this is stored, so subsequent changes
to the input array do not affect the PasswordCallback .
|
---|