java.lang.Object
org.sejda.sambox.encryption.StandardSecurity
Object holding all the data necessary to specify how to encrypt the document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStandardSecurity(String ownerPassword, String userPassword, StandardSecurityEncryption encryption, boolean encryptMetadata) StandardSecurity(String ownerPassword, String userPassword, StandardSecurityEncryption encryption, AccessPermission permissions, boolean encryptMetadata) -
Method Summary
Modifier and TypeMethodDescription(package private) byte[](package private) byte[]the UTF-8 owner password bytes truncated to a length o 127(package private) byte[](package private) byte[]
-
Field Details
-
ownerPassword
-
userPassword
-
permissions
-
encryption
-
encryptMetadata
public final boolean encryptMetadata
-
-
Constructor Details
-
StandardSecurity
public StandardSecurity(String ownerPassword, String userPassword, StandardSecurityEncryption encryption, boolean encryptMetadata) -
StandardSecurity
public StandardSecurity(String ownerPassword, String userPassword, StandardSecurityEncryption encryption, AccessPermission permissions, boolean encryptMetadata)
-
-
Method Details
-
getUserPasswordUTF
byte[] getUserPasswordUTF()- Returns:
- the UTF-8 user password bytes truncated to a length o 127
-
getOwnerPasswordUTF
byte[] getOwnerPasswordUTF()the UTF-8 owner password bytes truncated to a length o 127 -
getUserPassword
byte[] getUserPassword() -
getOwnerPassword
byte[] getOwnerPassword()
-