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

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

public class Entropy
extends CompositeElement

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.AbstractToken
document, element
 
Constructor Summary
Entropy(org.w3c.dom.Document doc)
          Create a new wst:Entropy element
Entropy(org.w3c.dom.Element elem)
          Constructor.
 
Method Summary
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
 BinarySecret getBinarySecret()
           
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 void setBinarySecret(BinarySecret secret)
          TODO: IMPORTANT : This method should be removed set the BinarySecret.
 void setBinarySecret(java.lang.String type, java.lang.String secretValue)
          Sets the binary secret value
 
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

Entropy

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

Parameters:
elem -
Throws:
WSSecurityException
WSTrustException

Entropy

public Entropy(org.w3c.dom.Document doc)
Create a new wst:Entropy element

Parameters:
doc -
Method Detail

setBinarySecret

public void setBinarySecret(BinarySecret secret)
TODO: IMPORTANT : This method should be removed set the BinarySecret.

Parameters:
secret -

setBinarySecret

public void setBinarySecret(java.lang.String type,
                            java.lang.String secretValue)
Sets the binary secret value

Parameters:
type - The type uri of the binary secret as a String
secretValue - The binary secret value as a String

getBinarySecret

public BinarySecret getBinarySecret()
                             throws WSTrustException
Returns:
Throws:
WSTrustException

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)
                                throws WSTrustException
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
Throws:
WSTrustException


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