Export (0) Print
Expand All

XmlDecryptionTransform Class

Specifies the order of XML Digital Signature and XML Encryption operations when both are performed on the same document.

System.Object
  System.Security.Cryptography.Xml.Transform
    System.Security.Cryptography.Xml.XmlDecryptionTransform

Namespace:  System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public class XmlDecryptionTransform : Transform

The XmlDecryptionTransform type exposes the following members.

  NameDescription
Public methodXmlDecryptionTransformInitializes a new instance of the XmlDecryptionTransform class.
Top

  NameDescription
Public propertyAlgorithmGets or sets the Uniform Resource Identifier (URI) that identifies the algorithm performed by the current transform. (Inherited from Transform.)
Public propertyContextGets or sets an XmlElement object that represents the document context under which the current Transform object is running. (Inherited from Transform.)
Public propertyEncryptedXmlGets or sets an EncryptedXml object that contains information about the keys necessary to decrypt an XML document.
Public propertyInputTypesGets an array of types that are valid inputs to the LoadInput method of the current XmlDecryptionTransform object. (Overrides Transform.InputTypes.)
Public propertyOutputTypesGets an array of types that are possible outputs from the GetOutput methods of the current XmlDecryptionTransform object. (Overrides Transform.OutputTypes.)
Public propertyPropagatedNamespacesGets or sets a Hashtable object that contains the namespaces that are propagated into the signature. (Inherited from Transform.)
Public propertyResolverSets the current XmlResolver object. (Inherited from Transform.)
Top

  NameDescription
Public methodAddExceptUriAdds a Uniform Resource Identifier (URI) to exclude from processing.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDigestedOutputWhen overridden in a derived class, returns the digest associated with a Transform object. (Inherited from Transform.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetInnerXmlReturns an XML representation of the parameters of an XmlDecryptionTransform object that are suitable to be included as subelements of an XMLDSIG <Transform> element. (Overrides Transform.GetInnerXml().)
Public methodGetOutput()Returns the output of the current XmlDsigEnvelopedSignatureTransform object. (Overrides Transform.GetOutput().)
Public methodGetOutput(Type)Returns the output of the current XmlDsigEnvelopedSignatureTransform object. (Overrides Transform.GetOutput(Type).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetXmlReturns the XML representation of the current Transform object. (Inherited from Transform.)
Protected methodIsTargetElementDetermines whether the ID attribute of an XmlElement object matches a specified value.
Public methodLoadInnerXmlParses the specified XmlNodeList object as transform-specific content of a <Transform> element and configures the internal state of the current XmlDecryptionTransform object to match the <Transform> element. (Overrides Transform.LoadInnerXml(XmlNodeList).)
Public methodLoadInputWhen overridden in a derived class, loads the specified input into the current XmlDecryptionTransform object. (Overrides Transform.LoadInput(Object).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The XmlDecryptionTransform class provides a transform that determines the order of XML Digital Signature and XML Encryption operations when both are performed on the same document.

Use the XmlDecryptionTransform class whenever you need to perform XML encryption and apply an XML digital signature to the same XML document.

You must pass an EncryptedXml object to the EncryptedXml property that contains the necessary key information to decrypt the document.

NoteNote

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft