public class PasswordPair extends Object implements Comparable
PasswordKey with the actual password| Constructor and Description |
|---|
PasswordPair(PasswordKey key,
String userPassword,
boolean persistant,
boolean encrypted)
Creates a new PasswordPair object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
PasswordKey |
getKey()
Get the key for the password pair
|
String |
getUserPassword()
Get the password for the password pair
|
boolean |
isEncrypted()
Get whether the password pair is encrypted
|
boolean |
isPersistant()
Get whether the password pair should be saved permanently.
|
void |
setEncrypted(boolean encrypted)
Set whether the password pair is encrypted
|
void |
setKey(PasswordKey key)
Set the key for this password pair
|
void |
setPersistant(boolean persistant)
Set whether the password pair should be saved permanently.
|
void |
setUserPassword(String userPassword)
Set the password for the password pair
|
public PasswordPair(PasswordKey key, String userPassword, boolean persistant, boolean encrypted)
key - keyuserPassword - passwordpersistant - save the password permanentlypublic int compareTo(Object o)
compareTo in interface Comparablepublic void setKey(PasswordKey key)
key - keypublic PasswordKey getKey()
public void setUserPassword(String userPassword)
userPassword - passwordpublic String getUserPassword()
public void setPersistant(boolean persistant)
persistant - save password permanentlypublic boolean isPersistant()
public void setEncrypted(boolean encrypted)
encrypted - encryptedpublic boolean isEncrypted()
Copyright © 2021. All rights reserved.