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

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

public class RenewTarget
extends CompositeElement

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

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
RenewTarget(org.w3c.dom.Document doc)
           
RenewTarget(org.w3c.dom.Element elem)
           
 
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
 SecurityTokenReference getSecurityTokenReference()
          Returns the wsse:SecurityTokenReference
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 org.w3c.dom.Element getTokenToBeRenewed()
          Returns the token to be renewed
 void setSecurityTokenReference(SecurityTokenReference securityTokenReference)
          Sets a wsse:SecurityTokenReference
 void setTokenToBeRenewed(org.w3c.dom.Element tokenToBeRenewed)
          Sets the token to be renewed
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.CompositeElement
setElementTextValue
 
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

RenewTarget

public RenewTarget(org.w3c.dom.Element elem)
            throws WSTrustException

RenewTarget

public RenewTarget(org.w3c.dom.Document doc)
Method Detail

getSecurityTokenReference

public SecurityTokenReference getSecurityTokenReference()
Returns the wsse:SecurityTokenReference

Returns:

setSecurityTokenReference

public void setSecurityTokenReference(SecurityTokenReference securityTokenReference)
Sets a wsse:SecurityTokenReference

Parameters:
securityTokenReference -

getTokenToBeRenewed

public org.w3c.dom.Element getTokenToBeRenewed()
Returns the token to be renewed

Returns:

setTokenToBeRenewed

public void setTokenToBeRenewed(org.w3c.dom.Element tokenToBeRenewed)
Sets the token to be renewed

Parameters:
tokenToBeRenewed -

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


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