Share via


<cryptography> Element

Specifies the list of cryptographic algorithms that are available to place keys, encrypted data, and digital signatures in a SOAP message.

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

<cryptography>
  <encryptionFormatters />
  <keyExchangeFormatters />
  <signatureFormatters />
  <keyAlgorithm name type />
</cryptography>

Attributes and Elements

Attributes

None

Child Elements

Element Description

<encryptionFormatters> Element

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

<keyExchangeFormatters> Element

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

<signatureFormatters> Element

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

<keyAlgorithm> Element for <cryptography>

Specifies the list of cryptographic algorithms that are available to generate keys or encrypt SOAP messages.

Parent Elements

Element Description

<security> Element

Controls the security settings for a WSE application.

Remarks

Most applications are not required to change the list of cryptographic algorithms used by WSE.

Example

The following code makes the AES128 cryptographic key generation available to security token managers in the current application.

<configuration>
  <microsoft.web.services3>
    <security> 
      <cryptography>
        <keyAlgorithm name="AES128" type="Microsoft.Web.Services3.Security.Cryptography.AES128" />
      </cryptography>
    </security>
  </microsoft.web.services3>
</configuration>

See Also

Reference

<encryptionFormatters> Element
<keyExchangeFormatters> Element
<signatureFormatters> Element
<keyAlgorithm> Element for <cryptography>