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

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.BaseToken

public class BaseToken
extends java.lang.Object

Author:
Malinda Kaushalye

Base token.


Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Constructor Summary
BaseToken(org.w3c.dom.Document doc)
          Constructor for Base
BaseToken(org.w3c.dom.Element elem)
          Constructor for Base
 
Method Summary
 void addToken(org.w3c.dom.Element childToken)
          Other tokens can be added through this method
 BinarySecurity getBinarySecurityToken()
          Return the binary security token of the base token if any
 org.w3c.dom.Element getElement()
           
 org.w3c.dom.Element getFirstElement()
          get the first child element.
 void removeToken(org.w3c.dom.Element childToken)
          Tokens can be removed through this method
 void setBinarySecurityToken(BinarySecurity binarySecurity)
          Currently support only direct reference
 void setElement(org.w3c.dom.Element element)
           
 java.lang.String 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

BaseToken

public BaseToken(org.w3c.dom.Element elem)
          throws WSSecurityException
Constructor for Base

Parameters:
elem -
Throws:
WSSecurityException

BaseToken

public BaseToken(org.w3c.dom.Document doc)
Constructor for Base

Parameters:
doc -
Method Detail

getBinarySecurityToken

public BinarySecurity getBinarySecurityToken()
                                      throws WSSecurityException
Return the binary security token of the base token if any

Returns:
Throws:
WSSecurityException

setBinarySecurityToken

public void setBinarySecurityToken(BinarySecurity binarySecurity)
Currently support only direct reference

Parameters:
binarySecurity -

getFirstElement

public org.w3c.dom.Element getFirstElement()
get the first child element.

Returns:
the first Element child node

getElement

public org.w3c.dom.Element getElement()
Returns:

setElement

public void setElement(org.w3c.dom.Element element)
Parameters:
element -

toString

public java.lang.String toString()

addToken

public void addToken(org.w3c.dom.Element childToken)
Other tokens can be added through this method

Parameters:
childToken -

removeToken

public void removeToken(org.w3c.dom.Element childToken)
Tokens can be removed through this method

Parameters:
childToken -


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