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

Author:
Ruchith Fernando (ruchith.fernando@gmail.com)

Field Summary
static javax.xml.namespace.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(java.lang.String created, java.lang.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
 java.lang.String getCreated()
          Retuns the value of the wsu:Created child element
 java.lang.String getExpires()
          Returns the value of the wsu:Expires element
protected  javax.xml.namespace.QName getToken()
           
 void setCreated(java.lang.String value)
          Sets the value of the wsu:Createdelement
 void setExpires(java.lang.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 javax.xml.namespace.QName TOKEN
Constructor Detail

Lifetime

public Lifetime(java.lang.String created,
                java.lang.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 java.lang.String getCreated()
Retuns the value of the wsu:Created child element

Returns:

getExpires

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

Returns:

setCreated

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

Parameters:
value -

setExpires

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

Parameters:
value -

getToken

protected javax.xml.namespace.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