org.apache.axis2.security.trust.token
Class Lifetime

java.lang.Object
  extended byorg.apache.axis2.security.trust.token.AbstractToken
      extended byorg.apache.axis2.security.trust.token.CompositeToken
          extended byorg.apache.axis2.security.trust.token.Lifetime

public class Lifetime
extends CompositeToken


Field Summary
static QName TOKEN
           
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
Lifetime(long lifeTime)
           
Lifetime(OMElement elem)
           
Lifetime(String created, String expires)
           
 
Method Summary
protected  void deserializeChildElement(OMElement element)
          This is called for each of the immediate child elements of type OMNode.ELEMENT_NODE of this token
 String getCreated()
          Retuns the value of the wsu:Created child element.
 String getExpires()
          Returns the value of the wsu:Expires element.
protected  QName getToken()
           
 void setCreated(String value)
          Sets the value of the wsu:Createdelement.
 void setExpires(String value)
          Sets the value of the wsu:Expires element.
 
Methods inherited from class org.apache.axis2.security.trust.token.CompositeToken
setElementTextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN

public static final QName TOKEN
Constructor Detail

Lifetime

public Lifetime(String created,
                String expires)

Lifetime

public Lifetime(long lifeTime)
Parameters:
lifeTime - Lifetime in milliseconds

Lifetime

public Lifetime(OMElement elem)
         throws TrustException
Parameters:
elem -
Throws:
TrustException
Method Detail

getCreated

public String getCreated()
Retuns the value of the wsu:Created child element.

Returns:
Returns String.

getExpires

public String getExpires()
Returns the value of the wsu:Expires element.

Returns:
Returns String.

setCreated

public void setCreated(String value)
Sets the value of the wsu:Createdelement.

Parameters:
value -

setExpires

public void setExpires(String value)
Sets the value of the wsu:Expires element.

Parameters:
value -

getToken

protected QName getToken()
Specified by:
getToken in class AbstractToken

deserializeChildElement

protected void deserializeChildElement(OMElement element)
                                throws TrustException
Description copied from class: AbstractToken
This is called for each of the immediate child elements of type OMNode.ELEMENT_NODE of this token

Specified by:
deserializeChildElement in class AbstractToken
Parameters:
element -
Throws:
TrustException