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 store seeds in the archive
- Version:
- $Revision: 1.3 $ $Date: 1996/09/06 15:59:56 $
- 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
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