org.apache.ws.sandbox.security.trust.message.token
Class Renewing

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.Renewing

public class Renewing
extends AbstractToken

Author:
Malinda Kaushalye, Ruchith Fernando

WS-Trust Spec - ..."This optional element is used to specify renew semantics for types that support this operation."... Also can be used request for a token that can be renewed.


Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
Renewing(org.w3c.dom.Document doc)
          Constructor for Renewing
Renewing(org.w3c.dom.Document doc, boolean isOK, boolean isAllow)
          Constructor for Renewing
Renewing(org.w3c.dom.Element elem)
          Constructor for Renewing
 
Method Summary
protected  void deserializeChildElement(org.w3c.dom.Element elem)
          This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token
 boolean getAllow()
           
 boolean getOK()
           
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 void setAllow(boolean allow)
           
protected  void setElementTextValue(org.w3c.dom.Text textNode)
          This is called with a Text node of the current element
 void setOK(boolean isOK)
           
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
addChild, getElement, parse, removeChild, setElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final javax.xml.namespace.QName TOKEN
Constructor Detail

Renewing

public Renewing(org.w3c.dom.Element elem)
         throws WSTrustException
Constructor for Renewing

Parameters:
elem -
Throws:
WSSecurityException
WSTrustException

Renewing

public Renewing(org.w3c.dom.Document doc)
Constructor for Renewing

Parameters:
doc -

Renewing

public Renewing(org.w3c.dom.Document doc,
                boolean isOK,
                boolean isAllow)
Constructor for Renewing

Parameters:
doc -
isOK -
isAllow -
Method Detail

setAllow

public void setAllow(boolean allow)

getAllow

public boolean getAllow()

setOK

public void setOK(boolean isOK)

getOK

public boolean getOK()

getToken

protected javax.xml.namespace.QName getToken()
Returns the QName of this type

Specified by:
getToken in class AbstractToken
Returns:
See Also:
AbstractToken.getToken()

deserializeChildElement

protected void deserializeChildElement(org.w3c.dom.Element elem)
                                throws WSTrustException
Description copied from class: AbstractToken
This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token

Specified by:
deserializeChildElement in class AbstractToken
Parameters:
elem - The child element
Throws:
WSTrustException

setElementTextValue

protected void setElementTextValue(org.w3c.dom.Text textNode)
                            throws WSTrustException
Description copied from class: AbstractToken
This is called with a Text node of the current element

Specified by:
setElementTextValue in class AbstractToken
Parameters:
textNode -
Throws:
WSTrustException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.