Underlying security services instantiate and pass a PasswordCallback to the handle method of a CallbackHandler to retrieve password information.
Underlying security services instantiate and pass a PasswordCallback to the handle method of a CallbackHandler to retrieve password information.
(->password-callback prompt echo-on)
Constructor.
Construct a PasswordCallback with a prompt and a boolean specifying whether the password should be displayed as it is being typed.
prompt - the prompt used to request the password. - java.lang.String
echo-on - true if the password should be displayed as it is being typed. - boolean
throws: java.lang.IllegalArgumentException - if prompt is null or if prompt has a length of 0.
Constructor. Construct a PasswordCallback with a prompt and a boolean specifying whether the password should be displayed as it is being typed. prompt - the prompt used to request the password. - `java.lang.String` echo-on - true if the password should be displayed as it is being typed. - `boolean` throws: java.lang.IllegalArgumentException - if prompt is null or if prompt has a length of 0.
(clear-password this)
Clear the retrieved password.
Clear the retrieved password.
(echo-on? this)
Return whether the password should be displayed as it is being typed.
returns: the whether the password
should be displayed as it is being typed. - boolean
Return whether the password should be displayed as it is being typed. returns: the whether the password should be displayed as it is being typed. - `boolean`
(get-password this)
Get the retrieved password.
This method returns a copy of the retrieved password.
returns: the retrieved password, which may be null. - char[]
Get the retrieved password. This method returns a copy of the retrieved password. returns: the retrieved password, which may be null. - `char[]`
(get-prompt this)
Get the prompt.
returns: the prompt. - java.lang.String
Get the prompt. returns: the prompt. - `java.lang.String`
(set-password this password)
Set the retrieved password.
This method makes a copy of the input password before storing it.
password - the retrieved password, which may be null. - char[]
Set the retrieved password. This method makes a copy of the input password before storing it. password - the retrieved password, which may be null. - `char[]`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close