ostore.security.thresh
Class ThresholdPublicKey

java.lang.Object
  |
  +--ostore.security.thresh.ThresholdPublicKey
All Implemented Interfaces:
Key, PublicKey, QSPublicKey, QuickSerializable, Serializable

public class ThresholdPublicKey
extends Object
implements PublicKey, QSPublicKey

A public key class for threshold signatures.

Version:
$Id: ThresholdPublicKey.java,v 1.19 2002/08/02 19:53:08 geels Exp $
Author:
Sean C. Rhea
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Constructor Summary
ThresholdPublicKey(InputBuffer buffer)
           
 
Method Summary
 String getAlgorithm()
           
 byte[] getEncoded()
           
 String getFormat()
           
 PublicKey key()
          Return the key associated with this object.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThresholdPublicKey

public ThresholdPublicKey(InputBuffer buffer)
                   throws QSException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

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

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface Key

getFormat

public String getFormat()
Specified by:
getFormat in interface Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface Key