<add> Element for <keyExchangeFormatters>
Adds a key exchange formatter for security token managers.
<microsoft.web.services3> Element
<security> Element
<cryptography> Element
<keyExchangeFormatters> Element
<add uri="URI for key exchange formatter" type="type,assembly name" />
Attributes and Elements
Attributes
Attribute | Description |
---|---|
uri |
The URI for the key exchange formatter, as specified in the XML Encryption Syntax and Processing World Wide Web Consortium (W3C) specification. |
type |
The fully qualified type name that implements the key exchange formatter. |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Specifies the types that take a key and place it within a SOAP message according to the specified cryptographic algorithm. |
Remarks
A key exchange formatter takes a key and places it within a SOAP message according to the specified cryptographic algorithm.
Most applications are not required to modify the default set of key exchange formatters.
Example
The following code makes the AES128 key exchange formatter available to security token managers in the current application.
<configuration>
<microsoft.web.services3>
<security>
<cryptography>
<keyExchangeFormatters>
<add uri="http://www.w3.org/2001/04/xmlenc#kw-aes128"
type="Microsoft.Web.Services3.Security.Cryptography.AES128KeyExchangeFormatter" />
</keyExchangeFormatters>
</cryptography>
</security>
</microsoft.web.services3>
</configuration>