Some test text!

Search
Hamburger Icon

iOS / Guides / Digital Signature Validation

Digital Signature Validation on iOS

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

digital-signature-validation-dialog

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:

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

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.

digital-signature-validation-properties

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales