org.jpedal.examples.simpleviewer.objects
Class SignData
java.lang.Object
org.jpedal.examples.simpleviewer.objects.SignData
public class SignData
- extends java.lang.Object
Models all the data you need in order to sign a Pdf document.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SignData
public SignData()
isKeystoreSign
public boolean isKeystoreSign()
- Returns:
- True if using a keystore file to sign.
setSignMode
public void setSignMode(boolean b)
- Parameters:
b - True if using a keystore file to sign document
setOutputFilePath
public void setOutputFilePath(java.lang.String path)
- Parameters:
path - Absolute path of the destination of the signed document
getOutputFilePath
public java.lang.String getOutputFilePath()
getOutput
public java.io.File getOutput()
setKeyFilePath
public void setKeyFilePath(java.lang.String path)
- Parameters:
path - Absolute path of .pfx file.
getKeyFilePath
public java.lang.String getKeyFilePath()
getKeyFile
public java.io.File getKeyFile()
setKeyStorePath
public void setKeyStorePath(java.lang.String path)
getKeyStorePath
public java.lang.String getKeyStorePath()
getKeystorePassword
public char[] getKeystorePassword()
setKeystorePassword
public void setKeystorePassword(char[] password)
getAlias
public java.lang.String getAlias()
setAlias
public void setAlias(java.lang.String alias)
getAliasPassword
public char[] getAliasPassword()
setAliasPassword
public void setAliasPassword(char[] password)
setKeyFilePassword
public void setKeyFilePassword(char[] password)
getKeyFilePassword
public char[] getKeyFilePassword()
canEncrypt
public boolean canEncrypt()
setEncrypt
public void setEncrypt(boolean b)
getReason
public java.lang.String getReason()
setReason
public void setReason(java.lang.String reason)
setCertifyMode
public void setCertifyMode(int certifyMode)
- Parameters:
certifyMode - Certify mode in accordance with PdfSignatureAppearance constants.
getCertifyMode
public int getCertifyMode()
setFlatten
public void setFlatten(boolean selected)
canFlatten
public boolean canFlatten()
setEncryptUserPass
public void setEncryptUserPass(char[] password)
getEncryptUserPass
public char[] getEncryptUserPass()
setEncryptOwnerPass
public void setEncryptOwnerPass(char[] password)
getEncryptOwnerPass
public char[] getEncryptOwnerPass()
setLocation
public void setLocation(java.lang.String location)
getLocation
public java.lang.String getLocation()
setEncryptPermissions
public void setEncryptPermissions(int permissions)
- Parameters:
permissions - In accordance with PdfWriter constants
getEncryptPermissions
public int getEncryptPermissions()
toString
public java.lang.String toString()
- This method is overidden to display messages about its this objects state.
Used after calling validate.
- Overrides:
toString in class java.lang.Object
validate
public boolean validate()
- Initialises and checks validity of files. This objects toString() method changes to
reflect failures in validation in order for the user to be informed.
- Returns:
- True if the files are valid.
isVisibleSignature
public boolean isVisibleSignature()
setVisibleSignature
public void setVisibleSignature(boolean b)
setRectangle
public void setRectangle(float x1,
float y1,
float x2,
float y2)
getRectangle
public float[] getRectangle()
- Returns:
- Four coordinates representing the visible signature area.
getSignPage
public int getSignPage()
- Returns:
- The page to sign
setSignPage
public void setSignPage(int page)
setAppend
public void setAppend(boolean b)
isAppendMode
public boolean isAppendMode()
JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support