Adds an identity to the database.
Parameters: identity - the identity to be added. exception: KeyManagementException - if a name or key clashoccurs, or if another exception occurs.
Initialize an IdentityDatabase from file.
Parameters: f - the filename where the identity database is stored. exception: IOException - a file-related exception occurs (e.g.the directory of the file passed does not exists, etc.
Initialize an identity database from a stream. The stream should
contain data to initialized a serialized IdentityDatabase
object.
Parameters: is - the input stream from which to restore the database. exception: IOException - if a stream IO exception occurs
Get an identity by key.
Parameters: name - the key of the identity to be retrieved. the identity with a given key, or null if there are noidentities with that key in the database.
Save the database in its current state to an output stream.
Parameters: os - the output stream to which the database should be serialized. exception: IOException - if an IO exception is raised by streamoperations.