com.sun.xml.ws.security.trust.impl.elements
Class LifetimeImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.bindings.LifetimeType
      extended by com.sun.xml.ws.security.trust.impl.elements.LifetimeImpl
All Implemented Interfaces:
Lifetime

public class LifetimeImpl
extends com.sun.xml.ws.security.trust.impl.bindings.LifetimeType
implements Lifetime


Field Summary
 
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.LifetimeType
created, expires
 
Constructor Summary
LifetimeImpl()
           
LifetimeImpl(com.sun.xml.ws.security.wsu10.AttributedDateTime created, com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
           
LifetimeImpl(com.sun.xml.ws.security.trust.impl.bindings.LifetimeType ltType)
           
 
Method Summary
static com.sun.xml.ws.security.trust.impl.bindings.LifetimeType fromElement(org.w3c.dom.Element element)
          Constructs a Lifetime element from an existing XML block.
 
Methods inherited from class com.sun.xml.ws.security.trust.impl.bindings.LifetimeType
getCreated, getExpires, setCreated, setExpires
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.security.trust.elements.Lifetime
getCreated, getExpires, setCreated, setExpires
 

Constructor Detail

LifetimeImpl

public LifetimeImpl()

LifetimeImpl

public LifetimeImpl(com.sun.xml.ws.security.wsu10.AttributedDateTime created,
                    com.sun.xml.ws.security.wsu10.AttributedDateTime expires)

LifetimeImpl

public LifetimeImpl(@NotNull
                    com.sun.xml.ws.security.trust.impl.bindings.LifetimeType ltType)
Method Detail

fromElement

public static com.sun.xml.ws.security.trust.impl.bindings.LifetimeType fromElement(@NotNull
                                                                                   org.w3c.dom.Element element)
                                                                            throws WSTrustException
Constructs a Lifetime element from an existing XML block.

Parameters:
lifetimeElement - A org.w3c.dom.Element representing DOM tree for Lifetime object.
Throws:
WSTrustException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.