java.lang.Object | |
↳ | com.pspdfkit.signatures.DigitalSignatureInfo |
A digital signature stored inside a PDF document. This can be retrieved by calling getSignatureInfo()
. As a convenience to check the signing status of a
document, you can retrieve the DocumentSignatureInfo
by calling getDocumentSignatureInfoAsync()
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | DigitalSignatureInfo.BuildData | Build data dictionary of a software that created the digital signature. | |||||||||
class | DigitalSignatureInfo.Reference | Signature reference dictionary. | |||||||||
enum | DigitalSignatureInfo.ReferenceTransformMethod | List of possible transformation methods of a DigitalSignatureInfo.Reference . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BUILD_DATA_APP_KEY | Key of a DigitalSignatureInfo.BuildData entry for the PDF/SigQ Conformance Checker that was used to create
the signature. |
|||||||||
String | BUILD_DATA_FILTER_KEY | Key of a DigitalSignatureInfo.BuildData entry for the filter (i.e. |
|||||||||
String | BUILD_DATA_PUB_SEC_KEY | Key of a DigitalSignatureInfo.BuildData entry for the PubSec software that created the signature. |
|||||||||
String | BUILD_DATA_SIGQ_KEY | Key of a DigitalSignatureInfo.BuildData entry for the PDF/SigQ Specification and Conformance Checker that
was used to create the signature. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Map<String, DigitalSignatureInfo.BuildData> |
getBuildProperties()
Returns map of build properties.
| ||||||||||
List<Long> |
getByteRange()
Returns range of bytes this signature covers.
| ||||||||||
byte[] |
getContents()
Returns actual byte content of this signature in PDF file.
| ||||||||||
Calendar |
getCreationDate()
Returns date of creation of this signature in UTC timezone.
| ||||||||||
PdfDocument |
getDocument()
Returns the document with which the signature info is associated.
| ||||||||||
String |
getFilter()
Returns name of the filter used for signing.
| ||||||||||
String |
getName()
Returns name of the signer of this signature.
| ||||||||||
String |
getReason()
Returns reason for signing if the signer attached it.
| ||||||||||
List<DigitalSignatureInfo.Reference> | getReferences() | ||||||||||
String |
getSubFilter()
Returns name of the subfilter used for signing.
| ||||||||||
boolean |
isSigned()
Returns if form field is actually signed.
| ||||||||||
String | toString() | ||||||||||
DigitalSignatureValidationResult |
validate()
Checks the actual validity of the signature and returns
DigitalSignatureValidationResult . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Key of a DigitalSignatureInfo.BuildData
entry for the PDF/SigQ Conformance Checker that was used to create
the signature.
Key of a DigitalSignatureInfo.BuildData
entry for the filter (i.e. signature handler) that created the
signature.
Key of a DigitalSignatureInfo.BuildData
entry for the PubSec software that created the signature.
Key of a DigitalSignatureInfo.BuildData
entry for the PDF/SigQ Specification and Conformance Checker that
was used to create the signature.
Returns map of build properties. Keys will be one of BUILD_DATA_APP_KEY
, BUILD_DATA_FILTER_KEY
, BUILD_DATA_PUB_SEC_KEY
, BUILD_DATA_SIGQ_KEY
.
Returns range of bytes this signature covers. Signatures cover two parts of a document: The part before the signature and the part after the signature. This method will return four elements because of that: [offset_of_part_before_signature, length_of_part_before_signature, offset_of_part_after_signature, length_of_part_after_signature].
To fully verify the integrity of the document, the both parts and contents of this signature should span full size of the document.
Returns actual byte content of this signature in PDF file.
null
if there's actually no signature attached to
signature field.
Returns date of creation of this signature in UTC timezone. May be null
if no
creation date is stored in the signature.
null
.
Returns the document with which the signature info is associated.
PdfDocument
for this signature info.
Returns name of the filter used for signing.
null
.
Returns name of the signer of this signature. May be null
no name is stored in the
signature.
null
.
Returns reason for signing if the signer attached it.
null
.
Returns name of the subfilter used for signing.
null
.
Returns if form field is actually signed. Note that this DOES NOT check if the
signature is actually valid. Signature validity must be checked with validate()
call.
true
if this digital signature actually has contents.
Checks the actual validity of the signature and returns DigitalSignatureValidationResult
. This check will use certificates from SignatureManager
for validating certificate of this signature and will also check for
integrity issues. Note that validation may take a bit of time and shouldn't be run on the
main thread.
DigitalSignatureValidationResult
describing the validity of this signature.