PackageDigitalSignature PackageDigitalSignature PackageDigitalSignature PackageDigitalSignature Class


Represents a digital signature that is applied to a set of package parts and relationships.

public ref class PackageDigitalSignature
public class PackageDigitalSignature
type PackageDigitalSignature = class
Public Class PackageDigitalSignature


A PackageDigitalSignature object is immutable and cannot be altered after it is created.

For security, a PackageDigitalSignature can be associated with parts within a Package. A PackageDigitalSignature incorporates an X.509 certificate that provides two features:

  • Identifies and authenticates the originator of the part.

  • Validates that the part has not been modified.

The digital signature does not preclude a part from being modified, but a validation check against the signature fails if the part has changed in any way. The application can then take appropriate action - for example, it can prevent the part from opening or it can notify the user that the part has been modified and is not secure.

For more information about package digital signatures, see the MSDN article Digital Signing Framework of the Open Packaging Conventions.


CertificateEmbeddingOption CertificateEmbeddingOption CertificateEmbeddingOption CertificateEmbeddingOption

Gets the X.509 certificate embedding option.

Signature Signature Signature Signature

Gets or sets the XML digital signature.

SignaturePart SignaturePart SignaturePart SignaturePart

Gets the PackagePart that contains the signature.

SignatureType SignatureType SignatureType SignatureType

Gets the URI string that identifies the signature type.

SignatureValue SignatureValue SignatureValue SignatureValue

Gets the encrypted hash value of the Signature.

SignedParts SignedParts SignedParts SignedParts

Gets a collection of all the PackagePart objects signed with the signature.

SignedRelationshipSelectors SignedRelationshipSelectors SignedRelationshipSelectors SignedRelationshipSelectors

Gets the list of the PackageRelationship parts that have been signed with the signature.

Signer Signer Signer Signer

Gets the X.509 certificate of the signer.

SigningTime SigningTime SigningTime SigningTime

Gets the date and time that the signature was created.

TimeFormat TimeFormat TimeFormat TimeFormat

Gets the format of the date and time returned by the SigningTime property.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPartTransformList(Uri) GetPartTransformList(Uri) GetPartTransformList(Uri) GetPartTransformList(Uri)

Returns an ordered list of the Transform operations applied to a given part.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Verify() Verify() Verify() Verify()

Verifies the digital signature against an X.509 certificate.

Verify(X509Certificate) Verify(X509Certificate) Verify(X509Certificate) Verify(X509Certificate)

Verifies the digital signature against a given X.509 certificate.

Applies to

See also