org.apache.ws.sandbox.security.trust2
Class Lifetime
java.lang.Object
org.apache.ws.security.message.token.Timestamp
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 creationduration
- 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 lifetimeexpires
- When this lifetime expires
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.