<writeProtection>
(Write Protection)
This element specifies the write protection settings which have been applied to a WordprocessingML document. Write protection refers to a mode in which the document's contents cannot be edited, and the document cannot be resaved using the same file name. This setting is independent of the <documentProtection>
(§2.15.1.28) element, but like document protection, this setting is not intended as a security feature and may be ignored.
When present, the write protection shall result in one of two write protection behaviors:
If the
@password
attribute is present, or both attributes are omitted, then the application shall prompt for a password to exit write protection. If the supplied password does not match the hash value in this attribute, then write protection shall be enabled.If only the
@recommended
attribute is present, the application should provide user interface recommending that the user open this document in write protected state. If the user chooses to do so, the document shall be write protected, otherwise, it shall be opened fully editable.
If this element is omitted, then no write protection shall be applied to the current document.
<w:writeProtection w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" />
The <writeProtection>
element is present which specifies that write protection shall be turned on for this document. Since the @password
attribute is equal to 9oN7nWkCAyEZib1RomSJTjmPpCY=
the given WordprocessingML document can only be opened in a write protected state unless a password which matches the hash value 9oN7nWkCAyEZib1RomSJTjmPpCY=
is provided; in which case the file would be opened in an editable state. ]
Parent Elements |
---|
|
Attributes |
Description |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Specifies that a cryptographic algorithm which was not defined by this Office Open XML Standard has been used to generate the hash value stored with this document. This value, when present, shall be interpreted based on the value of the If this value is present, the <w:… w:algIdExt="0000000A" w:algIdExtSource="futureCryptography" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_LongHexNumber simple type (§2.18.57). |
||||||||||||||||||||||||||||||||
|
Specifies the application which defined the algorithm value specified by the <w:… w:algIdExt="0000000A" w:algIdExtSource="futureCryptography" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||||||||||||||||||||||
|
Specifies the class of cryptographic algorithm used by this protection. [: The initial version of this Office Open XML Standard only supports a single version - <w:… w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="1" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_AlgClass simple type (§2.18.1). |
||||||||||||||||||||||||||||||||
|
Specifies the specific cryptographic hashing algorithm which shall be used along with the The possible values for this attribute shall be interpreted as follows:
<w:… w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="1" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
||||||||||||||||||||||||||||||||
|
Specifies the type of cryptographic algorithm used by this protection. [: The initial version of this Office Open XML Standard only supports a single type - <w:… w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="1" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_AlgType simple type (§2.18.2). |
||||||||||||||||||||||||||||||||
|
Specifies the cryptographic provider which was used to generate the hash value stored in this document. If the user provided a cryptographic provider which was not the system's built-in provider, then that provider shall be stored here so it can subsequently be used if available. If this attribute is omitted, then the built-in cryptographic provider on the system shall be used. <w:… w:cryptProvider="Krista'sProvider" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||||||||||||||||||||||
|
Specifies the type of cryptographic provider to be used. <w:… w:cryptProviderType="rsaAES" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_CryptProv simple type (§2.18.14). |
||||||||||||||||||||||||||||||||
|
Specifies that a cryptographic provider type which was not defined by this Office Open XML Standard has been used to generate the hash value stored with this document. This value, when present, shall be interpreted based on the value of the If this value is present, the <w:… w:cryptProviderTypeExt="00A5691D" w:cryptProvideTypeExtSource="futureCryptography" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_LongHexNumber simple type (§2.18.57). |
||||||||||||||||||||||||||||||||
|
Specifies the application which defined the provider type value specified by the <w:… w:cryptProviderTypeExt="00A5691D" w:cryptProvideTypeExtSource="futureCryptography" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||||||||||||||||||||||
|
Specifies the number of times the hashing function shall be iteratively run (using each iteration's result as the input for the next iteration) when attempting to compare a user-supplied password with the value stored in the <w:… w:cryptSpinCount="100000" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
||||||||||||||||||||||||||||||||
|
Specifies the hash value for the password stored with this document. This value shall be compared with the resulting hash value after hashing the user-supplied password using the algorithm specified by the preceding attributes and parent XML element, and if the two values match, the protection shall no longer be enforced. If this value is omitted, then no password shall be associated with the protection, and it may be turned off without supplying any password. <w:… w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="1" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the XML Schema base64Binary datatype. |
||||||||||||||||||||||||||||||||
|
Specifies that applications should provide user interface recommending that the user open this document in write protected state. If the user chooses to do so, the document shall be write protected, otherwise, it shall be opened fully editable. If this attribute is omitted, then user interface recommending that the user open this document in write protected state should not be provided. If the [: Consider a WordprocessingML document which specifies that applications shall recommend write protection to this document. This requirement would be specified using the following WordprocessingML in the document settings: <w:writeProtection w:recommended="true" /> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
||||||||||||||||||||||||||||||||
|
Specifies the salt which was prepended to the user-supplied password before it was hashed using the hashing algorithm defined by the preceding attribute values to generate the If this attribute is omitted, then no salt shall be prepended to the user-supplied password before it is hashed for comparison with the stored hash value. <w:… w:salt="ZUdHa+D8F/OAKP3I7ssUnQ==" w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The The possible values for this attribute are defined by the XML Schema base64Binary datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_WriteProtection">
<attribute name="recommended" type="ST_OnOff" use="optional"/>
<attributeGroup ref="AG_Password"/>
</complexType>