iText 9.0.0 API
|
Verifies the signatures in an LTV document. More...
Public Member Functions |
|
LtvVerifier (PdfDocument document) | |
Creates a VerificationData object for a PdfReader More... |
|
virtual void | SetVerifier (CertificateVerifier verifier) |
Sets an extra verifier. More... |
|
virtual void | SetCertificateOption (LtvVerification.CertificateOption option) |
Sets the certificate option. More... |
|
virtual void | SetVerifyRootCertificate (bool verifyRootCertificate) |
Set the verifyRootCertificate to false if you can't verify the root certificate. More... |
|
virtual void | SetEventCountingMetaInfo (IMetaInfo metaInfo) |
Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during iText.Kernel.Pdf.PdfDocument creation. More... |
|
virtual IList< VerificationOK > | Verify (IList< VerificationOK > result) |
Verifies all the document-level timestamps and all the signatures in the document. More... |
|
virtual IList< VerificationOK > | VerifySignature () |
Verifies a document level timestamp. More... |
|
virtual void | VerifyChain (IX509Certificate[] chain) |
Checks the certificates in a certificate chain: are they valid on a specific date, and do they chain up correctly? More... |
|
override IList< VerificationOK > | Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate) |
Verifies certificates against a list of CRLs and OCSP responses. More... |
|
virtual void | SwitchToPreviousRevision () |
Switches to the previous revision. More... |
|
virtual IList< IX509Crl > | GetCRLsFromDSS () |
Gets a list of X509CRL objects from a Document Security Store. More... |
|
virtual IList< IBasicOcspResponse > | GetOCSPResponsesFromDSS () |
Gets OCSP responses from the Document Security Store. More... |
|
Public Member Functions inherited from iText.Signatures.RootStoreVerifier | |
RootStoreVerifier (CertificateVerifier verifier) | |
Creates a RootStoreVerifier in a chain of verifiers. More... |
|
virtual void | SetRootStore (List< IX509Certificate > keyStore) |
Sets the Key Store against which a certificate can be checked. More... |
|
override IList< VerificationOK > | Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate) |
Verifies a single certificate against a key store (if present). More... |
|
Public Member Functions inherited from iText.Signatures.CertificateVerifier | |
CertificateVerifier (iText.Signatures.CertificateVerifier verifier) | |
Creates the final CertificateVerifier in a chain of verifiers. More... |
|
virtual void | SetOnlineCheckingAllowed (bool onlineCheckingAllowed) |
Decide whether or not online checking is allowed. More... |
|
Package Functions |
|
virtual void | InitLtvVerifier (PdfDocument document) |
Initialize LtvVerifier object by using provided document. More... |
|
virtual PdfPKCS7 | CoversWholeDocument () |
Checks if the signature covers the whole document and throws an exception if the document was altered More... |
|
Package Attributes |
|
LtvVerification.CertificateOption | option = LtvVerification.CertificateOption.SIGNING_CERTIFICATE |
Option to specify level of verification; signing certificate only or the entire chain. More... |
|
bool | verifyRootCertificate = true |
Verify root. More... |
|
PdfDocument | document |
A document object for the revision that is being verified. More... |
|
PdfAcroForm | acroForm |
The fields in the revision that is being verified. More... |
|
DateTime | signDate |
The date the revision was signed, or null for the highest revision. More... |
|
String | signatureName |
The signature that covers the revision. More... |
|
PdfPKCS7 | pkcs7 |
The PdfPKCS7 object for the signature. More... |
|
bool | latestRevision = true |
Indicates if we're working with the latest revision. More... |
|
PdfDictionary | dss |
The document security store for the revision that is being verified More... |
|
IMetaInfo | metaInfo |
The meta info More... |
|
Package Attributes inherited from iText.Signatures.RootStoreVerifier | |
List< IX509Certificate > | rootStore = null |
A key store against which certificates can be verified. More... |
|
Package Attributes inherited from iText.Signatures.CertificateVerifier | |
iText.Signatures.CertificateVerifier | verifier |
The previous CertificateVerifier in the chain of verifiers. More... |
|
bool | onlineCheckingAllowed = true |
Indicates if going online to verify a certificate is allowed. More... |
|
Static Package Attributes |
|
static readonly ILogger | LOGGER |
The Logger instance More... |
|
Verifies the signatures in an LTV document.
|
inline |
Creates a VerificationData object for a PdfReader
document | The document we want to verify. |
|
inlinepackagevirtual |
Checks if the signature covers the whole document and throws an exception if the document was altered
|
inlinevirtual |
Gets a list of X509CRL objects from a Document Security Store.
|
inlinevirtual |
Gets OCSP responses from the Document Security Store.
|
inlinepackagevirtual |
Initialize LtvVerifier object by using provided document.
Initialize LtvVerifier object by using provided document. This method reads all the existing signatures and mathematically validates the last one.
document |
iText.Kernel.Pdf.PdfDocument instance to be verified
|
inlinevirtual |
Sets the certificate option.
option | Either CertificateOption.SIGNING_CERTIFICATE (default) or CertificateOption.WHOLE_CHAIN |
|
inlinevirtual |
Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during iText.Kernel.Pdf.PdfDocument creation.
metaInfo | meta info to set |
|
inlinevirtual |
Sets an extra verifier.
verifier | the verifier to set |
|
inlinevirtual |
Set the verifyRootCertificate to false if you can't verify the root certificate.
verifyRootCertificate | false if you can't verify the root certificate, otherwise true |
|
inlinevirtual |
Switches to the previous revision.
|
inlinevirtual |
Verifies all the document-level timestamps and all the signatures in the document.
result | a list of VerificationOK objects |
|
inlinevirtual |
Verifies certificates against a list of CRLs and OCSP responses.
signCert | the signing certificate |
issuerCert | the issuer's certificate |
VerificationOK
objects. The list will be empty if the certificate couldn't be verified.
Reimplemented from iText.Signatures.CertificateVerifier.
|
inlinevirtual |
Checks the certificates in a certificate chain: are they valid on a specific date, and do they chain up correctly?
chain | the certificate chain |
|
inlinevirtual |
Verifies a document level timestamp.
|
package |
The fields in the revision that is being verified.
|
package |
A document object for the revision that is being verified.
|
package |
The document security store for the revision that is being verified
|
package |
Indicates if we're working with the latest revision.
|
staticpackage |
The Logger instance
|
package |
The meta info
|
package |
Option to specify level of verification; signing certificate only or the entire chain.
|
package |
The signature that covers the revision.
|
package |
The date the revision was signed, or null
for the highest revision.
|
package |
Verify root.