com.sun.xml.ws.security.trust.impl.elements
Class BinaryExchangeImpl

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

public class BinaryExchangeImpl
extends com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType
implements BinaryExchange


Field Summary
 
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType
encodingType, value, valueType
 
Constructor Summary
BinaryExchangeImpl(com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType bcType)
           
BinaryExchangeImpl(java.lang.String encodingType, java.lang.String valueType, byte[] rawText)
           
 
Method Summary
 byte[] getRawValue()
          Gets the decoded value of the text node.
 java.lang.String getTextValue()
          Gets the value of the text node.
 void setRawValue(byte[] rawText)
          Sets the value of the binary exchange as raw bytes.
 void setTextValue(java.lang.String encodedText)
          Sets the value of the text node.
 
Methods inherited from class com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType
getEncodingType, getOtherAttributes, getValue, getValueType, setEncodingType, setValue, setValueType
 
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.BinaryExchange
getEncodingType, getOtherAttributes, getValueType, setEncodingType, setValueType
 

Constructor Detail

BinaryExchangeImpl

public BinaryExchangeImpl(java.lang.String encodingType,
                          java.lang.String valueType,
                          byte[] rawText)

BinaryExchangeImpl

public BinaryExchangeImpl(com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType bcType)
                   throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException
Method Detail

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:
byte[]

getTextValue

public java.lang.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:
{getRawValue}

setTextValue

public void setTextValue(@NotNull
                         java.lang.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 final void setRawValue(@NotNull
                              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 - byte[]