Class PDFElectronicSealParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.electronicseal.PDFElectronicSealParams.Builder
-
- Enclosing class:
- PDFElectronicSealParams
public static class PDFElectronicSealParams.Builder extends Object
Builds aPDFElectronicSealParams
instance.
-
-
Constructor Summary
Constructors Constructor Description Builder(CertificateCredentials certificateCredentials, FieldOptions fieldOptions)
Constructs aBuilder
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFElectronicSealParams
build()
Returns a newPDFElectronicSealParams
instance built from the current state of this builder.PDFElectronicSealParams.Builder
withAppearanceOptions(AppearanceOptions appearanceOptions)
Sets theAppearanceOptions
for the seal.PDFElectronicSealParams.Builder
withDocumentLevelPermission(DocumentLevelPermission documentLevelPermission)
Sets the document level permission for changes allowed after sealing.PDFElectronicSealParams.Builder
withSignatureFormat(SignatureFormat signatureFormat)
Sets theSignatureFormat
for the seal.PDFElectronicSealParams.Builder
withTSAOptions(TSAOptions tsaOptions)
Sets the time stamp authority options
-
-
-
Constructor Detail
-
Builder
public Builder(CertificateCredentials certificateCredentials, FieldOptions fieldOptions)
Constructs aBuilder
instance.- Parameters:
certificateCredentials
-CertificateCredentials
to be used for applying electronic sealfieldOptions
-FieldOptions
to be used for applying electronic seal
-
-
Method Detail
-
withAppearanceOptions
public PDFElectronicSealParams.Builder withAppearanceOptions(AppearanceOptions appearanceOptions)
Sets theAppearanceOptions
for the seal.- Parameters:
appearanceOptions
-AppearanceOptions
for the seal;- Returns:
- this Builder instance to add any additional parameters
-
withTSAOptions
public PDFElectronicSealParams.Builder withTSAOptions(TSAOptions tsaOptions)
Sets the time stamp authority options- Parameters:
tsaOptions
- the time stamp authority options to be set for applying electronic seal- Returns:
- this Builder instance to add any additional parameters
-
withDocumentLevelPermission
public PDFElectronicSealParams.Builder withDocumentLevelPermission(DocumentLevelPermission documentLevelPermission)
Sets the document level permission for changes allowed after sealing.- Parameters:
documentLevelPermission
-DocumentLevelPermission
document level permission for changes allowed after sealing- Returns:
- this Builder instance to add any additional parameters
-
withSignatureFormat
public PDFElectronicSealParams.Builder withSignatureFormat(SignatureFormat signatureFormat)
Sets theSignatureFormat
for the seal.- Parameters:
signatureFormat
-SignatureFormat
to be used for applying electronic seal- Returns:
- this Builder instance to add any additional parameters
-
build
public PDFElectronicSealParams build()
Returns a newPDFElectronicSealParams
instance built from the current state of this builder.- Returns:
- a new
PDFElectronicSealParams
instance
-
-