public abstract class PasswordStore extends Object
Constructor and Description |
---|
PasswordStore() |
Modifier and Type | Method and Description |
---|---|
abstract char[] |
get(String username,
String server)
Fetches the password for a given server and username.
|
abstract void |
removeUserPassword(String username)
This should attempt to remove the given username from the password store, as well as any associated password.
|
abstract boolean |
set(String username,
String server,
char[] password)
Saves a password for future use.
|
public PasswordStore()
public abstract boolean set(String username, String server, char[] password)
username
- username used to authenticate.server
- server used for authenticationpassword
- password to save. Password can't be null. Use empty array for empty password.public abstract char[] get(String username, String server)
username
- usernameserver
- servernull
if not found, a character array representing the password
otherwise. Returned array can be empty if the password is empty.public abstract void removeUserPassword(String username)
username
- The username to removeWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses