Package org.eclipse.ecf.core.security
Class PasswordCallback
- java.lang.Object
- 
- org.eclipse.ecf.core.security.PasswordCallback
 
- 
- All Implemented Interfaces:
- Serializable,- Callback
 
 public class PasswordCallback extends Object implements Callback, Serializable Callback that handles passwords- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description PasswordCallback(String prompt)Construct aPasswordCallbackwith a prompt.PasswordCallback(String prompt, String defaultPassword)Construct aPasswordCallbackwith a prompt and default password.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultPassword()Get the default password.StringgetPassword()Get the retrieved password.StringgetPrompt()Get the prompt.voidsetPassword(String pw)Set the retrieved password.
 
- 
- 
- 
Constructor Detail- 
PasswordCallbackpublic PasswordCallback(String prompt) Construct aPasswordCallbackwith a prompt.- Parameters:
- prompt- the prompt used to request the name.
- Throws:
- IllegalArgumentException- if- promptis null.
 
 - 
PasswordCallbackpublic PasswordCallback(String prompt, String defaultPassword) Construct aPasswordCallbackwith a prompt and default password.- Parameters:
- prompt- the prompt used to request the information.
- defaultPassword- 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.
 
 - 
getDefaultPasswordpublic String getDefaultPassword() Get the default password.- Returns:
- the default password, or nullif thisPasswordCallbackwas not instantiated with adefaultPassword.
 
 - 
setPasswordpublic void setPassword(String pw) Set the retrieved password.- Parameters:
- pw- the password (which may be null).
- See Also:
- getPassword()
 
 - 
getPasswordpublic String getPassword() Get the retrieved password.- Returns:
- the retrieved password (which may be null)
- See Also:
- setPassword(java.lang.String)
 
 
- 
 
-