org.sejda.model.parameter
Class EncryptParameters

java.lang.Object
  extended by org.sejda.model.parameter.base.AbstractParameters
      extended by org.sejda.model.parameter.base.AbstractPdfOutputParameters
          extended by org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
              extended by org.sejda.model.parameter.EncryptParameters
All Implemented Interfaces:
MultipleOutputTaskParameters, MultiplePdfSourceTaskParameters, TaskParameters

public class EncryptParameters
extends MultiplePdfSourceMultipleOutputParameters

Parameters for the encrypt manipulation. Accepts a list of PdfSource that will be encrypted using the same parameters.

Author:
Andrea Vacondio

Constructor Summary
EncryptParameters(PdfEncryption encryptionAlgorithm)
           
 
Method Summary
 void addPermission(PdfAccessPermission permission)
          adds a permission to the permissions set
 void addSource(PdfSource<?> input)
          adds the input source to the source list.
 void clearPermissions()
          clear permissions
 boolean equals(Object other)
           
 PdfEncryption getEncryptionAlgorithm()
           
 PdfVersion getMinRequiredPdfVersion()
           
 String getOwnerPassword()
           
 Set<PdfAccessPermission> getPermissions()
           
 List<PdfSource<?>> getSourceList()
           
 String getUserPassword()
           
 int hashCode()
           
 void setOwnerPassword(String ownerPassword)
           
 void setUserPassword(String userPassword)
           
 
Methods inherited from class org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
getOutput, getOutputPrefix, setOutput, setOutputPrefix
 
Methods inherited from class org.sejda.model.parameter.base.AbstractPdfOutputParameters
getVersion, isCompressXref, setCompress, setVersion
 
Methods inherited from class org.sejda.model.parameter.base.AbstractParameters
isOverwrite, setOverwrite
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
isOverwrite
 

Constructor Detail

EncryptParameters

public EncryptParameters(PdfEncryption encryptionAlgorithm)
Method Detail

getOwnerPassword

public String getOwnerPassword()

setOwnerPassword

public void setOwnerPassword(String ownerPassword)

getUserPassword

public String getUserPassword()

setUserPassword

public void setUserPassword(String userPassword)

getEncryptionAlgorithm

public PdfEncryption getEncryptionAlgorithm()

getPermissions

public Set<PdfAccessPermission> getPermissions()
Returns:
an unmodifiable view of the permissions

clearPermissions

public void clearPermissions()
clear permissions


addPermission

public void addPermission(PdfAccessPermission permission)
adds a permission to the permissions set

Parameters:
permission -

getMinRequiredPdfVersion

public PdfVersion getMinRequiredPdfVersion()
Overrides:
getMinRequiredPdfVersion in class AbstractPdfOutputParameters
Returns:
the min output pdf version required by this parameter object depending on its attributes. Each extending class is responsible for the implementation of this method.

hashCode

public int hashCode()
Overrides:
hashCode in class MultiplePdfSourceMultipleOutputParameters

equals

public boolean equals(Object other)
Overrides:
equals in class MultiplePdfSourceMultipleOutputParameters

addSource

public void addSource(PdfSource<?> input)
adds the input source to the source list.

Specified by:
addSource in interface MultiplePdfSourceTaskParameters
Parameters:
input -

getSourceList

public List<PdfSource<?>> getSourceList()
Specified by:
getSourceList in interface MultiplePdfSourceTaskParameters
Returns:
an unmodifiable view of the source list


Copyright © 2013 sejda. All Rights Reserved.