Class BinarySecretImpl

java.lang.Object
com.sun.xml.ws.security.trust.impl.bindings.BinarySecretType
com.sun.xml.ws.security.trust.impl.elements.BinarySecretImpl
All Implemented Interfaces:
BinarySecret, XMLStructure

public class BinarySecretImpl extends BinarySecretType implements BinarySecret
Author:
WS-Trust Implementation Team
  • Constructor Details

    • BinarySecretImpl

      public BinarySecretImpl(@NotNull byte[] rawValue, String type)
    • BinarySecretImpl

      public BinarySecretImpl(@NotNull BinarySecretType bsType)
  • Method Details

    • fromElement

      public static BinarySecretType fromElement(@NotNull Element element) throws WSTrustException
      Constructs a BinarySecret element from an existing XML block.
      Parameters:
      element - org.w3c.dom.Element representing DOM tree for BinarySecret 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.
    • getRawValue

      @NotNull public byte[] getRawValue()
      Specified by:
      getRawValue in interface BinarySecret
    • getTextValue

      @NotNull public String getTextValue()
      Specified by:
      getTextValue in interface BinarySecret
    • setRawValue

      public final void setRawValue(@NotNull byte[] rawText)
      Specified by:
      setRawValue in interface BinarySecret
    • setTextValue

      public void setTextValue(@NotNull String encodedText)
      Specified by:
      setTextValue in interface BinarySecret