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

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.CancelTarget

public class CancelTarget
extends CompositeElement

The wst:CancelTarget element

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
CancelTarget(org.w3c.dom.Document doc, org.w3c.dom.Element targetToken)
           
CancelTarget(org.w3c.dom.Document doc, SecurityTokenReference securityTokenReference)
           
CancelTarget(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 security token reference to the token to be cancelled
 org.w3c.dom.Element getTargetToken()
          Returns the target token to be cancelled
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 void setCancelTarget(org.w3c.dom.Element targetToken)
          Sets a token as the token to be cancelled
 void setCancelTarget(SecurityTokenReference securityTokenReference)
          Sets the given security token reference as the cancel target
 
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

CancelTarget

public CancelTarget(org.w3c.dom.Document doc,
                    SecurityTokenReference securityTokenReference)
Parameters:
doc -

CancelTarget

public CancelTarget(org.w3c.dom.Document doc,
                    org.w3c.dom.Element targetToken)
Parameters:
doc -

CancelTarget

public CancelTarget(org.w3c.dom.Element elem)
             throws WSTrustException
Parameters:
elem -
Throws:
WSSecurityException
WSTrustException
Method Detail

setCancelTarget

public void setCancelTarget(org.w3c.dom.Element targetToken)
Sets a token as the token to be cancelled

Parameters:
targetToken -

setCancelTarget

public void setCancelTarget(SecurityTokenReference securityTokenReference)
Sets the given security token reference as the cancel target

Parameters:
securityTokenReference -

getSecurityTokenReference

public SecurityTokenReference getSecurityTokenReference()
Returns the security token reference to the token to be cancelled

Returns:

getTargetToken

public org.w3c.dom.Element getTargetToken()
Returns the target token to be cancelled

Returns:

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.