XPS_SIGN_POLICY enumeration (xpsdigitalsignature.h)

A bitwise enumerator that indicates which, if any, optional parts of an XPS document are signed.

Syntax

typedef enum __MIDL___MIDL_itf_xpsdigitalsignature_0000_0000_0002 {
  XPS_SIGN_POLICY_NONE = 0,
  XPS_SIGN_POLICY_CORE_PROPERTIES = 0x1,
  XPS_SIGN_POLICY_SIGNATURE_RELATIONSHIPS = 0x2,
  XPS_SIGN_POLICY_PRINT_TICKET = 0x4,
  XPS_SIGN_POLICY_DISCARD_CONTROL = 0x8,
  XPS_SIGN_POLICY_ALL = 0xf
} XPS_SIGN_POLICY;

Constants

 
XPS_SIGN_POLICY_NONE
Value: 0
No optional parts or relationships are signed.
XPS_SIGN_POLICY_CORE_PROPERTIES
Value: 0x1
The CoreProperties part and the relationships that include it are signed.
XPS_SIGN_POLICY_SIGNATURE_RELATIONSHIPS
Value: 0x2
The signature relationships from the signature origin part are signed. Signature relationships are those relationships that have a digital signature relationship type.

Note  

Setting the XPS_SIGN_POLICY_SIGNATURE_RELATIONSHIPS flag will cause the signature relationships that start from the signature origin part to be signed. Signatures that are made with this flag set will break when new signatures are added later, because new signatures add new signature relationships.


 
XPS_SIGN_POLICY_PRINT_TICKET
Value: 0x4
The PrintTicket part and the relationships that include it are signed.
XPS_SIGN_POLICY_DISCARD_CONTROL
Value: 0x8
The DiscardControl part and the relationships that include it are signed.
XPS_SIGN_POLICY_ALL
Value: 0xf
The CoreProperties part and the relationships that include it, the digital signature relationship type from the SignatureOrigin part, the PrintTicket part and the relationships that include it, and the DiscardControl part and the relationships that include it are all signed.

Note  

Setting the XPS_SIGN_POLICY_ALL sets the XPS_SIGN_POLICY_SIGNATURE_RELATIONSHIPS flag, which will cause the signature relationships that start from the signature origin part to be signed. Signatures that are made with this flag set will break when new signatures are added later, because new signatures add new signature relationships.


 

Remarks

More than one value may be set.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header xpsdigitalsignature.h

See also

XML Paper Specification