public final class WordProcessingProtection extends Object
Encapsulates document protection options for the WordProcessing document, which is generated from HTML
Constructor and Description |
---|
WordProcessingProtection()
Parameterless constructor - all parameters have default values
|
WordProcessingProtection(byte protectionType,
String password)
Allows to set all parameters during class instantiation
|
Modifier and Type | Method and Description |
---|---|
static int |
convertToAsposeWords(byte protectionType) |
String |
getPassword()
The password to protect the document with.
|
byte |
getProtectionType()
Allows to set a protection type of the document.
|
void |
setPassword(String value)
The password to protect the document with.
|
void |
setProtectionType(byte value)
Allows to set a protection type of the document.
|
public WordProcessingProtection()
Parameterless constructor - all parameters have default values
public WordProcessingProtection(byte protectionType, String password)
Allows to set all parameters during class instantiation
protectionType
- Set the protection type of the documentpassword
- Set the protection passwordpublic static int convertToAsposeWords(byte protectionType)
public final String getPassword()
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
public final byte getProtectionType()
Allows to set a protection type of the document. By default is set to not protect the document at all.
public final void setPassword(String value)
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
public final void setProtectionType(byte value)
Allows to set a protection type of the document. By default is set to not protect the document at all.