Click or drag to resize
Pdftools logo

SessionLogin Method

Log in user into the cryptographic device

Login is typically required to enable cryptographic operations. Furthermore, some of the device's objects such as certificates or private keys might only be visible when logged in.

Note that many devices are locked after a number of failed login attempts. Therefore, it is crucial to not retry this method using the same password after a failed attempt.


Namespace: PdfTools.Crypto.Providers.Pkcs11
Assembly: PdfTools (in PdfTools.dll) Version: 1.0.0
Syntax
C#
public void Login(
	string password
)

Parameters

password  String
The user's password
Exceptions
ExceptionCondition
PasswordExceptionIf the password is not correct
PermissionExceptionIf the password has been locked or is expired
NotSupportedExceptionIf the user has already logged in
See Also