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:
com.sun.xml.ws.security.trust.elements.Entropy
public class EntropyImpl extends EntropyType implements com.sun.xml.ws.security.trust.elements.Entropy
Implementation of Entropy Interface.- Author:
- Manveen Kaur
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.EntropyType
any
-
-
Constructor Summary
Constructors Constructor Description EntropyImpl()EntropyImpl(com.sun.xml.ws.security.EncryptedKey encryptedKey)EntropyImpl(com.sun.xml.ws.security.trust.elements.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.com.sun.xml.ws.security.trust.elements.BinarySecretgetBinarySecret()Gets the BinarySecret (if any) inside this Entropycom.sun.xml.ws.security.EncryptedKeygetEncryptedKey()Gets the xenc:EncryptedKey set inside this Entropy instanceStringgetEntropyType()Gets the type of the Entropy contentsvoidsetBinarySecret(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)Sets the BinarySecret (if any) inside this EntropyvoidsetEncryptedKey(com.sun.xml.ws.security.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.bindings.EntropyType
getAny, getOtherAttributes
-
-
-
-
Constructor Detail
-
EntropyImpl
public EntropyImpl()
-
EntropyImpl
public EntropyImpl(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)
-
EntropyImpl
public EntropyImpl(com.sun.xml.ws.security.EncryptedKey encryptedKey)
-
EntropyImpl
public EntropyImpl(@NotNull EntropyType etype)
-
-
Method Detail
-
fromElement
public static EntropyType fromElement(Element element) throws com.sun.xml.ws.api.security.trust.WSTrustException
Constructs aEntropyelement from an existing XML block.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forEntropyobject.- Throws:
com.sun.xml.ws.api.security.trust.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 interfacecom.sun.xml.ws.security.trust.elements.Entropy
-
setEntropyType
public final void setEntropyType(@NotNull String type)Sets the type of the Entropy contents- Specified by:
setEntropyTypein interfacecom.sun.xml.ws.security.trust.elements.Entropy
-
getBinarySecret
public com.sun.xml.ws.security.trust.elements.BinarySecret getBinarySecret()
Gets the BinarySecret (if any) inside this Entropy- Specified by:
getBinarySecretin interfacecom.sun.xml.ws.security.trust.elements.Entropy- Returns:
- BinarySecret if set, null otherwise
-
setBinarySecret
public final void setBinarySecret(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)
Sets the BinarySecret (if any) inside this Entropy- Specified by:
setBinarySecretin interfacecom.sun.xml.ws.security.trust.elements.Entropy
-
getEncryptedKey
public com.sun.xml.ws.security.EncryptedKey getEncryptedKey()
Gets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
getEncryptedKeyin interfacecom.sun.xml.ws.security.trust.elements.Entropy- Returns:
- xenc:EncryptedKey if set, null otherwise
-
setEncryptedKey
public final void setEncryptedKey(com.sun.xml.ws.security.EncryptedKey encryptedKey)
Sets the xenc:EncryptedKey set inside this Entropy instance- Specified by:
setEncryptedKeyin interfacecom.sun.xml.ws.security.trust.elements.Entropy
-
-