public abstract class ProtectionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FeatHeadr |
enhancedProtection |
protected Password |
password |
protected Protect |
protect |
| Constructor and Description |
|---|
ProtectionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(BiffRec record)
Adds a protection-related record to be managed.
|
boolean |
checkPassword(String guess)
Checks whether the given password matches the protection password.
|
void |
close()
clear out object references in prep for closing workbook
|
String |
getPassword()
Returns the entity's password verifier.
|
boolean |
getProtected()
Returns whether the entity is protected.
|
void |
setPassword(String pass)
Sets or removes the entity's protection password.
|
void |
setPasswordHashed(String pass)
Sets or removes the entity's protection password.
|
void |
setProtected(boolean value)
Sets whether the sheet is protected.
|
protected Protect protect
protected FeatHeadr enhancedProtection
protected Password password
public void addRecord(BiffRec record)
init()
method of the record where appropriate. It should probably never be
called anywhere else.record - the record to be managedpublic boolean getProtected()
public void setProtected(boolean value)
public String getPassword()
public void setPassword(String pass)
pass - the string password to set or null to remove the passwordpublic void setPasswordHashed(String pass)
pass - the pre-hashed string password to set
or null to remove the passwordpublic boolean checkPassword(String guess)
guess - the password to be checked against the stored hashpublic void close()
Copyright © 2002–2019 Starter Inc.. All rights reserved.