/** * Enforce the Filling Forms protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to forms (w:edit="forms")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="forms" w:enforcement="1"/> * </pre> */ public void enforceFillingFormsProtection() { settings.setEnforcementEditValue(STDocProtect.FORMS); }
/** * Enforce the Tracked Changes protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to trackedChanges (w:edit="trackedChanges")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="trackedChanges" w:enforcement="1"/> * </pre> */ public void enforceTrackedChangesProtection() { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES); }
/** * Enforce the Comments protection.<br> * In the documentProtection tag inside settings.xml file,<br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to comments (w:edit="comments")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="comments" w:enforcement="1"/> * </pre> */ public void enforceCommentsProtection() { settings.setEnforcementEditValue(STDocProtect.COMMENTS); }
/** * Enforces the readOnly protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to readOnly (w:edit="readOnly")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="readOnly" w:enforcement="1"/> * </pre> */ public void enforceReadonlyProtection() { settings.setEnforcementEditValue(STDocProtect.READ_ONLY); }
/** * Enforce the Filling Forms protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="forms" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.FORMS, password, hashAlgo); }
/** * Enforces the readOnly protection with a password.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="readOnly" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.READ_ONLY, password, hashAlgo); }
/** * Enforce the Comments protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="comments" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceCommentsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.COMMENTS, password, hashAlgo); }
/** * Enforce the Tracked Changes protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="trackedChanges" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES, password, hashAlgo); }
/** * Enforces the readOnly protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to readOnly (w:edit="readOnly")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="readOnly" w:enforcement="1"/> * </pre> */ public void enforceReadonlyProtection() { settings.setEnforcementEditValue(STDocProtect.READ_ONLY); }
/** * Enforce the Filling Forms protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to forms (w:edit="forms")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="forms" w:enforcement="1"/> * </pre> */ public void enforceFillingFormsProtection() { settings.setEnforcementEditValue(STDocProtect.FORMS); }
/** * Enforces the readOnly protection.<br/> * In the documentProtection tag inside settings.xml file, <br/> * it sets the value of enforcement to "1" (w:enforcement="1") <br/> * and the value of edit to readOnly (w:edit="readOnly")<br/> * <br/> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="readOnly" w:enforcement="1"/> * </pre> */ public void enforceReadonlyProtection() { settings.setEnforcementEditValue(STDocProtect.READ_ONLY); }
/** * Enforce the Filling Forms protection.<br/> * In the documentProtection tag inside settings.xml file, <br/> * it sets the value of enforcement to "1" (w:enforcement="1") <br/> * and the value of edit to forms (w:edit="forms")<br/> * <br/> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="forms" w:enforcement="1"/> * </pre> */ public void enforceFillingFormsProtection() { settings.setEnforcementEditValue(STDocProtect.FORMS); }
/** * Enforce the Comments protection.<br/> * In the documentProtection tag inside settings.xml file,<br/> * it sets the value of enforcement to "1" (w:enforcement="1") <br/> * and the value of edit to comments (w:edit="comments")<br/> * <br/> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="comments" w:enforcement="1"/> * </pre> */ public void enforceCommentsProtection() { settings.setEnforcementEditValue(STDocProtect.COMMENTS); }
/** * Enforce the Comments protection.<br> * In the documentProtection tag inside settings.xml file,<br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to comments (w:edit="comments")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="comments" w:enforcement="1"/> * </pre> */ public void enforceCommentsProtection() { settings.setEnforcementEditValue(STDocProtect.COMMENTS); }
/** * Enforce the Tracked Changes protection.<br> * In the documentProtection tag inside settings.xml file, <br> * it sets the value of enforcement to "1" (w:enforcement="1") <br> * and the value of edit to trackedChanges (w:edit="trackedChanges")<br> * <br> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="trackedChanges" w:enforcement="1"/> * </pre> */ public void enforceTrackedChangesProtection() { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES); }
/** * Enforce the Tracked Changes protection.<br/> * In the documentProtection tag inside settings.xml file, <br/> * it sets the value of enforcement to "1" (w:enforcement="1") <br/> * and the value of edit to trackedChanges (w:edit="trackedChanges")<br/> * <br/> * sample snippet from settings.xml * <pre> * <w:settings ... > * <w:documentProtection w:edit="trackedChanges" w:enforcement="1"/> * </pre> */ public void enforceTrackedChangesProtection() { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES); }
/** * Enforce the Tracked Changes protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="trackedChanges" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES, password, hashAlgo); }
/** * Enforces the readOnly protection with a password.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="readOnly" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.READ_ONLY, password, hashAlgo); }
/** * Enforce the Comments protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="comments" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceCommentsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.COMMENTS, password, hashAlgo); }
/** * Enforce the Filling Forms protection.<br> * <br> * sample snippet from settings.xml * <pre> * <w:documentProtection w:edit="forms" w:enforcement="1" * w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" * w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" * w:cryptSpinCount="100000" w:hash="..." w:salt="...." * /> * </pre> * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. * if null, it will default default to sha1 */ public void enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.FORMS, password, hashAlgo); }