PackageDigitalSignature Class

PackageDigitalSignature Class

 

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

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

System.Object
  System.IO.Packaging.PackageDigitalSignature

Public Class PackageDigitalSignature

NameDescription
System_CAPS_pubpropertyCertificateEmbeddingOption

Gets the X.509 certificate embedding option.

System_CAPS_pubpropertySignature

Gets or sets the XML digital signature.

System_CAPS_pubpropertySignaturePart

Gets the PackagePart that contains the signature.

System_CAPS_pubpropertySignatureType

Gets the URI string that identifies the signature type. 

System_CAPS_pubpropertySignatureValue

Gets the encrypted hash value of the Signature.

System_CAPS_pubpropertySignedParts

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

System_CAPS_pubpropertySignedRelationshipSelectors

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

System_CAPS_pubpropertySigner

Gets the X.509 certificate of the signer.

System_CAPS_pubpropertySigningTime

Gets the date and time that the signature was created.

System_CAPS_pubpropertyTimeFormat

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

NameDescription
System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetPartTransformList(Uri)

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

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

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

System_CAPS_pubmethodVerify()

Verifies the digital signature against an X.509 certificate.

System_CAPS_pubmethodVerify(X509Certificate)

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

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.

.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:
© 2016 Microsoft