SetaPDF_Signer_ValidationRelatedInfo_IntegrityResult Class representing an integrity result of a signature by its field name.
File: /SetaPDF v2/Signer/ValidationRelatedInfo/IntegrityResult.php
Class hierarchy
Summary
Constants
- STATUS_CADES_INVALID_SIGNING_CERTIFICATE
- STATUS_CADES_SIGNING_CERTIFICATE_V2_MISSING
- STATUS_DIFFERENT_SIGNED_DATA_VALUE
- STATUS_INVALID_CONTENTS_DATA
- STATUS_INVALID_DATA_IN_BYTE_RANGE
- STATUS_INVALID_SIGNATURE
- STATUS_INVALID_TIMESTAMP_MESSAGE_IMPRINT
- STATUS_INVALID_TIMESTAMP_SIGNATURE
- STATUS_MISSING_ENCAPSULATED_CONTENT
- STATUS_NOT_SIGNED
- STATUS_VALID
Constants
STATUS_CADES_INVALID_SIGNING_CERTIFICATE
Status if the signed attribut SigningCertificateV2 doesn't matched the signing certificate.
STATUS_CADES_SIGNING_CERTIFICATE_V2_MISSING
Status if the signature is a PAdES one but the required signed attribute (SigningCertificateV2) is missing.
STATUS_DIFFERENT_SIGNED_DATA_VALUE
Status if the signature data of the field is different to the one resolved by the byte range.
STATUS_INVALID_CONTENTS_DATA
Status if the Contents entry has invalid data.
STATUS_INVALID_DATA_IN_BYTE_RANGE
Status if the signature data resolved by the byte range has more data then a single signature value.
STATUS_INVALID_SIGNATURE
Status if a signature could not be validated.
STATUS_INVALID_TIMESTAMP_MESSAGE_IMPRINT
Status if the message imprint of the timestamp signature doesn't match the data of the document.
STATUS_INVALID_TIMESTAMP_SIGNATURE
Status if a timestamp signature could not be validated.
STATUS_MISSING_ENCAPSULATED_CONTENT
Status if the eContent element is missing but required.
STATUS_NOT_SIGNED
Status for a field that is not signed.
STATUS_VALID
Status for a valid signature.
Properties
$_field
The signature field.
$_signedData
The signed data object.
$_status
The status.
Static Methods
create()
Create an integrity result instance.
Parameters
- $document : SetaPDF_Core_Document
- $fieldName : string
The signature field name in UTF-8 encoding
Exceptions
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
Methods
getField()
Get the signature field instance.
getSignedData()
Get access to the signed data object of the signature field.