Package org.eclipse.ecf.core.security
Class PassphraseCallback
- java.lang.Object
- 
- org.eclipse.ecf.core.security.PassphraseCallback
 
- 
- All Implemented Interfaces:
- Serializable,- Callback
 
 public class PassphraseCallback extends Object implements Callback, Serializable Callback that handles passphrases- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description PassphraseCallback(String prompt)Construct aPassphraseCallbackwith a prompt.PassphraseCallback(String prompt, String defaultPassphrase)Construct aPassphraseCallbackwith a prompt and default passphrase.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultPassphrase()Get the default passphrase.StringgetPassphrase()Get the retrieved passphrase.StringgetPrompt()Get the prompt.voidsetPassphrase(String pw)Set the retrieved passphrase.
 
- 
- 
- 
Constructor Detail- 
PassphraseCallbackpublic PassphraseCallback(String prompt) Construct aPassphraseCallbackwith a prompt.- Parameters:
- prompt- the prompt used to request the passphrase.
- Throws:
- IllegalArgumentException- if- promptis null.
 
 - 
PassphraseCallbackpublic PassphraseCallback(String prompt, String defaultPassphrase) Construct aPassphraseCallbackwith a prompt and default passphrase.- Parameters:
- prompt- the prompt used to request the information.
- defaultPassphrase- the name to be used as the default name displayed with the prompt.
- Throws:
- IllegalArgumentException- if- promptis null.
 
 
- 
 - 
Method Detail- 
getPromptpublic String getPrompt() Get the prompt.- Returns:
- the prompt.
 
 - 
getDefaultPassphrasepublic String getDefaultPassphrase() Get the default passphrase.- Returns:
- the default passphrase, or nullif thisPassphraseCallbackwas not instantiated with adefaultPassphrase.
 
 - 
setPassphrasepublic void setPassphrase(String pw) Set the retrieved passphrase.- Parameters:
- pw- the passphrase (which may be null).
- See Also:
- getPassphrase()
 
 - 
getPassphrasepublic String getPassphrase() Get the retrieved passphrase.- Returns:
- the retrieved passphrase (which may be null)
- See Also:
- setPassphrase(java.lang.String)
 
 
- 
 
-