Class StandardSecurity

java.lang.Object
org.sejda.sambox.encryption.StandardSecurity

public class StandardSecurity extends Object
Object holding all the data necessary to specify how to encrypt the document.
  • Field Details

    • ownerPassword

      public final String ownerPassword
    • userPassword

      public final String userPassword
    • permissions

      public final AccessPermission permissions
    • encryption

      public final StandardSecurityEncryption encryption
    • encryptMetadata

      public final boolean encryptMetadata
  • Constructor Details

  • 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()