PTVerificationOptions

@interface PTVerificationOptions : NSObject

The class VerificationOptions. Options pertaining to digital signature verification.

  • Constructs a set of options for digital signature verification.

    Declaration

    Objective-C

    - (instancetype)initWithImpl:(SWIGTYPE_TRN_VerificationOptions *)impl;

    Swift

    init!(impl: SWIGTYPE_TRN_VerificationOptions!)

    Parameters

    level

    – the general security level to use. Sets other security settings internally.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithLevel: (PTVerificationOptionsSecurityLevel)level;
  • Adds a certificate to the store of trusted certificates inside this options object.

    Declaration

    Objective-C

    - (void)AddTrustedCertificate:(NSData *)in_binary_DER_certificate;

    Swift

    func addTrustedCertificate(_ in_binary_DER_certificate: Data!)

    Parameters

    in_binary_DER_certificate

    – a buffer consisting of the data of a public key certificate encoded in binary DER format

  • Removes a certificate from the store of trusted certificates inside this options object.

    Declaration

    Objective-C

    - (void)RemoveTrustedCertificate:(NSData *)in_binary_DER_certificate;

    Swift

    func removeTrustedCertificate(_ in_binary_DER_certificate: Data!)

    Parameters

    in_binary_DER_certificate

    – a buffer consisting of the data of a public key certificate encoded in binary DER format

  • Sets a flag that can turn on or off the verification of the permissibility of any modifications made to the document after the signing of the digital signature being verified, in terms of the document and field permissions specified by the digital signature being verified.

    Declaration

    Objective-C

    - (void)EnableModificationVerification:(BOOL)in_on_or_off;

    Swift

    func enableModificationVerification(_ in_on_or_off: Bool)

    Parameters

    in_on_or_off

    – A boolean.

  • Sets a flag that can turn on or off the verification of the digest (cryptographic hash) component of a digital signature.

    Declaration

    Objective-C

    - (void)EnableDigestVerification:(BOOL)in_on_or_off;

    Swift

    func enableDigestVerification(_ in_on_or_off: Bool)

    Parameters

    in_on_or_off

    – A boolean.

  • Sets a flag that can turn on or off the verification of the trust status of a digital signature.

    Declaration

    Objective-C

    - (void)EnableTrustVerification:(BOOL)in_on_or_off;

    Swift

    func enableTrustVerification(_ in_on_or_off: Bool)

    Parameters

    in_on_or_off

    – A boolean.