Digital Signature Validation on iOS

You can validate signatures in signed documents by verifying signers using the PTDigitalSignaturesViewController.

Apryse Docs Image

Adding a trusted certificate

Before you can verify signatures in `PTDigitalSignaturesViewController`, you will need to specify the path to your self-signed certificate via the `PTToolManager`'s `digitalSignaturesManager`: `toolManager.digitalSignaturesManager.rootCertificateFilePath = `

Validating digital signatures

To verify your digital signatures, you can show the DigitalSignatureListDialog using the code below:

1-(void)showDigitalSignatureListWithToolManager:(PTToolManager*)toolManager
2{
3 // toolManager must have a reference to the root certificate as described above
4 PTDigitalSignaturesViewController *digitalSignaturesViewController = [[PTDigitalSignaturesViewController allocOverridden] initWithToolManager:toolManager];
5 UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:digitalSignaturesViewController];
6 [self presentViewController:navigationController animated:YES completion:nil];
7}

Obj-C

1-(void)showDigitalSignatureListWithToolManager:(PTToolManager*)toolManager
2{
3 // toolManager must have a reference to the root certificate as described above
4 PTDigitalSignaturesViewController *digitalSignaturesViewController = [[PTDigitalSignaturesViewController allocOverridden] initWithToolManager:toolManager];
5 UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:digitalSignaturesViewController];
6 [self presentViewController:navigationController animated:YES completion:nil];
7}

In this list, you will be able to view digital signature information such as the signer's name, time of signing, signature validity, etc. Additionally you can tap on Signature Properties to view additional signature details.

Apryse Docs Image

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales