org.apache.axis2.security.trust.token
Class CancelTarget

java.lang.Object
  extended byorg.apache.axis2.security.trust.token.AbstractToken
      extended byorg.apache.axis2.security.trust.token.CompositeToken
          extended byorg.apache.axis2.security.trust.token.CancelTarget

public class CancelTarget
extends CompositeToken

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

Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
CancelTarget()
          This can be used when we are creating a new CancelTaget which will refer to a targetToken rather than a SecurityTokenReference
CancelTarget(OMElement elem)
           
CancelTarget(org.apache.ws.security.message.token.SecurityTokenReference securityTokenReference)
           
 
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
 org.apache.ws.security.message.token.SecurityTokenReference getSecurityTokenReference()
          Returns the security token reference to the token to be cancelled
 OMElement getTargetToken()
          Returns the target token to be cancelled
protected  javax.xml.namespace.QName getToken()
           
 void setCancelTarget(OMElement targetToken)
          Sets the cancel target element
 void setCancelTarget(org.apache.ws.security.message.token.SecurityTokenReference securityTokenReference)
          Sets the cancel target security token reference
 
Methods inherited from class org.apache.axis2.security.trust.token.CompositeToken
setElementTextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN

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

CancelTarget

public CancelTarget(org.apache.ws.security.message.token.SecurityTokenReference securityTokenReference)
             throws TrustException

CancelTarget

public CancelTarget()
This can be used when we are creating a new CancelTaget which will refer to a targetToken rather than a SecurityTokenReference


CancelTarget

public CancelTarget(OMElement elem)
             throws TrustException
Parameters:
elem -
Throws:
TrustException
Method Detail

setCancelTarget

public void setCancelTarget(OMElement targetToken)
Sets the cancel target element

Parameters:
targetToken -

setCancelTarget

public void setCancelTarget(org.apache.ws.security.message.token.SecurityTokenReference securityTokenReference)
                     throws TrustException
Sets the cancel target security token reference

Parameters:
securityTokenReference -
Throws:
TrustException

getSecurityTokenReference

public org.apache.ws.security.message.token.SecurityTokenReference getSecurityTokenReference()
Returns the security token reference to the token to be cancelled

Returns:

getTargetToken

public OMElement getTargetToken()
Returns the target token to be cancelled

Returns:

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