PackageDigitalSignatureManager Class
Provides a utility class for the creation and verification of digital signatures in a Package.
Assembly: WindowsBase (in WindowsBase.dll)
| Name | Description | |
|---|---|---|
![]() | PackageDigitalSignatureManager(Package^) | Initializes a new instance of the PackageDigitalSignatureManager class for use with a specified Package. |
| Name | Description | |
|---|---|---|
![]() | CertificateOption | Gets or sets the X.509 certificate embedding option used by the Sign method to digitally sign package parts. |
![]() ![]() | DefaultHashAlgorithm | Gets a URI string that identifies the default hash algorithm used to create and verify signatures. |
![]() | HashAlgorithm | Gets or sets the URI identifier for the HashAlgorithm instance used to create and verify signatures. |
![]() | IsSigned | Gets a value that indicates whether the package contains any signatures. |
![]() | ParentWindow | Gets or sets a handle to the parent window for displaying a certificate selection dialog box. |
![]() | SignatureOrigin | Gets the uniform resource identifier (URI) of the signature origin part. |
![]() ![]() | SignatureOriginRelationshipType | Gets the type of default signature origin relationship. |
![]() | Signatures | Gets a collection of all the signatures contained in the package. |
![]() | TimeFormat | Gets or sets the date/time format used to create a signature SigningTime. |
![]() | TransformMapping | Gets a dictionary that contains each defined ContentType and its associated XML Transform.Algorithm identifier. |
| Name | Description | |
|---|---|---|
![]() | Countersign() | Countersigns all the signatures in the package with a user-selected X.509 certificate. |
![]() | Countersign(X509Certificate^) | Countersigns all the signatures in the package with a specified X.509 certificate. |
![]() | Countersign(X509Certificate^, IEnumerable<Uri^>^) | Countersigns a list of signatures with a given X.509 certificate. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetSignature(Uri^) | Returns the digital signature for a given signature uniform resource identifier (URI). |
![]() | GetType() | |
![]() | RemoveAllSignatures() | Removes all digital signatures from the package. |
![]() | RemoveSignature(Uri^) | Removes the digital signature with a given signature uniform resource identifier (URI). |
![]() | Sign(IEnumerable<Uri^>^) | Prompts the user for an X.509 certificate, which is then used to digitally sign a specified list of package parts. |
![]() | Sign(IEnumerable<Uri^>^, X509Certificate^) | Signs a list of package parts with a given X.509 certificate. |
![]() | Sign(IEnumerable<Uri^>^, X509Certificate^, IEnumerable<PackageRelationshipSelector^>^) | Signs a list of package parts and package relationships with a given X.509 certificate. |
![]() | Sign(IEnumerable<Uri^>^, X509Certificate^, IEnumerable<PackageRelationshipSelector^>^, String^) | Signs a list of package parts and package relationships with a given X.509 certificate and identifier (ID). |
![]() | Sign(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). |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() ![]() | VerifyCertificate(X509Certificate^) | Verifies a given X.509 certificate. |
![]() | VerifySignatures(Boolean) | Verifies the signatures on all signed parts within the package. |
| Name | Description | |
|---|---|---|
![]() | InvalidSignatureEvent | 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.
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.



