|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--psman.data.Pseudonym
The pseudonym implementation.
Field Summary | |
(package private) int |
id
|
(package private) psman.data.SecretKey |
key
|
(package private) java.lang.String |
name
|
Constructor Summary | |
Pseudonym(int id,
java.lang.String name,
psman.data.SecretKey key)
Constructor, only for existing pseudonyms. |
|
Pseudonym(java.lang.String name,
psman.data.SecretKey key)
Constructor, only for new pseudonyms. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(psman.data.Pseudonym data)
Check whether this pseudonym is equal to another one. |
int |
getID()
Return the database ID of this pseudonym. |
psman.data.SecretKey |
getMasterKey()
Return the master key of this pseudonym. |
java.lang.String |
getName()
Return the name of this pseudonym. |
int |
hashCode()
|
void |
setID(int id)
Set the database ID of this pseudonym. |
void |
setMasterKey(psman.data.SecretKey key)
Set the master key of this pseudonym. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
int id
java.lang.String name
psman.data.SecretKey key
Constructor Detail |
public Pseudonym(int id, java.lang.String name, psman.data.SecretKey key)
id
- the database ID of this pseudonymname
- the name of this pseudonymkey
- the master key of this pseudonympublic Pseudonym(java.lang.String name, psman.data.SecretKey key)
name
- the name of this pseudonymkey
- the master key of this pseudonymMethod Detail |
public int getID()
public java.lang.String getName()
public psman.data.SecretKey getMasterKey()
public void setID(int id)
id
- the database ID of this pseudonym.public void setMasterKey(psman.data.SecretKey key)
key
- The pseudonym's master key.public boolean equals(psman.data.Pseudonym data)
true
if they are equal,
false
otherwisepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |