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 (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
 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