org.apache.ws.sandbox.security.trust.message.token
Class CancelRequestSecurityToken
java.lang.Object
org.apache.ws.sandbox.security.trust.message.token.AbstractToken
org.apache.ws.sandbox.security.trust.message.token.CompositeElement
org.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken
org.apache.ws.sandbox.security.trust.message.token.CancelRequestSecurityToken
- public class CancelRequestSecurityToken
- extends RequestSecurityToken
This is the class to be used to enerate a RequestSecurityToken for the
RST cancel binding
The additional child elements required for a cancel request is provided here
- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
- See Also:
TrustConstants.CANCEL_SECURITY_TOKEN
Method Summary |
protected void |
handleSpecificChildren(org.w3c.dom.Element elem)
Handle the serialization of child elements specific to this type |
void |
setCancelTarget(org.w3c.dom.Element targetToken)
Sets the given element as the cancel target |
void |
setCancelTarget(SecurityTokenReference securityTokenReference)
Sets the given security token reference as the cancel target
NOTE: This method is not necessary but for the completeness sake this was included
This is because the DOM element of the SecurityTokenReference element
can be set as the cancel target, But this will be useful if something is to be
changed with the SecurityTokenReference |
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken |
addAttribute, addToken, deserializeChildElement, getAttributeValue, getElement, getRequesType, getToken, getTokensByTagNameNS, getTokenType, setContextAttr, setRequestType, setTokenType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CancelRequestSecurityToken
public CancelRequestSecurityToken(org.w3c.dom.Document doc,
org.w3c.dom.Element targetElement)
- Creates a new
wst:RequestSecurityToken
element
setting the given element as the cancel target
- Parameters:
doc
- targetElement
-
CancelRequestSecurityToken
public CancelRequestSecurityToken(org.w3c.dom.Element elem)
throws WSTrustException
- Parameters:
elem
-
- Throws:
WSSecurityException
WSTrustException
setCancelTarget
public void setCancelTarget(org.w3c.dom.Element targetToken)
- Sets the given element as the cancel target
- Parameters:
targetToken
-
setCancelTarget
public void setCancelTarget(SecurityTokenReference securityTokenReference)
- Sets the given security token reference as the cancel target
NOTE: This method is not necessary but for the completeness sake this was included
This is because the DOM element of the SecurityTokenReference element
can be set as the cancel target, But this will be useful if something is to be
changed with the SecurityTokenReference
- Parameters:
securityTokenReference
-
handleSpecificChildren
protected void handleSpecificChildren(org.w3c.dom.Element elem)
throws WSTrustException
- Handle the serialization of child elements specific to this type
- Specified by:
handleSpecificChildren
in class RequestSecurityToken
- Parameters:
elem
-
- Throws:
WSTrustException
- See Also:
RequestSecurityToken.handleSpecificChildren(org.w3c.dom.Element)
Copyright © 2004-2008 Apache Web Services. All Rights Reserved.