PdfFileSignature.VerifySignature

VerifySignature(SignatureName)

Checks the validity of a signature.

public bool VerifySignature(SignatureName signName)
ParameterTypeDescription
signNameSignatureNameThe name of signature.

Return Value

Return a result of bool type.

See Also


VerifySignature(SignatureName, ValidationOptions, out ValidationResult)

Checks the validity of a signature.

public bool VerifySignature(SignatureName signName, ValidationOptions options, 
    out ValidationResult validationResult)
ParameterTypeDescription
signNameSignatureNameThe name of signature.
optionsValidationOptionsThe verification options.
validationResultValidationResult&The certificate validation result.

Return Value

Return a result of bool type.

Remarks

This method allows you to check the signing certificate using OCSP and/or CRL (certificate revocation list) for revocation. This method does not check the certificate chain and its validity, but it does check whether the end certificate has been revoked.

See Also


VerifySignature(SignatureName, X509Certificate2, ValidationOptions, out ValidationResult)

Checks the validity of a signature. Verification is performed using the external public key certificate.

public bool VerifySignature(SignatureName signName, X509Certificate2 publicKeyCertificate, 
    ValidationOptions options, out ValidationResult validationResult)
ParameterTypeDescription
signNameSignatureNameThe name of signature.
publicKeyCertificateX509Certificate2The public key certificate for verification.
optionsValidationOptionsThe verification options.
validationResultValidationResult&The certificate validation result.

Return Value

Return a result of bool type.

Remarks

This method allows you to check the signing certificate using OCSP and/or CRL (certificate revocation list) for revocation. This method does not check the certificate chain and its validity, but it does check whether the end certificate has been revoked.

See Also


VerifySignature(SignatureName, X509Certificate2)

Checks the validity of a signature. Verification is performed using the external public key certificate.

public bool VerifySignature(SignatureName signName, X509Certificate2 publicKeyCertificate)
ParameterTypeDescription
signNameSignatureNameThe name of signature.
publicKeyCertificateX509Certificate2The public key certificate for verification.

Return Value

Return a result of bool type.

See Also