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

    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(com.sun.xml.ws.security.EncryptedKey encryptedKey)
     
    EntropyImpl(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Constructs a Entropy element from an existing XML block.
    com.sun.xml.ws.security.trust.elements.BinarySecret
    Gets the BinarySecret (if any) inside this Entropy
    com.sun.xml.ws.security.EncryptedKey
    Gets the xenc:EncryptedKey set inside this Entropy instance
    Gets the type of the Entropy contents
    final void
    setBinarySecret(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)
    Sets the BinarySecret (if any) inside this Entropy
    final void
    setEncryptedKey(com.sun.xml.ws.security.EncryptedKey encryptedKey)
    Sets the xenc:EncryptedKey set inside this Entropy instance
    final void
    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 Details

    • 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 Details

    • fromElement

      public static EntropyType fromElement(Element element) throws com.sun.xml.ws.api.security.trust.WSTrustException
      Constructs a Entropy element from an existing XML block.
      Parameters:
      element - A org.w3c.dom.Element representing DOM tree for Entropy object.
      Throws:
      com.sun.xml.ws.api.security.trust.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 String getEntropyType()
      Gets the type of the Entropy contents
      Specified by:
      getEntropyType in interface com.sun.xml.ws.security.trust.elements.Entropy
    • setEntropyType

      public final void setEntropyType(@NotNull String type)
      Sets the type of the Entropy contents
      Specified by:
      setEntropyType in interface com.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:
      getBinarySecret in interface com.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:
      setBinarySecret in interface com.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:
      getEncryptedKey in interface com.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:
      setEncryptedKey in interface com.sun.xml.ws.security.trust.elements.Entropy