main
Class KeyManager

java.lang.Object
  extended by main.KeyManager
All Implemented Interfaces:
java.io.Serializable

public class KeyManager
extends java.lang.Object
implements java.io.Serializable

Author:
Dominik
See Also:
Serialized Form

Constructor Summary
KeyManager()
          Creates an instance of KeyManager
 
Method Summary
 void deleteKey(ForeignKey foreignKey)
          Deletes a key
 void deleteKey(java.lang.String name, java.lang.String type, java.lang.String date)
          Deletes a key
 ForeignKey find(java.lang.String name, java.lang.String type, java.lang.String date)
          Finds a key in the keylist
 java.util.ArrayList<ForeignKey> getKeyListe()
           
 void newKey(ForeignKey foreignKey)
          Adds a key to the keylist
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyManager

public KeyManager()
Creates an instance of KeyManager

Method Detail

newKey

public void newKey(ForeignKey foreignKey)
            throws java.lang.Exception
Adds a key to the keylist

Parameters:
foreignKey - the new key
Throws:
java.lang.Exception

find

public ForeignKey find(java.lang.String name,
                       java.lang.String type,
                       java.lang.String date)
Finds a key in the keylist

Parameters:
name - the owner of the key
type - the type of the key
date - the time of creation
Returns:
the key, otherwise null

deleteKey

public void deleteKey(java.lang.String name,
                      java.lang.String type,
                      java.lang.String date)
Deletes a key

Parameters:
name - the name of the owner
type - the type of the key
date - the time of creation

deleteKey

public void deleteKey(ForeignKey foreignKey)
Deletes a key

Parameters:
foreignKey - the key to delete

getKeyListe

public java.util.ArrayList<ForeignKey> getKeyListe()
Returns:
Returns the keyListe.