Class BinaryExchangeImpl
java.lang.Object
com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType
com.sun.xml.ws.security.trust.impl.elements.BinaryExchangeImpl
- All Implemented Interfaces:
BinaryExchange
- Author:
- Manveen Kaur (manveen.kaur@sun.com).
-
Field Summary
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType
encodingType, value, valueType -
Constructor Summary
ConstructorsConstructorDescriptionBinaryExchangeImpl(BinaryExchangeType bcType) BinaryExchangeImpl(String encodingType, String valueType, byte[] rawText) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the decoded value of the text node.Gets the value of the text node.final voidsetRawValue(byte[] rawText) Sets the value of the binary exchange as raw bytes.voidsetTextValue(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, setValueTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.ws.security.trust.elements.BinaryExchange
getEncodingType, getOtherAttributes, getValueType, setEncodingType, setValueType
-
Constructor Details
-
BinaryExchangeImpl
-
BinaryExchangeImpl
- Throws:
RuntimeException
-
-
Method Details
-
getRawValue
public byte[] getRawValue()Description copied from interface:BinaryExchangeGets the decoded value of the text node. This represents the raw bytes for the Binary Exchange.- Specified by:
getRawValuein interfaceBinaryExchange- Returns:
- possible object is byte[]
-
getTextValue
Description copied from interface:BinaryExchangeGets 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:
getTextValuein interfaceBinaryExchange- Returns:
String- See Also:
-
setTextValue
Description copied from interface:BinaryExchangeSets 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:
setTextValuein interfaceBinaryExchange- Parameters:
encodedText-String
-
setRawValue
public final void setRawValue(@NotNull byte[] rawText) Description copied from interface:BinaryExchangeSets the value of the binary exchange as raw bytes. The value that appears in the element will be encoded appropriately.- Specified by:
setRawValuein interfaceBinaryExchange- Parameters:
rawText- allowed object is byte[]
-