org.systinet.wasp.policy.assertion
Class ExpirationAssertion

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyAssertion
          extended byorg.systinet.wasp.policy.assertion.ExpirationAssertion

public class ExpirationAssertion
extends PolicyAssertion

This assertion specifies the expiration timestamp. It's defined in WS-Utility namespace. The lifetime of a WS-RM sequence may be established using this policy assertion.

Component:
Core

Constructor Summary
ExpirationAssertion(java.util.Date expires, PolicyUsage usage)
          Creates this assertion with given date.
ExpirationAssertion(javax.xml.transform.Source content)
          Loads this assertion from given XML source.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 javax.xml.transform.Source getContent()
          Gets XML content of this assertion.
 java.util.Date getExpires()
          Gets the expiration date of this assertion.
 int hashCode()
           
 
Methods inherited from class org.systinet.wasp.policy.PolicyElement
getParentElement, getPreference, getUsage, readStandardAttributes, setParentElement, setPreference, setUsage, writeStandardAttributes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpirationAssertion

public ExpirationAssertion(javax.xml.transform.Source content)
                    throws PolicyException
Loads this assertion from given XML source.

Parameters:
content - XML source
Throws:
PolicyException - when an error occurs during the assertion loading

ExpirationAssertion

public ExpirationAssertion(java.util.Date expires,
                           PolicyUsage usage)
Creates this assertion with given date.

Parameters:
expires - expiration date
usage - PolicyUsage
Method Detail

getExpires

public java.util.Date getExpires()
Gets the expiration date of this assertion.

Returns:
expiration date

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets XML content of this assertion.

Specified by:
getContent in class PolicyAssertion
Returns:
the XML content source
Throws:
PolicyException - when an error occurs

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)