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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOKEN
public static final QName TOKEN
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
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:Created
element.
- 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