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

All Known Implementing Classes:
BinaryExchangeImpl, BinaryExchangeImpl

public interface BinaryExchange

Author:
WS-Trust Implementation Team

Method Summary
 String getEncodingType()
          Gets the value of the encodingType property.
 Map<QName,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.
 String getTextValue()
          Gets the value of the text node.
 String getValueType()
          Gets the value of the valueType property.
 void setEncodingType(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(String encodedText)
          Sets the value of the text node.
 void setValueType(String valueType)
          Sets the value of the valueType property.
 

Method Detail

getEncodingType

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

Returns:
String

getOtherAttributes

Map<QName,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

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

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

Returns:
String

setEncodingType

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

Parameters:
encodingType - String

setTextValue

void setTextValue(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(String valueType)
Sets the value of the valueType property.

Parameters:
valueType - String


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.