ostore.mac
Class STSVerify

java.lang.Object
  |
  +--ostore.mac.STSVerify
All Implemented Interfaces:
Digestible, QuickSerializable

public class STSVerify
extends Object
implements Digestible

Specifically made for the Station-to-Station Protocol to send public keys back and forth. Used by HMACDHHandler

Version:
$Id: STSVerify.java,v 1.3 2002/04/06 22:52:43 eaton Exp $
Author:
Gifford Cheung

Constructor Summary
STSVerify(byte[] data, int[] offset)
          Note, since STSVerify is only used to transport the digest , all this will decode is digest and nothing more

The deserialization constructor.
STSVerify(QSDHPublicKey myPu, QSDHPublicKey otherPu, int MACtype)
          Constructor.
 
Method Summary
 void add_to_digest(SecureHashBuffer buffer)
          Adds this object's state to the specified SecureHashBuffer using the various add methods.
 byte[] getEncoded()
           
 void to_bytes_helper(byte[] data, int[] offset)
           
 void to_bytes(byte[] data, int[] offset)
          Note, since STSVerify is only used to transport the digest , all this will encode is digest and nothing more

 int type_code()
          Returns the unique integer associated with this class in the TypeTable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STSVerify

public STSVerify(QSDHPublicKey myPu,
                 QSDHPublicKey otherPu,
                 int MACtype)
Constructor.

STSVerify

public STSVerify(byte[] data,
                 int[] offset)
          throws QSException
Note, since STSVerify is only used to transport the digest , all this will decode is digest and nothing more

The deserialization constructor. See the comments at the top of QuickSerializable for details.
Method Detail

getEncoded

public byte[] getEncoded()

to_bytes

public void to_bytes(byte[] data,
                     int[] offset)
Note, since STSVerify is only used to transport the digest , all this will encode is digest and nothing more

Specified by:
to_bytes in interface QuickSerializable
Following copied from interface: ostore.util.QuickSerializable
Parameters:
data - The byte array to store into, or null.
offset - A single element array whose first element is the index in data to begin writing at on function entry, and which on function exit has been incremented by the number of bytes written.

to_bytes_helper

public void to_bytes_helper(byte[] data,
                            int[] offset)

add_to_digest

public void add_to_digest(SecureHashBuffer buffer)
Description copied from interface: Digestible
Adds this object's state to the specified SecureHashBuffer using the various add methods.
Specified by:
add_to_digest in interface Digestible
Following copied from interface: ostore.util.Digestible
See Also:
SecureHashBuffer.add( byte ), SecureHashBuffer.add( byte[] ), SecureHashBuffer.add( byte[], int, int ), SecureHashBuffer.add( Digestible )

type_code

public int type_code()
Description copied from interface: QuickSerializable
Returns the unique integer associated with this class in the TypeTable.
Specified by:
type_code in interface QuickSerializable
Following copied from interface: ostore.util.QuickSerializable
Returns:
an integer unique to this class