org.apache.ws.sandbox.security.trust2
Class Lifetime

java.lang.Object
  extended byorg.apache.ws.security.message.token.Timestamp
      extended byorg.apache.ws.sandbox.security.trust2.Lifetime

public class Lifetime
extends Timestamp

Author:
ddelvecc

For indicating the associated with a token request or response. This usually includes wsu:Created and wsu:Expires elements


Field Summary
 
Fields inherited from class org.apache.ws.security.message.token.Timestamp
created, customElements, element, expires
 
Constructor Summary
Lifetime(WSSConfig wssConfig, org.w3c.dom.Document doc, java.util.Date created, java.util.Date expires)
          Constructs a Lifetime object according to the defined parameters.
Lifetime(WSSConfig wssConfig, org.w3c.dom.Document doc, org.w3c.dom.Element element)
           
Lifetime(WSSConfig wssConfig, org.w3c.dom.Document doc, int duration)
           
 
Method Summary
protected  org.w3c.dom.Element changeElementName(org.w3c.dom.Document doc, org.w3c.dom.Element oldElement, java.lang.String newNamespace, java.lang.String newQualName)
           
protected  org.w3c.dom.Element changeElementName(org.w3c.dom.Element oldElement, java.lang.String newNamespace, java.lang.String newQualName)
           
protected  org.w3c.dom.Element copyElement(org.w3c.dom.Document doc, org.w3c.dom.Element oldElement)
           
 org.w3c.dom.Element getElement(org.w3c.dom.Document doc)
           
 
Methods inherited from class org.apache.ws.security.message.token.Timestamp
addCustomElement, getCreated, getCurrentTime, getCustomElements, getElement, getExpires, getID, setID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lifetime

public Lifetime(WSSConfig wssConfig,
                org.w3c.dom.Document doc,
                org.w3c.dom.Element element)
         throws WSSecurityException
Parameters:
element -
Throws:
WSSecurityException

Lifetime

public Lifetime(WSSConfig wssConfig,
                org.w3c.dom.Document doc,
                int duration)
Parameters:
doc - The XML document to be used for element creation
duration - Indicates how many seconds in the future this Lifetime Expires

Lifetime

public Lifetime(WSSConfig wssConfig,
                org.w3c.dom.Document doc,
                java.util.Date created,
                java.util.Date expires)
Constructs a Lifetime object according to the defined parameters.

Parameters:
doc - The SOAP envelope as Document
created - The creation time for this lifetime
expires - When this lifetime expires
Method Detail

getElement

public org.w3c.dom.Element getElement(org.w3c.dom.Document doc)

copyElement

protected org.w3c.dom.Element copyElement(org.w3c.dom.Document doc,
                                          org.w3c.dom.Element oldElement)

changeElementName

protected org.w3c.dom.Element changeElementName(org.w3c.dom.Document doc,
                                                org.w3c.dom.Element oldElement,
                                                java.lang.String newNamespace,
                                                java.lang.String newQualName)

changeElementName

protected org.w3c.dom.Element changeElementName(org.w3c.dom.Element oldElement,
                                                java.lang.String newNamespace,
                                                java.lang.String newQualName)


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.