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 ([email protected])
- See Also:
- CryptoMan
-
CryptoSeed()
- Creates a new, empty CryptoSeed object
-
CryptoSeed(byte[])
- Creates a new CryptoSeed object with given seed
-
getSeed()
- Gets the seed contained in the object
-
myStreamSize()
- Finds the expected number of bytes needed to externalize the object to s.
-
readObject(StreamInputInterface)
- Initialise a CryptoSeed with values read from an io stream
(SourceStream)
-
writeObject(StreamOutputInterface)
- Writes the state of the object to an io stream (TargetStream).
CryptoSeed
public CryptoSeed()
- Creates a new, empty CryptoSeed object
CryptoSeed
public CryptoSeed(byte newSeed[])
- Creates a new CryptoSeed object with given seed
- Parameters:
- newSeed - is the new seed
getSeed
public byte[] getSeed()
- Gets the seed contained in the object
- Returns:
- the seed stored in the object (null if there is no seed)
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
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
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