ostore.security
Class QSDHPublicKey

java.lang.Object
  |
  +--ostore.security.QSDHPublicKey
All Implemented Interfaces:
QSPublicKey, QuickSerializable

public class QSDHPublicKey
extends Object
implements QSPublicKey

QuickSerializable Diffie-Hellman public key. Based on the same the Cryptix JCE DHPublicCryptix v1.1 and QSPublicKey

Version:
$Revision 1.0$
Author:
Gifford Cheung

Constructor Summary
QSDHPublicKey(DHPublicKey key)
           
QSDHPublicKey(InputBuffer buffer)
           
 
Method Summary
 boolean equals(Object obj)
           
 PublicKey key()
          Return the key associated with this object.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QSDHPublicKey

public QSDHPublicKey(DHPublicKey key)

QSDHPublicKey

public QSDHPublicKey(InputBuffer buffer)
              throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

key

public PublicKey key()
Description copied from interface: QSPublicKey
Return the key associated with this object.

Specified by:
key in interface QSPublicKey
Returns:
the key associated with this object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object