Package com.pdftools.toolbox.pdf
Class Encryption
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.Encryption
-
public class Encryption extends NativeObject
-
-
Constructor Summary
Constructors Constructor Description Encryption(java.lang.String userPassword, java.lang.String ownerPassword, java.util.EnumSet<Permission> permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOwnerPassword()
java.util.EnumSet<Permission>
getPermissions()
java.lang.String
getUserPassword()
void
setOwnerPassword(java.lang.String value)
void
setPermissions(java.util.EnumSet<Permission> value)
void
setUserPassword(java.lang.String value)
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Constructor Detail
-
Encryption
public Encryption(java.lang.String userPassword, java.lang.String ownerPassword, java.util.EnumSet<Permission> permissions)
- Parameters:
userPassword
-ownerPassword
-permissions
-- Throws:
java.lang.IllegalArgumentException
- ifpermissions
isnull
-
-
Method Detail
-
getUserPassword
public java.lang.String getUserPassword()
-
setUserPassword
public void setUserPassword(java.lang.String value)
-
getOwnerPassword
public java.lang.String getOwnerPassword()
-
setOwnerPassword
public void setOwnerPassword(java.lang.String value)
-
getPermissions
public java.util.EnumSet<Permission> getPermissions()
-
setPermissions
public void setPermissions(java.util.EnumSet<Permission> value)
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
-