|
Timestamp the data To timestamp the data signature using X.509 certificates and PKCS#7 format you need to use Timestamp method of TElMessageSigner component. Before calling the method, specify the client to connect to TSA by assigning an instance TElFileTSPClient or TElHTTPTSPClient to the TSPClient property. The timestamp request is created automatically by TElMessageSigner when you sign the data. All you have to do is create an event handler for OnTimestampNeeded event of TElFileTSPClient class, if you want to use custom timestamp processing, or set URL property of TElHTTPTSPClient class if you want to use HTTP(S) transport. Also you need to assign the transport (an instance of TElHTTPSClient) to HTTPClient property of TElHTTPTSPClient class. If you need to setup connection properties (such as username/password), do this via the TElHTTPSClient.RequestParameters property. By default, if timestamping fails, no signing will be done. This behaviour can be modified by turning on the soIgnoreTimestampFailure option in SigningOptions property of TElMessageSigner component. |

