PackageDigitalSignatureManager Class

 

Provides a utility class for the creation and verification of digital signatures in a Package.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

System.Object
  System.IO.Packaging.PackageDigitalSignatureManager

public sealed class PackageDigitalSignatureManager

NameDescription
System_CAPS_pubmethodPackageDigitalSignatureManager(Package)

Initializes a new instance of the PackageDigitalSignatureManager class for use with a specified Package.

NameDescription
System_CAPS_pubpropertyCertificateOption

Gets or sets the X.509 certificate embedding option used by the Sign method to digitally sign package parts.

System_CAPS_pubpropertySystem_CAPS_staticDefaultHashAlgorithm

Gets a URI string that identifies the default hash algorithm used to create and verify signatures.

System_CAPS_pubpropertyHashAlgorithm

Gets or sets the URI identifier for the HashAlgorithm instance used to create and verify signatures.

System_CAPS_pubpropertyIsSigned

Gets a value that indicates whether the package contains any signatures.

System_CAPS_pubpropertyParentWindow

Gets or sets a handle to the parent window for displaying a certificate selection dialog box.

System_CAPS_pubpropertySignatureOrigin

Gets the uniform resource identifier (URI) of the signature origin part.

System_CAPS_pubpropertySystem_CAPS_staticSignatureOriginRelationshipType

Gets the type of default signature origin relationship.

System_CAPS_pubpropertySignatures

Gets a collection of all the signatures contained in the package.

System_CAPS_pubpropertyTimeFormat

Gets or sets the date/time format used to create a signature SigningTime.

System_CAPS_pubpropertyTransformMapping

Gets a dictionary that contains each defined ContentType and its associated XML Transform.Algorithm identifier.

NameDescription
System_CAPS_pubmethodCountersign()

Countersigns all the signatures in the package with a user-selected X.509 certificate.

System_CAPS_pubmethodCountersign(X509Certificate)

Countersigns all the signatures in the package with a specified X.509 certificate.

System_CAPS_pubmethodCountersign(X509Certificate, IEnumerable<Uri>)

Countersigns a list of signatures with a given X.509 certificate.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSignature(Uri)

Returns the digital signature for a given signature uniform resource identifier (URI). 

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRemoveAllSignatures()

Removes all digital signatures from the package.

System_CAPS_pubmethodRemoveSignature(Uri)

Removes the digital signature with a given signature uniform resource identifier (URI). 

System_CAPS_pubmethodSign(IEnumerable<Uri>)

Prompts the user for an X.509 certificate, which is then used to digitally sign a specified list of package parts.

System_CAPS_pubmethodSign(IEnumerable<Uri>, X509Certificate)

Signs a list of package parts with a given X.509 certificate.

System_CAPS_pubmethodSign(IEnumerable<Uri>, X509Certificate, IEnumerable<PackageRelationshipSelector>)

Signs a list of package parts and package relationships with a given X.509 certificate.

System_CAPS_pubmethodSign(IEnumerable<Uri>, X509Certificate, IEnumerable<PackageRelationshipSelector>, String)

Signs a list of package parts and package relationships with a given X.509 certificate and identifier (ID).

System_CAPS_pubmethodSign(IEnumerable<Uri>, X509Certificate, IEnumerable<PackageRelationshipSelector>, String, IEnumerable<DataObject>, IEnumerable<Reference>)

Signs a list of package parts, package relationships, or custom objects with a specified X.509 certificate and signature identifier (ID).

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticVerifyCertificate(X509Certificate)

Verifies a given X.509 certificate.

System_CAPS_pubmethodVerifySignatures(Boolean)

Verifies the signatures on all signed parts within the package.

NameDescription
System_CAPS_pubeventInvalidSignatureEvent

Occurs when VerifySignatures encounters an invalid signature.

PackageDigitalSignatureManager builds on the architecture of Microsoft .NET Framework digital signature classes and provides a utility class for performing common tasks in using digital signatures with Package elements.

For more information about package digital signatures, see the MSDN article Digital Signing Framework of the Open Packaging Conventions available at http://go.microsoft.com/fwlink/?LinkId=74494.

The following example shows how to use the PackageDigitalSignatureManager. For the complete sample, see Creating a Package with a Digital Signature Sample.

.NET Framework
Available since 3.0

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

Return to top
Show: