cgl.narada.discovery.topics.messages
Class SignedTopicAdvertisement

java.lang.Object
  extended by cgl.narada.discovery.topics.messages.SignedTopicAdvertisement
All Implemented Interfaces:
Serializable

public class SignedTopicAdvertisement
extends Object
implements Serializable

Created on May 24, 2005

See Also:
Serialized Form

Constructor Summary
SignedTopicAdvertisement(TopicAdvertisement data, Certificate cert)
           
 
Method Summary
static SignedTopicAdvertisement createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a SignedTopicAdvertisement object
 boolean generateSignedDigest(PrivateKey privKey)
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 Certificate getOwnerCertificate()
           
 TopicAdvertisement getTopicAd()
           
 boolean verify()
           
 boolean verify(PublicKey pubKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedTopicAdvertisement

public SignedTopicAdvertisement(TopicAdvertisement data,
                                Certificate cert)
Method Detail

generateSignedDigest

public boolean generateSignedDigest(PrivateKey privKey)

verify

public boolean verify()

verify

public boolean verify(PublicKey pubKey)

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static SignedTopicAdvertisement createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a SignedTopicAdvertisement object

Parameters:
objectBytes -
Returns:
SignedTopicAdvertisement if successful, null if error occurs

getOwnerCertificate

public final Certificate getOwnerCertificate()
Returns:
Returns the sendersCertificate.

getTopicAd

public final TopicAdvertisement getTopicAd()
Returns:
Returns the topicAd.


For comments and suggestions please send e-mail to The NaradaBrokering Project