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 aPDFElectronicSealParamsinstance.
-
-
Constructor Summary
Constructors Constructor Description Builder(CertificateCredentials certificateCredentials, FieldOptions fieldOptions)Constructs aBuilderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFElectronicSealParamsbuild()Returns a newPDFElectronicSealParamsinstance built from the current state of this builder.PDFElectronicSealParams.BuilderwithAppearanceOptions(AppearanceOptions appearanceOptions)Sets theAppearanceOptionsfor the seal.PDFElectronicSealParams.BuilderwithDocumentLevelPermission(DocumentLevelPermission documentLevelPermission)Sets the document level permission for changes allowed after sealing.PDFElectronicSealParams.BuilderwithSignatureFormat(SignatureFormat signatureFormat)Sets theSignatureFormatfor the seal.PDFElectronicSealParams.BuilderwithTSAOptions(TSAOptions tsaOptions)Sets the time stamp authority options
-
-
-
Constructor Detail
-
Builder
public Builder(CertificateCredentials certificateCredentials, FieldOptions fieldOptions)
Constructs aBuilderinstance.- Parameters:
certificateCredentials-CertificateCredentialsto be used for applying electronic sealfieldOptions-FieldOptionsto be used for applying electronic seal
-
-
Method Detail
-
withAppearanceOptions
public PDFElectronicSealParams.Builder withAppearanceOptions(AppearanceOptions appearanceOptions)
Sets theAppearanceOptionsfor the seal.- Parameters:
appearanceOptions-AppearanceOptionsfor 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-DocumentLevelPermissiondocument level permission for changes allowed after sealing- Returns:
- this Builder instance to add any additional parameters
-
withSignatureFormat
public PDFElectronicSealParams.Builder withSignatureFormat(SignatureFormat signatureFormat)
Sets theSignatureFormatfor the seal.- Parameters:
signatureFormat-SignatureFormatto be used for applying electronic seal- Returns:
- this Builder instance to add any additional parameters
-
build
public PDFElectronicSealParams build()
Returns a newPDFElectronicSealParamsinstance built from the current state of this builder.- Returns:
- a new
PDFElectronicSealParamsinstance
-
-