System.Security.Cryptography.Xml.RSAKeyValue Class

Represents the <RSAKeyValue> element of an XML signature.

See Also: RSAKeyValue Members

Syntax

public class RSAKeyValue : KeyInfoClause

Remarks

The System.Security.Cryptography.Xml.RSAKeyValue class represents the <RSAKeyValue> element of an XML signature defined by the XML digital signature specification. The <RSAKeyValue> element is the subelement of the <KeyInfo> element (represented by the System.Security.Cryptography.Xml.KeyInfo class) that describes an System.Security.Cryptography.RSA public key. The <RSAKeyValue> element contains the public key that corresponds to the private key used to digitally sign a document. A recipient of the document uses the public key to validate the XML signature.

Use the System.Security.Cryptography.Xml.RSAKeyValue class whenever you want to add a public key to your XML digital signature.

If a key is not explicitly supplied to the constructor, a new System.Security.Cryptography.RSA key pair is randomly generated.

For more information about the <RSAKeyValue> element, see the W3C specification at www.w3.org/TR/xmldsig-core/.

Requirements

Namespace: System.Security.Cryptography.Xml
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0