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

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

public class RequestSecurityTokenResponse
extends CompositeElement


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
RequestSecurityTokenResponse(org.w3c.dom.Document doc)
          Constructor
RequestSecurityTokenResponse(org.w3c.dom.Document doc, boolean generateChildren)
          Constructor
RequestSecurityTokenResponse(org.w3c.dom.Element elem)
          To create a RequestSecurityTokenResponse token form an element passed
RequestSecurityTokenResponse(org.w3c.dom.Element elem, boolean parseChildElements)
          May not be usefull in future developments.
 
Method Summary
 void addAttribute(java.lang.String attribute, java.lang.String value)
          This is provided as an extensibility mechnism to as any attrbute
 void addToken(org.w3c.dom.Element childToken)
          This is provided as an extensibility mechanism to add any child element
 void build(org.w3c.dom.Document doc)
          TODO: Should be removed
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
 java.lang.String getAttributeValue(java.lang.String attribute)
          This is to be used to retrieve the value of the custom attrbutes added
 java.lang.String getContextAttr()
           
 RequestedProofToken getRequestedProofToken()
           
 RequestedSecurityToken getRequestedSecurityToken()
           
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 org.w3c.dom.Element getTokenByTagNameNS(java.lang.String namespace, java.lang.String tagName)
          This is provided to be used to extract custom elements
 void setContextAttr(java.lang.String context)
           
 
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

RequestSecurityTokenResponse

public RequestSecurityTokenResponse(org.w3c.dom.Document doc)
                             throws java.lang.Exception
Constructor

Parameters:
doc -
Throws:
java.lang.Exception

RequestSecurityTokenResponse

public RequestSecurityTokenResponse(org.w3c.dom.Document doc,
                                    boolean generateChildren)
                             throws java.lang.Exception
Constructor

Parameters:
doc -
Throws:
java.lang.Exception

RequestSecurityTokenResponse

public RequestSecurityTokenResponse(org.w3c.dom.Element elem)
                             throws WSTrustException
To create a RequestSecurityTokenResponse token form an element passed

Parameters:
elem -
Throws:
WSSecurityException
WSTrustException

RequestSecurityTokenResponse

public RequestSecurityTokenResponse(org.w3c.dom.Element elem,
                                    boolean parseChildElements)
                             throws WSTrustException
May not be usefull in future developments. Always try to use parseChildElements as false

Parameters:
elem -
Throws:
WSSecurityException
WSTrustException
Method Detail

setContextAttr

public void setContextAttr(java.lang.String context)

getContextAttr

public java.lang.String getContextAttr()

getRequestedProofToken

public RequestedProofToken getRequestedProofToken()
Returns:

getRequestedSecurityToken

public RequestedSecurityToken getRequestedSecurityToken()
Returns:

build

public void build(org.w3c.dom.Document doc)
TODO: Should be removed

Parameters:
doc -

addToken

public void addToken(org.w3c.dom.Element childToken)
This is provided as an extensibility mechanism to add any child element

Parameters:
childToken -

addAttribute

public void addAttribute(java.lang.String attribute,
                         java.lang.String value)
This is provided as an extensibility mechnism to as any attrbute

Parameters:
attribute -
value -

getTokenByTagNameNS

public org.w3c.dom.Element getTokenByTagNameNS(java.lang.String namespace,
                                               java.lang.String tagName)
This is provided to be used to extract custom elements

Parameters:
namespace -
tagName -
Returns:

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attribute)
This is to be used to retrieve the value of the custom attrbutes added

Parameters:
attribute -
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)
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


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