org.apache.axis2.security.trust.token
Class Lifetime
java.lang.Object
org.apache.axis2.security.trust.token.AbstractToken
org.apache.axis2.security.trust.token.CompositeToken
org.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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOKEN
public static final javax.xml.namespace.QName TOKEN
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
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