56 return $this->lockRevision ||
57 $this->lockStructure ||
68 if ($pValue !==
null) {
69 $this->lockRevision = $pValue;
82 if ($pValue !==
null) {
83 $this->lockStructure = $pValue;
96 if ($pValue !==
null) {
97 $this->lockWindows = $pValue;
110 if ($pValue !==
null) {
111 if (!$pAlreadyHashed) {
114 $this->revisionsPassword = $pValue;
127 if ($pValue !==
null) {
128 if (!$pAlreadyHashed) {
131 $this->workbookPassword = $pValue;
An exception for terminatinating execution or to throw for unit testing.
isSecurityEnabled()
Is some sort of document security enabled?
setLockStructure(?bool $pValue)
setLockRevision(?bool $pValue)
__construct()
Create a new Document Security instance.
setRevisionsPassword(?string $pValue, bool $pAlreadyHashed=false)
setWorkbookPassword(?string $pValue, bool $pAlreadyHashed=false)
setLockWindows(?bool $pValue)
static hashPassword(string $password, string $algorithm='', string $salt='', int $spinCount=10000)
Create a password hash from a given string by a specific algorithm.