Class semper.crypto.CryptoSeed
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.crypto.CryptoSeed

java.lang.Object
   |
   +----semper.crypto.CryptoSeed

public class CryptoSeed
extends Object
implements Streamable
CryptoSeed is a streamable class used to contain seeds that will be stored in the archive. The actual operations of storing the seed and retrieving it are currently not done by this class, but must be done by calling the archive manager with the object as argument. Later, this class may provide an interface to the archive.
Version:
$Revision: 1.5 $ $Date: 1997/01/27 15:04:19 $
Author:
Torben Pryds Pedersen (tpp@cryptomathic.aau.dk)
See Also:
CryptoMan

Constructor Index

 o CryptoSeed()
Creates a new, empty CryptoSeed object
 o CryptoSeed(byte[])
Creates a new CryptoSeed object with given seed

Method Index

 o getSeed()
Gets the seed contained in the object
 o myStreamSize()
Finds the expected number of bytes needed to externalize the object to s.
 o readObject(StreamInputInterface)
Initialise a CryptoSeed with values read from an io stream (SourceStream)
 o writeObject(StreamOutputInterface)
Writes the state of the object to an io stream (TargetStream).

Constructors

 o CryptoSeed
  public CryptoSeed()
Creates a new, empty CryptoSeed object
 o CryptoSeed
  public CryptoSeed(byte newSeed[])
Creates a new CryptoSeed object with given seed
Parameters:
newSeed - is the new seed

Methods

 o getSeed
  public byte[] getSeed()
Gets the seed contained in the object
Returns:
the seed stored in the object (null if there is no seed)
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Writes the state of the object to an io stream (TargetStream).
Parameters:
s - is the stream the object is written to
Returns:
void
Throws: StreamIOException
if the object could not be externalised
See Also:
readObject
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Initialise a CryptoSeed with values read from an io stream (SourceStream)
Parameters:
s - is the stream the value is read from
Returns:
void
Throws: StreamIOException
if the object could not be internalised
See Also:
writeObject
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Finds the expected number of bytes needed to externalize the object to s.
Parameters:
s - is the stream the key information is written to
Returns:
number of bytes required
Throws: StreamIOException
if the size could be computed
See Also:
writeObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index