com.sun.xml.ws.security.trust.elements
Interface BinaryExchange

All Known Implementing Classes:
BinaryExchangeImpl, BinaryExchangeImpl

public interface BinaryExchange


Method Summary
 java.lang.String getEncodingType()
          Gets the value of the encodingType property.
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
          Gets a map that contains attributes that aren't bound to any typed property on this class.
 byte[] getRawValue()
          Gets the decoded value of the text node.
 java.lang.String getTextValue()
          Gets the value of the text node.
 java.lang.String getValueType()
          Gets the value of the valueType property.
 void setEncodingType(java.lang.String encodingType)
          Sets the value of the encodingType property.
 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.
 void setValueType(java.lang.String valueType)
          Sets the value of the valueType property.
 

Method Detail

getEncodingType

java.lang.String getEncodingType()
Gets the value of the encodingType property.

Returns:
String

getOtherAttributes

java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.

the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

Returns:
always non-null

getRawValue

byte[] getRawValue()
Gets the decoded value of the text node. This represents the raw bytes for the Binary Exchange.

Returns:
byte[]

getTextValue

java.lang.String getTextValue()
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.

Returns:
String
See Also:
{getRawValue}

getValueType

java.lang.String getValueType()
Gets the value of the valueType property. ValueType contains the URI that identifies the type of negotiation.

Returns:
String

setEncodingType

void setEncodingType(java.lang.String encodingType)
Sets the value of the encodingType property.

Parameters:
encodingType - String

setTextValue

void setTextValue(java.lang.String encodedText)
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.

Parameters:
encodedText - String

setRawValue

void setRawValue(byte[] rawText)
Sets the value of the binary exchange as raw bytes. The value that appears in the element will be encoded appropriately.

Parameters:
rawText - byte[]

setValueType

void setValueType(java.lang.String valueType)
Sets the value of the valueType property.

Parameters:
valueType - String