private static final class JXLoginPane.NullPasswordStore extends PasswordStore
Modifier | Constructor and Description |
---|---|
private |
NullPasswordStore() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
char[] |
get(String username,
String server)
Fetches the password for a given server and username.
|
int |
hashCode() |
void |
removeUserPassword(String username)
This should attempt to remove the given username from the password store, as well as any associated password.
|
boolean |
set(String username,
String server,
char[] password)
Saves a password for future use.
|
private NullPasswordStore()
public boolean set(String username, String server, char[] password)
PasswordStore
set
in class PasswordStore
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 char[] get(String username, String server)
PasswordStore
get
in class PasswordStore
username
- usernameserver
- servernull
if not found, a character array representing the password
otherwise. Returned array can be empty if the password is empty.public void removeUserPassword(String username)
PasswordStore
removeUserPassword
in class PasswordStore
username
- The username to removeWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses