Class EntropyImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.wssx.bindings.EntropyType
-
- com.sun.xml.ws.security.trust.impl.wssx.elements.EntropyImpl
-
- All Implemented Interfaces:
Entropy
public class EntropyImpl extends EntropyType implements Entropy
Implementation of Entropy Interface.- Author:
- Manveen Kaur
-
-
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
Constructors Constructor Description EntropyImpl()EntropyImpl(EncryptedKey encryptedKey)EntropyImpl(BinarySecret binarySecret)EntropyImpl(EntropyType etype)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntropyTypefromElement(Element element)Constructs aEntropyelement from an existing XML block.BinarySecretgetBinarySecret()Gets the BinarySecret (if any) inside this EntropyEncryptedKeygetEncryptedKey()Gets the xenc:EncryptedKey set inside this Entropy instanceStringgetEntropyType()Gets the type of the Entropy contentsvoidsetBinarySecret(BinarySecret binarySecret)Sets the BinarySecret (if any) inside this EntropyvoidsetEncryptedKey(EncryptedKey encryptedKey)Sets the xenc:EncryptedKey set inside this Entropy instancevoidsetEntropyType(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(EncryptedKey encryptedKey)
-
EntropyImpl
public EntropyImpl(EntropyType etype)
-
-
Method Detail
-
fromElement
public static EntropyType fromElement(Element element) throws WSTrustException
Constructs aEntropyelement from an existing XML block.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forEntropyobject.- Throws:
WSTrustException- if it could not process theorg.w3c.dom.Elementproperly, implying that there is an error in the sender or in the element definition.
-
getEntropyType
public String getEntropyType()
Gets the type of the Entropy contents- Specified by:
getEntropyTypein interfaceEntropy
-
setEntropyType
public void setEntropyType(String type)
Sets the type of the Entropy contents- Specified by:
setEntropyTypein interfaceEntropy
-
getBinarySecret
public BinarySecret getBinarySecret()
Gets the BinarySecret (if any) inside this Entropy- Specified by:
getBinarySecretin interfaceEntropy- Returns:
- BinarySecret if set, null otherwise
-
setBinarySecret
public void setBinarySecret(BinarySecret binarySecret)
Sets the BinarySecret (if any) inside this Entropy- Specified by:
setBinarySecretin interfaceEntropy
-
getEncryptedKey
public EncryptedKey getEncryptedKey()
Gets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
getEncryptedKeyin interfaceEntropy- Returns:
- xenc:EncryptedKey if set, null otherwise
-
setEncryptedKey
public void setEncryptedKey(EncryptedKey encryptedKey)
Sets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
setEncryptedKeyin interfaceEntropy
-
-