Click or drag to resize
Pdftools logo

Session Constructor

Establish a session to the service


Namespace: PdfTools.Crypto.Providers.GlobalSignDss
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public Session(
	Uri url,
	string api_key,
	string api_secret,
	HttpClientHandler httpClientHandler
)

Parameters

url  Uri

The URL to the service endpoint.

Typically: https://emea.api.dss.globalsign.com:8443

api_key  String
Your account credentials’ key parameter for the login request.
api_secret  String
Your account credentials’ secret parameter for the login request.
httpClientHandler  HttpClientHandler
The SSL configuration with the client certificate and trust store. Use SetClientCertificateAndKey(Stream, Stream, String) to set your SSL client certificate "clientcert.crt" and private key "privateKey.key" of your GlobalSign account.
Exceptions
ExceptionCondition
HttpExceptionIf a network error occurs.
PermissionExceptionIf a login error occurs, e.g. because the client certificate is rejected or the credentials are incorrect.
RetryExceptionIf the login rate limit is exceeded.
ArgumentNullExceptionif url is .
ArgumentNullExceptionif api_key is .
ArgumentNullExceptionif api_secret is .
ArgumentNullExceptionif httpClientHandler is .
See Also