ProtectionManager

ProtectionManager class

Presentation password protection management.

checkWriteProtection

NameDescription
checkWriteProtection (String)Determines whether a presentation is a password protected to modify.

Parameters:

NameTypeDescription
passwordStringThe password for checking. 1. You should check the ( #isWriteProtected) property before calling this method. 2. When the password is null or empty, this method returns false.

Returns: boolean


encrypt

NameDescription
encrypt (String)Encrypts Presentation with specified password.

Parameters:

NameTypeDescription
encryptionPasswordStringThe password.

Returns: void


getEncryptDocumentProperties

NameDescription
getEncryptDocumentProperties ()This property makes sense, if presentation is password protected. If true then document properties is encrypted in presentation file. If false then document properties is public while presentation is encrypted. Read/write boolean.

Returns: boolean


getEncryptionPassword

NameDescription
getEncryptionPassword ()Gets the password which is used for presentation encryption. Read-only String.

Returns: String


getReadOnlyRecommended

NameDescription
getReadOnlyRecommended ()Gets or sets read-only recommendation. Read/write boolean.

Returns: boolean


isEncrypted

NameDescription
isEncrypted ()Gets a value indicating whether this instance is encrypted. Read-only boolean. Value: true if presentation was loaded from encrypted file or #encrypt(String) method was called ; otherwise, false.

Returns: boolean


isOnlyDocumentPropertiesLoaded

NameDescription
isOnlyDocumentPropertiesLoaded ()This property makes sense, if presentation file is password protected and document properties of this file are public. Value of true means that only document properties are loaded from an encrypted presentation file without use of password. Value of false means that entire encrypted presentation is loaded with use of right password, not only document properties are loaded. If presentation isn’t encrypted then property value is always false. If document properties of an encrypted file aren’t public then property value is always false. If Presentation.EncryptDocumentProperties is true than IsOnlyDocumentPropertiesLoaded property value is always false. Read-only boolean.

Returns: boolean


isWriteProtected

NameDescription
isWriteProtected ()Gets a value indicating whether this presentation is write protected. Read-only boolean.

Returns: boolean


removeEncryption

NameDescription
removeEncryption ()Removes the encryption.

Returns: void


removeWriteProtection

NameDescription
removeWriteProtection ()Removes write protection for this presentation.

Returns: void


setEncryptDocumentProperties

NameDescription
setEncryptDocumentProperties (boolean)This property makes sense, if presentation is password protected. If true then document properties is encrypted in presentation file. If false then document properties is public while presentation is encrypted. Read/write boolean.

Returns: void


setReadOnlyRecommended

NameDescription
setReadOnlyRecommended (boolean)Gets or sets read-only recommendation. Read/write boolean.

Returns: void


setWriteProtection

NameDescription
setWriteProtection (String)Set write protection for this presentation with specified password.

Parameters:

NameTypeDescription
passwordStringThe password.

Returns: void