com.aspose.slides
Interface IProtectionManager

All Known Implementing Classes:
ProtectionManager

public interface IProtectionManager

Presentation password protestion management.


Method Summary
 void encrypt(java.lang.String encryptionPassword)
           Encrypts Presentation with specified password.
 boolean getEncryptDocumentProperties()
           This property makes sense, if presentation is password protected.
 java.lang.String getEncryptionPassword()
           Returns encryption password.
 boolean isEncrypted()
           Gets a value indicating whether this instance is encrypted.
 boolean isOnlyDocumentPropertiesLoaded()
           This property makes sense, if presentation file is password protected and document properties of this file are public.
 boolean isWriteProtected()
           Gets a value indicating whether this presentation is write protected.
 void removeEncryption()
           Removes the encryption.
 void removeWriteProtection()
           Removes write protection for this presentation.
 void setEncryptDocumentProperties(boolean value)
           This property makes sense, if presentation is password protected.
 void setWriteProtection(java.lang.String password)
           Set write protection for this presentation with specified password.
 

Method Detail

getEncryptDocumentProperties

boolean 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.


setEncryptDocumentProperties

void setEncryptDocumentProperties(boolean value)

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.


isEncrypted

boolean isEncrypted()

Gets a value indicating whether this instance is encrypted.

true if presentation was loaded from encrypted file or Encrypt(string) method was called ; otherwise, false. Read-only boolean.


isOnlyDocumentPropertiesLoaded

boolean 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 PresentationEx.EncryptDocumentProperties is true than IsOnlyDocumentPropertiesLoaded property value is always false. Read-only boolean.


isWriteProtected

boolean isWriteProtected()

Gets a value indicating whether this presentation is write protected. Read-only boolean.


getEncryptionPassword

java.lang.String getEncryptionPassword()

Returns encryption password. Read-only String.


encrypt

void encrypt(java.lang.String encryptionPassword)

Encrypts Presentation with specified password.

Parameters:
encryptionPassword - The password.

removeEncryption

void removeEncryption()

Removes the encryption.


setWriteProtection

void setWriteProtection(java.lang.String password)

Set write protection for this presentation with specified password.

Parameters:
password - The password.

removeWriteProtection

void removeWriteProtection()

Removes write protection for this presentation.



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.