|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.security.PassphraseCallback
public class PassphraseCallback
Callback that handles passphrases
Constructor Summary | |
---|---|
PassphraseCallback(java.lang.String prompt)
Construct a PassphraseCallback with a prompt. |
|
PassphraseCallback(java.lang.String prompt,
java.lang.String defaultPassphrase)
Construct a PassphraseCallback with a prompt and default passphrase. |
Method Summary | |
---|---|
java.lang.String |
getDefaultPassphrase()
Get the default passphrase. |
java.lang.String |
getPassphrase()
Get the retrieved passphrase. |
java.lang.String |
getPrompt()
Get the prompt. |
void |
setPassphrase(java.lang.String pw)
Set the retrieved passphrase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PassphraseCallback(java.lang.String prompt)
PassphraseCallback
with a prompt.
prompt
- the prompt used to request the passphrase.
java.lang.IllegalArgumentException
- if prompt
is null.public PassphraseCallback(java.lang.String prompt, java.lang.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.
java.lang.IllegalArgumentException
- if prompt
is null.Method Detail |
---|
public java.lang.String getPrompt()
public java.lang.String getDefaultPassphrase()
null
if this PassphraseCallback
was
not instantiated with a defaultPassphrase
.public void setPassphrase(java.lang.String pw)
pw
- the passphrase (which may be null).getPassphrase()
public java.lang.String getPassphrase()
setPassphrase(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |