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

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

public class Claims
extends CompositeElement

wst:Claims token Example token

  
      ...
      
        ...
      
  
  

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
Claims(org.w3c.dom.Document doc)
           
Claims(org.w3c.dom.Element elem)
           
 
Method Summary
 void addClaims(org.w3c.dom.NodeList claimsList)
          Adds a list of nodes as children of this wst:Claims element
 void addToken(org.w3c.dom.Element childToken)
          This is provided as an extensibility mechanism to add any child element to the wst:Claims element
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 getDialectAttribute()
          Returns the value of the Dialect attribute
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 org.w3c.dom.NodeList getTokensByTagNameNS(java.lang.String namespace, java.lang.String tagName)
          This is provided to be used to extract custom elements from the wst:Claims
 void setDialectAttribute(java.lang.String value)
          Set the value of the wst:Claims/@Dialect
 
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

Claims

public Claims(org.w3c.dom.Document doc)

Claims

public Claims(org.w3c.dom.Element elem)
       throws WSTrustException
Method Detail

setDialectAttribute

public void setDialectAttribute(java.lang.String value)
Set the value of the wst:Claims/@Dialect

Parameters:
value -

getDialectAttribute

public java.lang.String getDialectAttribute()
Returns the value of the Dialect 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

addToken

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

Parameters:
childToken -

addClaims

public void addClaims(org.w3c.dom.NodeList claimsList)
Adds a list of nodes as children of this wst:Claims element

Parameters:
claimsList - A NodeList of the elements

getTokensByTagNameNS

public org.w3c.dom.NodeList getTokensByTagNameNS(java.lang.String namespace,
                                                 java.lang.String tagName)
This is provided to be used to extract custom elements from the wst:Claims

Parameters:
namespace -
tagName -
Returns:


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