public class PassphraseCallback extends Object implements Callback, Serializable
| Constructor and Description |
|---|
PassphraseCallback(String prompt)
Construct a
PassphraseCallback with a prompt. |
PassphraseCallback(String prompt,
String defaultPassphrase)
Construct a
PassphraseCallback with a prompt and default passphrase. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPassphrase()
Get the default passphrase.
|
String |
getPassphrase()
Get the retrieved passphrase.
|
String |
getPrompt()
Get the prompt.
|
void |
setPassphrase(String pw)
Set the retrieved passphrase.
|
public PassphraseCallback(String prompt)
PassphraseCallback with a prompt.prompt - the prompt used to request the passphrase.IllegalArgumentException - if prompt is null.public PassphraseCallback(String prompt, String defaultPassphrase)
PassphraseCallback with a prompt and default passphrase.
prompt - the prompt used to request the information.
defaultPassphrase - the name to be used as the default name displayed with the
prompt.IllegalArgumentException - if prompt is null.public String getPrompt()
public String getDefaultPassphrase()
null if this PassphraseCallback was
not instantiated with a defaultPassphrase.public void setPassphrase(String pw)
pw - the passphrase (which may be null).getPassphrase()public String getPassphrase()
setPassphrase(java.lang.String)Copyright © 2004–2020 Eclipse Foundation. All rights reserved.