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

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.ValueElement
          extended byorg.apache.ws.sandbox.security.trust.message.token.BinarySecret

public class BinarySecret
extends ValueElement

Author:
Dimuthu Leelarathne.(muthulee@yahoo.com), Ruchith Fernando

Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.ValueElement
valueText
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
BinarySecret(org.w3c.dom.Document doc)
          Constructor.
BinarySecret(org.w3c.dom.Element elem)
          Constructor.
 
Method Summary
 void addAttribute(java.lang.String attribute, java.lang.String value)
          This is provided as an extensibility mechnism to as any attrbute
 java.lang.String getAttributeValue(java.lang.String attribute)
          This is to be used to retrieve the value of the custom attrbutes added
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 java.lang.String getTypeAttribute()
          Returns the type attribute value
 void setTypeAttribute(java.lang.String type)
          set the Type.
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.ValueElement
deserializeChildElement, getValue, setElementTextValue, setValue
 
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

BinarySecret

public BinarySecret(org.w3c.dom.Element elem)
             throws WSTrustException
Constructor.

Parameters:
elem -

BinarySecret

public BinarySecret(org.w3c.dom.Document doc)
Constructor.

Parameters:
doc -
Method Detail

setTypeAttribute

public void setTypeAttribute(java.lang.String type)
set the Type. Set one of the three types.


getTypeAttribute

public java.lang.String getTypeAttribute()
Returns the type attribute value

Returns:

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 -

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()


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