Partager via


<keyAlgorithm> Element for <cryptography>

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

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

<keyAlgorithm name type />

Attributes and Elements

Attributes

Attribute Description

name

Required attribute. The name of a cryptographic algorithm. This name is referenced by <keyAlgorithm> Element for <binarySecurityTokenManager> child elements of the <binarySecurityTokenManager> Element and <securityTokenManager> Element elements.

type

Required attribute. The fully qualified type name of the cryptographic algorithm.

Child Elements

None

Parent Elements

Element Description

<cryptography> Element

Specifies the cryptographic algorithms and settings used to sign and encrypt SOAP messages.

Remarks

Most applications are not required to use the <keyAlgorithm> element to modify the default set of cryptographic algorithms.

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

<cryptography> Element