cgl.narada.service.security.kmc
Class SecurityToken

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

public class SecurityToken
extends Object
implements Serializable

Security token. It comprises of the following


Created on Sep 8, 2005

See Also:
Serialized Form

Constructor Summary
SecurityToken(Certificate _cert, TopicRights _rights, Calendar _validity)
           
 
Method Summary
static SecurityToken createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a SecurityToken object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 TopicRights getRights()
           
 Certificate getTopicOwnerCertificate()
           
 Calendar getValidity()
           
 boolean isValid()
          Check if the validity of the token is sometime in the future
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityToken

public SecurityToken(Certificate _cert,
                     TopicRights _rights,
                     Calendar _validity)
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 SecurityToken createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a SecurityToken object

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

isValid

public boolean isValid()
Check if the validity of the token is sometime in the future

Returns:
TRUE if validity is until sometime in future, FALSE otherwise.

getTopicOwnerCertificate

public Certificate getTopicOwnerCertificate()
Returns:
Returns the topicOwnerCertificate.

getRights

public TopicRights getRights()
Returns:
Returns the rights.

getValidity

public Calendar getValidity()
Returns:
Returns the validity.


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