|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.signaturesas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
Class that allows you to verify a certificate against one or more Certificate Revocation Lists. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.CRLValidator should be used instead.
This class consists of some methods that allow you to verify certificates. @deprecated starting from 9.0.0. com.itextpdf.signatures.validation.CertificateChainValidator should be used instead.
Superclass for a series of certificate verifiers that will typically be used in a chain. It wraps anotherCertificateVerifierthat is the next element in the chain of which theverify()method will be called. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.CertificateChainValidator should be used instead.
Retrievescertificatesthe certificate chain for the certificate thatcanshould be used to verify the signature onthethe CRL response usingCRLCRL Authority Information Access (AIA) Extension and known certificates. @param crl CRL response to retrieve issuer for. @return certificates retrieved from CRL AIA extension or an empty list in case certificates cannot be retrieved.
Verifies the signatures in an LTV document. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.SignatureValidator should be used instead.
Class that allows you to verify a certificate against one or more OCSP responses. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.OCSPValidator should be used instead.
Gets OCSP response.If required,
OCSPVerifierIBasicOCSPRespwas set,canthe response willbe checked usingbeOCSPValidatorcheckedclass. @param checkCert the certificate to check @param rootCert parent certificate @param url to get the verification @return IBasicOCSPResp an OCSP response wrapper
Get all X.509 certificates associated with this PKCS#7 object timestamp in no particular order.@return Certificate[] array
Creates a PdfSigner instance. Uses a java.io.ByteArrayOutputStream instead of a temporary file. @param reader PdfReader that reads the PDF file @param outputStream OutputStream to write the signed PDF file @param properties StampingProperties for the signing document. Note that encryption will be preserved regardless of what is set in properties.Class PdfSigner, constructor PdfSigner(PdfReader, OutputStream, String, StampingProperties)@throws IOException if some I/O problem occurs
Creates a PdfSigner instance. Uses a java.io.ByteArrayOutputStream instead of a temporary file. @param reader PdfReader that reads the PDF file @param outputStream OutputStream to write the signed PDF file @param path File to which the output is temporarily written @param properties StampingProperties for the signing document. Note that encryption will be preserved regardless of what is set in properties.Class PdfSigner, constructor PdfSigner(PdfReader, OutputStream, String, StampingProperties, SignerProperties)@throws IOException if some I/O problem occurs
Creates a PdfSigner instance. Uses a java.io.ByteArrayOutputStream instead of a temporary file. @param reader PdfReader that reads the PDF file @param outputStream OutputStream to write the signed PDF file @param path File to which the output is temporarily written @param stampingPropertiesClass PdfSigner, void close(PdfDictionary)StampingProperties for the signing document. Note that encryption will be preserved regardless of what is set in properties. @param signerProperties SignerProperties bundled properties to be used in signing operations.@throws IOException if some I/O problem occurs
This is the last method to be called when using external signatures. The general sequence is: preClose(), getDocumentBytes() and close().Class PdfSigner, PdfSigFieldLock createNewSignatureFormField(PdfAcroForm, String)update is a PdfDictionary that must have exactly the same keys as the ones provided in .preClose(Map). @param update a PdfDictionary with the key/value that will fill the holes defined in .preClose(Map)
@throws IOException on error
Creates new signature form field and adds it to the acroForm object. This method is called during the PdfSigner.preClose(Map) method if the signature field doesn't exist. @param acroForm PdfAcroForm object in which new signature field will be added @param name the name of theClass PdfSigner, InputStream getRangeStream()fieldfield @return signature field lockdictionary @throws IOException if font for the appearancedictionarycannot be created
Gets the document bytes that are hashable when using external signatures. The general sequence is: .preClose(Map), .getRangeStream() and .close(PdfDictionary). @returnClass PdfSigner, SignatureFieldAppearance getSignatureAppearance()Thethe InputStream of bytes to besigned.signed @throws IOException if some I/O problem occurs
Class PdfSigner, PdfSignature getSignatureDictionary()Provides accessReturns finalto asignature appearance object set by SignerProperties.setSignatureAppearance(SignatureFieldAppearance)Useanditcustomized using PdfSigner properties such as signing date, reason, location and signer name in case they weren't specified by the user,toor, if none was set, returns a new one with default appearance.To customize the appearance of the signature, create new SignatureFieldAppearance object and set it using SignerProperties.
setSignatureAppearance(SignatureFieldAppearance).
BeNoteaware:thatinIfcase you create new signature field (either use SignerProperties.setFieldNamewithwith thenamename that doesn't exist in the document or don't specify it at all)thenthen the signature is invisible by default.If you sign already existing field, then the signatureappearance
objectIt ismodifiedpossible tohave all theset other appearance related properties(pagesuch asnumPdfSignatureFormField.setReuseAppearance,rect etcPdfSignatureFormField.) consistent with thesetBackgroundLayerstate(n0oflayer)theandfieldPdfSignatureFormField.setSignatureAppearanceLayer (ifn2youlayer)customizedfor theappearance objectsignaturebefore thefield using .setFieldNamegetSignatureField().callPage,you'llrectanglehave to do itand other properties couldagain)beset up via SignerProperties. @returnPdfSignatureAppearanceSignatureFieldAppearance object.representing signature appearance
Returns the user made signature dictionary. This is the dictionary at the /V key of the signature field. @returnClass PdfSigner, ISignatureEvent getSignatureEvent()Thethe user made signature dictionary.
Getter for property signatureEvent. @returnClass PdfSigner, PdfSignatureFormField getSignatureField()Valuevalue of property signatureEvent.
Gets the signature field to be signed. The field can already be presented in the document. If the field is not presented in the document, it will be created.Class PdfSigner, IRandomAccessSource getUnderlyingSource()This field instance is expected to be used for setting appearance related properties such as PdfSignatureFormField.setReuseAppearance, PdfSignatureFormField.setBackgroundLayer and PdfSignatureFormField.setSignatureAppearanceLayer.
Note that for the new signature field SignerProperties.setPageRect(Rectangle) and SignerProperties.setPageNumber(int) should be called before this method. @return the PdfSignatureFormField instance
.
Returns the underlying source. @return the underlyingClass PdfSigner, int getWidgetPageNumber(PdfWidgetAnnotation)sourcesource @throws IOException if some I/O problem occurs
Get the page number associated to the provided widget. @param widget PdfWidgetAnnotation from which to extract the pageClass PdfSigner, Rectangle getWidgetRectangle(PdfWidgetAnnotation)numbernumber @return page number
Get the rectangle associated to the provided widget. @param widget PdfWidgetAnnotation to extract the rectangleClass PdfSigner, PdfDocument initDocument(PdfReader, PdfWriter, StampingProperties)fromfrom @return Rectangle
Initialize new PdfDocument instance by using provided parameters. @param reader PdfReader to be used as a reader in the new document @param writer PdfWriter to be used as a writer in the new document @param properties StampingProperties to be provided in the new document @return new PdfDocument instanceClass PdfSigner, PdfSigFieldLock populateExistingSignatureFormField(PdfAcroForm)
Populates already existing signature form field in the acroForm object. This method is called during the PdfSigner.preClose(Map) method if the signature field already exists. @param acroForm PdfAcroForm object in which the signature field will beClass PdfSigner, void preClose(Mappopulatedpopulated @return signature field lockdictionary @throws IOException if font for the appearancedictionarycannot be created
This is the first method to be called when using external signatures. The general sequence is: preClose(), getDocumentBytes() and close().Class PdfSigner, Collection
exclusionSizesmust contain at least thePdfName.CONTENTSkey with the size that it will take in the document. Note that due to the hex string coding this size should be byte_size*2+2. @param exclusionSizes Map with names and sizes to be excluded in the signature calculation. The key is a PdfName and the value an Integer. At least the /Contents must bepresentpresent @throws IOException on error
Processes a CRL list. @param cert a Certificate if one of the CrlList implementations needs to retrieve the CRL URL from it. @param crlList a list of CrlClientClass PdfSigner, void signDeferred(PdfDocument, String, OutputStream, IExternalSignatureContainer)implementationsimplementations @return a collection of CRL bytes that can be embedded in a
Signs a PDF where space was already reserved. @param document the original PDF @param fieldName the field to sign. It must be the last field @param outs the output PDF @param externalSignatureContainer the signature container doing the actual signing. Only the method ExternalSignatureContainer.sign isClass PdfSigner, void signDetached(IExternalDigest, IExternalSignature, Certificate[], Collectionusedused @throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signDetached(IExternalDigest, IExternalSignature, Certificate[], Collection
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param externalDigest an implementation that provides the digest @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADESCADES @throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signDetached(IExternalDigest, IExternalSignature, Certificate[], Collection
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param externalDigest an implementation that provides the digest @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADES @param signaturePolicy the signature policy (for EPES signatures)@throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signDetached(IExternalSignature, Certificate[], Collection
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param externalDigest an implementation that provides the digest @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADES @param signaturePolicy the signature policy (for EPES signatures)@throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signDetached(IExternalSignature, Certificate[], Collection
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADESCADES @throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signDetached(IExternalSignature, Certificate[], Collection
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADES @param signaturePolicy the signature policy (for EPES signatures)@throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Signs the document using the detached mode, CMS or CAdES equivalent.Class PdfSigner, void signExternalContainer(IExternalSignatureContainer, int)
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignature the interface providing the actual signing @param chain the certificate chain @param crlList the CRL list @param ocspClient the OCSP client @param tsaClient the Timestamp client @param estimatedSize the reserved size for the signature. It will be estimated if 0 @param sigtype Either Signature.CMS or Signature.CADES @param signaturePolicy the signature policy (for EPES signatures)@throws IOException if some I/O problem occurs @throws GeneralSecurityException if some problem during apply security algorithms occurs
Sign the document using an external container, usually a PKCS7. The signature is fully composed externally, iText will just put the container inside the document.Class PdfSigner, void timestamp(ITSAClient, String)
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param externalSignatureContainer the interface providing the actual signing @param estimatedSize the reserved size for thesignaturesignature @throws GeneralSecurityException if some problem during apply security algorithms occurs @throws IOException if some I/O problem occurs
Signs a document with a PAdES-LTV Timestamp. The document is closed at the end.
NOTE: This method closes the underlying pdf document. This means, that current instance of PdfSigner cannot be used after this method call. @param tsa the timestamp generator @param signatureName the signature name or null to have a name generatedautomaticallyautomatically @throws IOException if some I/O problem occurs or estimation for timestamp signature, provided with ITSAClient.getTokenSizeEstimate(), is not big enough @throws GeneralSecurityException if some problem during apply security algorithms occurs
Verifies a certificate against aKeyStorecontaining trusted anchors. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.CertificateChainValidator should be used instead.
Returns the document's certification level. For possible values seeClass SignerProperties, String getContact().setCertificationLevel(int)AccessPermissions. @returnTheAccessPermissions enumcertifiedwhichstatus.specifies which certification level shall be used
Returns the signing contact. @returnClass SignerProperties, PdfSigFieldLock getFieldLockDict()Thethe signing contact.
Getter for the field lock dictionary. @returnClass SignerProperties, String getFieldName()Fieldfield lock dictionary.
Gets the field name. @return the field nameClass SignerProperties, String getLocation().
Returns the signing location. @returnClass SignerProperties, int getPageNumber()Thethe signing location.
Provides the page number of the signature field which thisClass SignerProperties, Rectangle getPageRect()signaturesignature appearance is associated with. @returnThethe page number of the signature field which thissignaturesignature appearance is associated with.
Provides the rectangle that represent the position andClass SignerProperties, String getReason()dimensiondimension of the signature field in the page. @return the rectangle that represent the position anddimensiondimension of the signature field in the page
Returns the signing reason. @returnClass SignerProperties, SignatureFieldAppearance getSignatureAppearance()Thethe signing reason.
Gets signature fieldClass SignerProperties, String getSignatureCreator()layout element,appearancewhich customizesobject representing the appearance ofathe signature.To customize the signature appearance, create new SignatureFieldAppearance object and set it using SignerProperties.setSignatureAppearance(SignatureFieldAppearance). @return SignatureFieldAppearance
layoutobjectelement.representing signature appearance
Returns the signature creator. @returnClass SignerProperties, SignerProperties setCertificationLevel(AccessPermissions)Thethe signature creator.
Sets the document's certification level. @paramClass SignerProperties, SignerProperties setContact(String)certificationLevelaccessPermissionsa new certification level for a document. Possible values are: PdfSigner.NOT_CERTIFIED PdfSigner.CERTIFIED_NO_CHANGES_ALLOWED PdfSigner.CERTIFIED_FORM_FILLINGPdfSigner.CERTIFIED_FORM_FILLING_AND_ANNOTATIONSAccessPermissionsenum which specifies whichcertification level shall beused @return this instance to support fluent interface.
Sets the signing contact. @param contactClass SignerProperties, SignerProperties setFieldLockDict(PdfSigFieldLock)Aa new signingcontact.contact @return this instance to support fluent interface.
Setter for the field lock dictionary.Class SignerProperties, SignerProperties setFieldName(String)Be aware: if a signature is created on an existing signature field, then its /Lock dictionary takes the precedence (if it exists). @param fieldLock
Fieldfield lockdictionary.dictionary @return this instance to support fluent interface.
Sets the name indicating the field to be signed. The field can already be presented in the document but shall not be signed. If the field is not presented in the document, it will be created.Class SignerProperties, SignerProperties setLocation(String)Note that ID specified for SignatureFieldAppearance set by .setSignatureAppearance will be ignored and won't override the field name. @param fieldName
Thethe name indicating the field to besigned.signed @return this instance to support fluent interface.
Sets the signing location. @param locationClass SignerProperties, SignerProperties setPageNumber(int)Aa new signinglocation.location @return this instance to support fluent interface.
Sets the page number of the signature field which thisClass SignerProperties, SignerProperties setPageRect(Rectangle)signaturesignature appearance is associated with.Implicitly calls PdfSigner.setPageRect which considers page number to process the rectangle correctly.@param pageNumberThethe page number of the signature fieldwhichwhich this signature appearance is associatedwith.with @return this instance to support fluent interface.
Sets the rectangle that represent the position and dimensionClass SignerProperties, SignerProperties setReason(String)ofof the signature field in the page. @param pageRectThethe rectangle that represents the positionandand dimension of the signature field in thepage.page @return this instance to support fluent interface.
Sets the signing reason. @param reasonClass SignerProperties, SignerProperties setSignatureAppearance(SignatureFieldAppearance)Aa new signingreason.reason @return this instance to support fluent interface.
Sets the signature field layout element to customize the appearance of the signature.SignerID specified for SignatureFieldAppearance will be ignored and won'st override field name, so .IGNORED_ID could be used. To specify signature name use SignerProperties.setFieldName.Note that if SignedAppearanceText was set as the content (or part of the content) for SignatureFieldAppearance object, PdfSigner properties such
signas signing date, reason, location and signer name could be set automatically.In case you create new signature field (either using SignerProperties.setFieldName with the name that doesn't exist in the document or do
willnot specifying it at all) then the signature is invisible by default. Use SignerProperties.setPageRect(Rectangle) and SignerProperties.setPageNumber(int) to provide the rectangle that represent the position and dimension of the signature field in the specified page.It is possible to set other appearance related properties such as PdfSignatureFormField.setReuseAppearance, PdfSignatureFormField.setBackgroundLayer (n0 layer) and PdfSignatureFormField.setSignatureAppearanceLayer (n2 layer) for the signature field using PdfSigner.getSignatureField(). Page, rectangle and other properties could be also set up via SignerProperties. @param appearance the SignatureFieldAppearance layout element
.representing signature appearance @return this instance to support fluent interface.
An exception that is thrown when something is wrong with a certificate. @deprecated starting from 9.0.0 since all the classes that use this one are also deprecated in favour of new signature validation logic in the com.itextpdf.signatures.validation package.
Class that informs you that the verification of a Certificate succeeded using a specific CertificateVerifier and for a specific reason. @deprecated starting from 8.0.5. com.itextpdf.signatures.validation.v1.report.ReportItem should be used instead.