Partager via


<add> Element for <encryptionFormatters>

Adds an encryption formatter for security token managers.

<microsoft.web.services3> Element
  <security> Element
    <cryptography> Element
      <encryptionFormatters> Element

<add uri="URI for encryption formatter" type="type,assembly name" />

Attributes and Elements

Attributes

Attribute Description

uri

The URI for the encryption 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 encryption formatter.

Child Elements

None

Parent Elements

Element Description

<encryptionFormatters> Element

Specifies the types that take encrypted data and place it within a SOAP message according to the specified cryptographic algorithm.

Remarks

An encryption formatter takes encrypted data and places it within a SOAP message according to the specified cryptographic algorithm.

Most applications are not required to modify the default set of encryption formatters.

Example

The following code makes the AES128 encryption formatter available to security token managers in the current application.

<configuration>
  <microsoft.web.services3>
    <security> 
      <cryptography>
        <encryptionFormatters>
          <add uri="http://www.w3.org/2001/04/xmlenc#aes128-cbc"
               type="Microsoft.Web.Services3.Security.Cryptography.AES128EncryptionFormatter" />
        </encryptionFormatters>
      </cryptography>
    </security>
  </microsoft.web.services3>
</configuration>

See Also

Reference

<encryptionFormatters> Element