com.aspose.cells.WriteProtection.html Maven / Gradle / Ivy
WriteProtection
com.aspose.cells
Class WriteProtection
java.lang.Object
com.aspose.cells.WriteProtection
public class WriteProtection
- extends java.lang.Object
Constructor Summary |
---|
WriteProtection()
|
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getAuthor() | |
void | setAuthor(java.lang.String) | |
Gets and sets the author. | ||
boolean | isWriteProtected() | |
Indicates whether this workbook is write protected. | ||
void | setPassword(java.lang.String) | |
Sets the protected password to modify the file. | ||
boolean | getRecommendReadOnly() | |
void | setRecommendReadOnly(boolean) | |
Indicates if the Read Only Recommended option is selected. |
Method Summary | ||
---|---|---|
boolean | validatePassword(java.lang.String password) | |
Returns true if the specified password is the same as the write-protection password the file was protected with. |
Constructor Detail |
---|
WriteProtection
public WriteProtection()
Property Getters/Setters Detail |
---|
getAuthor/setAuthor | |
public java.lang.String getAuthor() / public void setAuthor(java.lang.String value) |
Gets and sets the author.
getRecommendReadOnly/setRecommendReadOnly | |
public boolean getRecommendReadOnly() / public void setRecommendReadOnly(boolean value) |
Indicates if the Read Only Recommended option is selected.
isWriteProtected | |
public boolean isWriteProtected() |
Indicates whether this workbook is write protected.
setPassword | |
public void setPassword(java.lang.String value) |
Sets the protected password to modify the file.
Method Detail |
---|
validatePassword | |
public boolean validatePassword(java.lang.String password) |
Returns true if the specified password is the same as the write-protection password the file was protected with. - Parameters:
password
- The specified password.
- Returns:
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.