1 out of 1 rated this helpful - Rate this topic

Certificate Class (Microsoft.Office.InfoPath)

Represents the X.509 digital certificate that has been used to create a signature.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
public abstract class Certificate

Use the Certificate property of the Signature object to return a Certificate object.

This type or member can be accessed only from code running in forms opened in Microsoft Office InfoPath 2007.

In the following example, the Status property of the Certificate class is used to determine the status and other information about the digital certificate used for the first signature on the first set of signed data (or for the entire form, if the entire form is configured to be signed), and display that information in a message box.

public void CertificateStatusAlert()
{
    Certificate myCertificate = 
       this.SignedDataBlocks[0].Signatures[0].Certificate;
    MessageBox.Show("IssuedTo: " + myCertificate.IssuedTo + 
        "\nIssuedBy: " + myCertificate.IssuedBy + 
        "\nExpirationDate: " + myCertificate.ExpirationDate + 
        "\nStatus: " + myCertificate.Status.ToString());
}
System.Object
  Microsoft.Office.InfoPath.Certificate
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.