public class SignatureOptions extends Object
SignatureOptions
contains parameters to be initialized when signing/certifying a pdf document.
First set appropriate operationType for sign or certify.
For certification all the values need to be set.
For Signing all the values need to be set except mdpPermissions and lockCertifyingField.public DocAssuranceServiceOperationTypes getOperationType()
public void setOperationType(DocAssuranceServiceOperationTypes operationType)
ECUOperationTypes
SIGN or CERTIFYpublic String getSignatureFieldName()
public void setSignatureFieldName(String signatureFieldName)
public CredentialContext getCredential()
public void setCredential(CredentialContext credential)
credential
- CredentialContext
containing the alias of the private certificate used for signing and
the ResourceResolver
to the user's keystorepublic HashAlgorithm getAlgo()
public void setAlgo(HashAlgorithm algo)
algo
- Algorithm for used for content digestingpublic String getReason()
public void setReason(String reason)
reason
- Text Reason for certificationpublic String getLocation()
public void setLocation(String location)
location
- Text Location of the place of certificationpublic String getContactInfo()
public void setContactInfo(String contactInfo)
contactInfo
- Text contact info of the certifierpublic String getLegalAttestation()
public void setLegalAttestation(String legalAttestation)
legalAttestation
- Text legal attestation for the certificationpublic MDPPermissions getMdpPermissions()
public void setMdpPermissions(MDPPermissions mdpPermissions)
mdpPermissions
- DocMDP Permissions associated with certification (changes allowed post certification)public PDFSignatureAppearenceOptions getSigAppearence()
public void setSigAppearence(PDFSignatureAppearenceOptions sigAppearence)
sigAppearence
- Appearance options for certification field appearancepublic boolean isLockCertifyingField()
public void setLockCertifyingField(boolean lockCertifyingField)
lockCertifyingField
- Flag to indicate if field being certified needs to be locked post certificationpublic DSSPreferences getDssPref()
public void setDssPref(DSSPreferences dssPref)
public static SignatureOptions getInstance()
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.