psman.data
Class Pseudonym

java.lang.Object
  |
  +--psman.data.Pseudonym

public final class Pseudonym
extends java.lang.Object

The pseudonym implementation.

Version:
$Id: Pseudonym.java,v 1.4 2003/11/04 12:09:21 tk4 Exp $
Author:
Martin Godisch

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

id

int id

name

java.lang.String name

key

psman.data.SecretKey key
Constructor Detail

Pseudonym

public Pseudonym(int id,
                 java.lang.String name,
                 psman.data.SecretKey key)
Constructor, only for existing pseudonyms.

Parameters:
id - the database ID of this pseudonym
name - the name of this pseudonym
key - the master key of this pseudonym

Pseudonym

public Pseudonym(java.lang.String name,
                 psman.data.SecretKey key)
Constructor, only for new pseudonyms.

Parameters:
name - the name of this pseudonym
key - the master key of this pseudonym
Method Detail

getID

public int getID()
Return the database ID of this pseudonym.

Returns:
the database ID of this pseudonym

getName

public java.lang.String getName()
Return the name of this pseudonym.

Returns:
the name of this pseudonym

getMasterKey

public psman.data.SecretKey getMasterKey()
Return the master key of this pseudonym.

Returns:
The pseudonym's master key.

setID

public void setID(int id)
Set the database ID of this pseudonym.

Parameters:
id - the database ID of this pseudonym.

setMasterKey

public void setMasterKey(psman.data.SecretKey key)
Set the master key of this pseudonym.

Parameters:
key - The pseudonym's master key.

equals

public boolean equals(psman.data.Pseudonym data)
Check whether this pseudonym is equal to another one.

Returns:
true if they are equal, false otherwise

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.