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


Field Summary
static QName TOKEN
           
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
CancelTarget()
          Class is used while 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  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 QName TOKEN
Constructor Detail

CancelTarget

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

CancelTarget

public CancelTarget()
Class is used while 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:
Returns SecurityTokenReference.

getTargetToken

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

Returns:
Returns OMElement.

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