com.sun.xml.ws.security.trust.impl.wssx.elements
Class EntropyImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType
      extended by com.sun.xml.ws.security.trust.impl.wssx.elements.EntropyImpl
All Implemented Interfaces:
Entropy

public class EntropyImpl
extends com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType
implements Entropy

Implementation of Entropy Interface.


Field Summary
 
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType
any
 
Fields inherited from interface com.sun.xml.ws.security.trust.elements.Entropy
BINARY_SECRET_TYPE, CUSTOM_TYPE, ENCRYPTED_KEY_TYPE
 
Constructor Summary
EntropyImpl()
           
EntropyImpl(BinarySecret binarySecret)
           
EntropyImpl(com.sun.xml.ws.security.EncryptedKey encryptedKey)
           
EntropyImpl(com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType etype)
           
 
Method Summary
static com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType fromElement(org.w3c.dom.Element element)
          Constructs a Entropy element from an existing XML block.
 BinarySecret getBinarySecret()
          Gets the BinarySecret (if any) inside this Entropy
 com.sun.xml.ws.security.EncryptedKey getEncryptedKey()
          Gets the xenc:EncryptedKey set inside this Entropy instance
 java.lang.String getEntropyType()
          Gets the type of the Entropy contents
 void setBinarySecret(BinarySecret binarySecret)
          Sets the BinarySecret (if any) inside this Entropy
 void setEncryptedKey(com.sun.xml.ws.security.EncryptedKey encryptedKey)
          Sets the xenc:EncryptedKey set inside this Entropy instance
 void setEntropyType(java.lang.String type)
          Sets the type of the Entropy contents
 
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType
getAny, getOtherAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.security.trust.elements.Entropy
getAny, getOtherAttributes
 

Constructor Detail

EntropyImpl

public EntropyImpl()

EntropyImpl

public EntropyImpl(BinarySecret binarySecret)

EntropyImpl

public EntropyImpl(com.sun.xml.ws.security.EncryptedKey encryptedKey)

EntropyImpl

public EntropyImpl(com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType etype)
Method Detail

fromElement

public static com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType fromElement(org.w3c.dom.Element element)
                                                                                throws WSTrustException
Constructs a Entropy element from an existing XML block.

Parameters:
element - A org.w3c.dom.Element representing DOM tree for Entropy object.
Throws:
WSTrustException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.

getEntropyType

public java.lang.String getEntropyType()
Gets the type of the Entropy contents

Specified by:
getEntropyType in interface Entropy

setEntropyType

public void setEntropyType(java.lang.String type)
Sets the type of the Entropy contents

Specified by:
setEntropyType in interface Entropy

getBinarySecret

public BinarySecret getBinarySecret()
Gets the BinarySecret (if any) inside this Entropy

Specified by:
getBinarySecret in interface Entropy
Returns:
BinarySecret if set, null otherwise

setBinarySecret

public void setBinarySecret(BinarySecret binarySecret)
Sets the BinarySecret (if any) inside this Entropy

Specified by:
setBinarySecret in interface Entropy

getEncryptedKey

public com.sun.xml.ws.security.EncryptedKey getEncryptedKey()
Gets the xenc:EncryptedKey set inside this Entropy instance

Specified by:
getEncryptedKey in interface Entropy
Returns:
xenc:EncryptedKey if set, null otherwise

setEncryptedKey

public void setEncryptedKey(com.sun.xml.ws.security.EncryptedKey encryptedKey)
Sets the xenc:EncryptedKey set inside this Entropy instance

Specified by:
setEncryptedKey in interface Entropy