Click or drag to resize
Pdftools logo

Session Constructor


Namespace: PdfTools.Crypto.Providers.SwisscomSigSrv
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public Session(
	Uri url,
	HttpClientHandler httpClientHandler
)

Parameters

url  Uri

The service endpoint base URL.

Example: https://ais.swisscom.com

httpClientHandler  HttpClientHandler
The SSL configuration with the client certificate and trust store. Use SetClientCertificate(Stream, String) to set your SSL client certificate "clientcert.p12" of your Swisscom Signing Service account.
Exceptions
ExceptionCondition
HttpExceptionIf a network error occurs.
PermissionExceptionIf the SSL client certificate is rejected.
ArgumentNullExceptionif url is .
ArgumentNullExceptionif httpClientHandler is .
See Also