com.aspose.slides
Class ProtectionManager

java.lang.Object
  extended by com.aspose.slides.ProtectionManager
All Implemented Interfaces:
IProtectionManager

public final class ProtectionManager
extends java.lang.Object
implements 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()
           Gets the password which is used for presentation encryption.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncryptDocumentProperties

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

Specified by:
getEncryptDocumentProperties in interface IProtectionManager

setEncryptDocumentProperties

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

Specified by:
setEncryptDocumentProperties in interface IProtectionManager

isEncrypted

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

Specified by:
isEncrypted in interface IProtectionManager

isOnlyDocumentPropertiesLoaded

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

Specified by:
isOnlyDocumentPropertiesLoaded in interface IProtectionManager

isWriteProtected

public boolean isWriteProtected()

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

Specified by:
isWriteProtected in interface IProtectionManager

encrypt

public void encrypt(java.lang.String encryptionPassword)

Encrypts Presentation with specified password.

Specified by:
encrypt in interface IProtectionManager
Parameters:
encryptionPassword - The password.

removeEncryption

public void removeEncryption()

Removes the encryption.

Specified by:
removeEncryption in interface IProtectionManager

setWriteProtection

public void setWriteProtection(java.lang.String password)

Set write protection for this presentation with specified password.

Specified by:
setWriteProtection in interface IProtectionManager
Parameters:
password - The password.

removeWriteProtection

public void removeWriteProtection()

Removes write protection for this presentation.

Specified by:
removeWriteProtection in interface IProtectionManager

getEncryptionPassword

public java.lang.String getEncryptionPassword()

Gets the password which is used for presentation encryption. Read-only String.

Specified by:
getEncryptionPassword in interface IProtectionManager


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