XpsDigitalSignature Class

Definition

表示 XpsDocument 的數位簽章。Represents a digital signature for an XpsDocument.

public ref class XpsDigitalSignature
public class XpsDigitalSignature
type XpsDigitalSignature = class
Public Class XpsDigitalSignature
Inheritance
XpsDigitalSignature

Remarks

當您處理 XPSXPS 檔時,請使用 XpsDigitalSignature 而不是 PackageDigitalSignatureUse XpsDigitalSignature instead of PackageDigitalSignature when you work with an XPSXPS document. PackageDigitalSignatureXPSXPS感知,而且不保證 XPSXPS 檔中的所有元件都已完整簽署。PackageDigitalSignature is not XPSXPS-aware, and does not guarantee that all parts in an XPSXPS document are fully signed.

如需有關數位簽章的詳細資訊,請參閱 MSDN 文章https://go.microsoft.com/fwlink/?LinkId=74494提供的開放封裝慣例的數位簽章架構For more information about digital signatures, see the MSDN article Digital Signing Framework of the Open Packaging Conventions available at https://go.microsoft.com/fwlink/?LinkId=74494.

如需 XPSXPS 的詳細資訊,請參閱可在https://go.microsoft.com/fwlink/?LinkID=65761下載的XML 檔規格(XPS)For more information about XPSXPS see the XML Paper Specification (XPS) available for download at https://go.microsoft.com/fwlink/?LinkID=65761.

Constructors

XpsDigitalSignature(PackageDigitalSignature, XpsDocument)

初始化 XpsDigitalSignature 類別的新執行個體。Initializes a new instance of the XpsDigitalSignature class.

Properties

DocumentPropertiesRestricted

取得值,指示變更文件的屬性,是否會使數位簽章失效。Gets a value that indicates whether changing the properties of the document invalidates the digital signature.

Id

取得簽章的全域唯一識別碼 (GUID)。Gets the globally unique identifier (GUID) of the signature.

IsCertificateAvailable

取得指出文件 Package 中是否包含簽署者之 X.509 憑證的值。Gets a value that indicates whether the signer's X.509 certificate is contained in the document Package.

SignatureOriginRestricted

取得值,指示有其他人簽署封裝時,是否會使數位簽章失效。Gets a value that indicates whether the digital signature is invalidated if someone else signs the package.

SignatureType

取得可識別簽章類型的 URLURL 字串。Gets a URLURL string that identifies the signature type.

SignatureValue

取得簽章的加密雜湊值。Gets the encrypted hash value of the signature.

SignedDocumentSequence

取得已簽署文件序列的文件序列讀取器。Gets the document sequence reader for the signed document sequence.

SignerCertificate

取得簽署者的 X.509 憑證。Gets the X.509 certificate of the signer.

SigningTime

取得簽章建立時的日期與時間。Gets the date and time when the signature was created.

Methods

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)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
Verify()

根據 XPSXPS Package 內嵌的 X.509 憑證驗證文件數位簽章。Verifies the document digital signature against the X.509 certificate embedded in the XPSXPS Package.

Verify(X509Certificate)

根據指定的 X.509 憑證驗證文件數位簽章。Verifies the document digital signature against a specified X.509 certificate.

VerifyCertificate()

驗證內嵌在封裝中的 X.509 憑證。Verifies the X.509 certificate embedded in the package.

VerifyCertificate(X509Certificate)

驗證指定的 X.509 憑證。Verifies the specified X.509 certificate.

Applies to

See also