DocumentSecurity

DocumentSecurity

Overview

DocumentSecurity is an enum in Aspose.Words FOSS for Java.

Used as a value for the BuiltInDocumentProperties.getSecurity() property.

Edition status of its 13 listed members (a property and its accessor methods are listed separately, overloads once): 13 not yet exercised by a verified example.

This enum declares 7 methods for DocumentSecurity objects in Java programs. Available methods include: fromName, fromNames, getName, getNames, getValues, toString, toStringSet. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
NONEThere are no security states specified by the property.
PASSWORD_PROTECTEDThe document is password protected.
READ_ONLY_RECOMMENDEDThe document to be opened read-only if possible, but the setting can be overridden.
READ_ONLY_ENFORCEDThe document to always be opened read-only.
READ_ONLY_EXCEPT_ANNOTATIONSThe document to always be opened read-only except for annotations.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of DocumentSecurity values.

Methods

SignatureDescription
getName(documentSecurity: int) → StringReturns JAVA_STYLE string representation of integer DocumentSecurity value.
getNames(documentSecurity: int) → Set<String>Returns string representation of integer DocumentSecurity value.
toString(documentSecurity: int) → StringReturns DotNetStyle string representation of integer DocumentSecurity value.
toStringSet(attr: int) → StringReturns DotNetStyle string representation of integer DocumentSecurity value.
fromName(documentSecurityName: String) → intReturns integer representation by DocumentSecurity name.
fromNames(documentSecurityNames: Set<String>) → intReturns flags integer representation by DocumentSecurity names.
getValues() → int[]Returns array of DocumentSecurity values.

See Also