PdfEncryptionDetails

Inheritance: java.lang.Object

public class PdfEncryptionDetails

Contains details for a pdf encryption.

Constructors

ConstructorDescription
PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)Initializes a new instance of the PdfEncryptionDetailsCore class.

Methods

MethodDescription
equals(Object arg0)
getClass()
getEncryptionAlgorithm()Returns the encryption mode.
getOwnerPassword()Returns the owner password.
getPermissions()Returns the permissions.
getUserPassword()Returns the user password.
hashCode()
notify()
notifyAll()
setEncryptionAlgorithm(PdfEncryptionAlgorithm value)Sets the encryption mode.
setOwnerPassword(String value)Sets the owner password.
setPermissions(int value)Sets the permissions.
setUserPassword(String value)Sets the user password.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)

public PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)

Initializes a new instance of the PdfEncryptionDetailsCore class.

Parameters:

ParameterTypeDescription
userPasswordjava.lang.StringThe user password.
ownerPasswordjava.lang.StringThe owner password.
permissionsintThe permissions.
encryptionAlgorithmPdfEncryptionAlgorithmThe encryption algorithm.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEncryptionAlgorithm()

public PdfEncryptionAlgorithm getEncryptionAlgorithm()

Returns the encryption mode.

Returns: PdfEncryptionAlgorithm - The encryption algorithm.

getOwnerPassword()

public String getOwnerPassword()

Returns the owner password.

Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document\u2019s passwords and access permissions.

Returns: java.lang.String - The owner password.

getPermissions()

public int getPermissions()

Returns the permissions.

Returns: int - The permissions.

getUserPassword()

public String getUserPassword()

Returns the user password.

Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document\u2019s encryption dictionary.

Returns: java.lang.String - The user password.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setEncryptionAlgorithm(PdfEncryptionAlgorithm value)

public void setEncryptionAlgorithm(PdfEncryptionAlgorithm value)

Sets the encryption mode.

Parameters:

ParameterTypeDescription
valuePdfEncryptionAlgorithmThe encryption algorithm.

setOwnerPassword(String value)

public void setOwnerPassword(String value)

Sets the owner password.

Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document\u2019s passwords and access permissions.

Parameters:

ParameterTypeDescription
valuejava.lang.StringThe owner password.

setPermissions(int value)

public void setPermissions(int value)

Sets the permissions.

Parameters:

ParameterTypeDescription
valueintThe permissions.

setUserPassword(String value)

public void setUserPassword(String value)

Sets the user password.

Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document\u2019s encryption dictionary.

Parameters:

ParameterTypeDescription
valuejava.lang.StringThe user password.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int