Skip to main content

EncryptionOptions Class

Contains encryption options for a presentation.

Declaration

public class EncryptionOptions extends JavaObject

Remarks

Use the EncryptionOptions class to specify presentation encryption settings. Pass an EncryptionOptions object to the Presentation.encrypt() method to encrypt a presentation.

EncryptionOptions options = new EncryptionOptions("password", EncryptionType.STRONG);
presentation.encrypt(options);

Refer to the following help topic for additional information: Encrypt Presentations.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.JavaObject
EncryptionOptions

Constructors

EncryptionOptions(String password, EncryptionType type) Constructor

Initializes a new instance of the EncryptionOptions class with specified settings.

Declaration

public EncryptionOptions(String password, EncryptionType type)

Parameters

Name Type Description
password String

The password used to encrypt a presentation.

type EncryptionType

The encryption type.

EncryptionOptions(String password) Constructor

Initializes a new instance of the EncryptionOptions class with specified settings.

Declaration

public EncryptionOptions(String password)

Parameters

Name Type Description
password String

The password used to encrypt a presentation.

Remarks

The EncryptionOptions(password) constructor uses EncryptionType.STRONG encryption.

Methods

getPassword() Method

Returns the password used to encrypt a presentation.

Declaration

public String getPassword()

Returns

Type Description
String

The password used to encrypt a presentation.

getType() Method

Returns the encryption type used to encrypt a presentation.

Declaration

public EncryptionType getType()

Returns

Type Description
EncryptionType

The encryption type.

Remarks

Use the EncryptionType enumeration to specify the encryption type.

Value Description
STRONG Agile encryption for Open XML files. The encryption data uses an XML EncryptionInfo structure. The default encryption algorithm is AES-256, and the hashing algorithm is SHA-512. Binary files use RC4 CryptoAPI encryption.
COMPATIBLE Standard encryption for Open XML files. The encryption data uses a binary EncryptionInfo structure. The default encryption algorithm is AES-128, and the hashing algorithm is SHA-1.