cgl.narada.service.security.kmc.messages
Class SecureTopicKeyCreateUpdateRequest

java.lang.Object
  extended by cgl.narada.service.security.kmc.messages.SecureTopicKeyCreateUpdateRequest
All Implemented Interfaces:
Serializable

public class SecureTopicKeyCreateUpdateRequest
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
SecureTopicKeyCreateUpdateRequest(Hashtable pubs, Hashtable subs, SignedTopicAdvertisement sta, Certificate creds, Calendar validUntil, String alg, int _keySize, String response)
          Create a Secure Topic key creation request.
 
Method Summary
static SecureTopicKeyCreateUpdateRequest createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a SecureTopicKeyCreateUpdateRequest object
 String getAlgorithm()
           
 Hashtable getAllowedPublishers()
           
 Hashtable getAllowedSubscribers()
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 int getKeySize()
           
 Certificate getOwnerCredentials()
           
 String getResponseTopic()
           
 SignedTopicAdvertisement getTopicAd()
           
 Calendar getValidity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureTopicKeyCreateUpdateRequest

public SecureTopicKeyCreateUpdateRequest(Hashtable pubs,
                                         Hashtable subs,
                                         SignedTopicAdvertisement sta,
                                         Certificate creds,
                                         Calendar validUntil,
                                         String alg,
                                         int _keySize,
                                         String response)
Create a Secure Topic key creation request. To be used by the topic owner

Parameters:
pubs - - A vector of allowed publishers to this topic
subs - - A vector of allowed subscribers to this topic
sta - - The signed topic advertisement
creds - - The owner's certificate (X.509). This will be used to validate the topic ad's signature
Method Detail

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 SecureTopicKeyCreateUpdateRequest createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a SecureTopicKeyCreateUpdateRequest object

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

getAllowedPublishers

public Hashtable getAllowedPublishers()
Returns:
Returns the allowedPublishers.

getAllowedSubscribers

public Hashtable getAllowedSubscribers()
Returns:
Returns the allowedSubscribers.

getOwnerCredentials

public Certificate getOwnerCredentials()
Returns:
Returns the ownerCredentials.

getResponseTopic

public String getResponseTopic()
Returns:
Returns the responseTopic.

getTopicAd

public SignedTopicAdvertisement getTopicAd()
Returns:
Returns the topicAd.

getValidity

public Calendar getValidity()
Returns:
Returns the validity.

getAlgorithm

public String getAlgorithm()
Returns:
Returns the algorithm.

getKeySize

public int getKeySize()
Returns:
Returns the keySize.


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