Class BinaryExchangeImpl

java.lang.Object
com.sun.xml.ws.security.trust.impl.wssx.bindings.BinaryExchangeType
com.sun.xml.ws.security.trust.impl.wssx.elements.BinaryExchangeImpl
All Implemented Interfaces:
BinaryExchange

public class BinaryExchangeImpl extends BinaryExchangeType implements BinaryExchange
Author:
Manveen Kaur (manveen.kaur@sun.com).
  • Constructor Details

    • BinaryExchangeImpl

      public BinaryExchangeImpl(String encodingType, String valueType, byte[] rawText)
    • BinaryExchangeImpl

      public BinaryExchangeImpl(BinaryExchangeType bcType)
  • Method Details

    • getRawValue

      public byte[] getRawValue()
      Description copied from interface: BinaryExchange
      Gets the decoded value of the text node. This represents the raw bytes for the Binary Exchange.
      Specified by:
      getRawValue in interface BinaryExchange
      Returns:
      possible object is byte[]
    • getTextValue

      public String getTextValue()
      Description copied from interface: BinaryExchange
      Gets the value of the text node. This method will return the encoded value of the binary data exchanged. Encoding is specified with the encodingType attibute.
      Specified by:
      getTextValue in interface BinaryExchange
      Returns:
      String
      See Also:
    • setTextValue

      public void setTextValue(String encodedText)
      Description copied from interface: BinaryExchange
      Sets the value of the text node. It is assumed that the proper encoding has already been taken care of to create the text value.
      Specified by:
      setTextValue in interface BinaryExchange
      Parameters:
      encodedText - String
    • setRawValue

      public void setRawValue(byte[] rawText)
      Description copied from interface: BinaryExchange
      Sets the value of the binary exchange as raw bytes. The value that appears in the element will be encoded appropriately.
      Specified by:
      setRawValue in interface BinaryExchange
      Parameters:
      rawText - allowed object is byte[]