Class EntropyImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.bindings.EntropyType
-
- com.sun.xml.ws.security.trust.impl.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.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 EntropyType
fromElement(Element element)
Constructs aEntropy
element from an existing XML block.BinarySecret
getBinarySecret()
Gets the BinarySecret (if any) inside this EntropyEncryptedKey
getEncryptedKey()
Gets the xenc:EncryptedKey set inside this Entropy instanceString
getEntropyType()
Gets the type of the Entropy contentsvoid
setBinarySecret(BinarySecret binarySecret)
Sets the BinarySecret (if any) inside this Entropyvoid
setEncryptedKey(EncryptedKey encryptedKey)
Sets the xenc:EncryptedKey set inside this Entropy instancevoid
setEntropyType(String type)
Sets the type of the Entropy contents-
Methods inherited from class com.sun.xml.ws.security.trust.impl.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(@NotNull EntropyType etype)
-
-
Method Detail
-
fromElement
public static EntropyType fromElement(Element element) throws WSTrustException
Constructs aEntropy
element from an existing XML block.- Parameters:
element
- Aorg.w3c.dom.Element
representing DOM tree forEntropy
object.- Throws:
WSTrustException
- if it could not process theorg.w3c.dom.Element
properly, 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:
getEntropyType
in interfaceEntropy
-
setEntropyType
public final void setEntropyType(@NotNull String type)
Sets the type of the Entropy contents- Specified by:
setEntropyType
in interfaceEntropy
-
getBinarySecret
public BinarySecret getBinarySecret()
Gets the BinarySecret (if any) inside this Entropy- Specified by:
getBinarySecret
in interfaceEntropy
- Returns:
- BinarySecret if set, null otherwise
-
setBinarySecret
public final void setBinarySecret(BinarySecret binarySecret)
Sets the BinarySecret (if any) inside this Entropy- Specified by:
setBinarySecret
in interfaceEntropy
-
getEncryptedKey
public EncryptedKey getEncryptedKey()
Gets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
getEncryptedKey
in interfaceEntropy
- Returns:
- xenc:EncryptedKey if set, null otherwise
-
setEncryptedKey
public final void setEncryptedKey(EncryptedKey encryptedKey)
Sets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
setEncryptedKey
in interfaceEntropy
-
-