pdftools_sdk.crypto.providers.pkcs11.device
Classes
|
The cryptographic device (HSM, USB token, etc.) |
- class pdftools_sdk.crypto.providers.pkcs11.device.Device(handle)[source]
Bases:
_NativeObject
The cryptographic device (HSM, USB token, etc.)
- create_session(password: str | None) Session [source]
Create a session
- Parameters:
password (Optional[str]) – If this parameter is not None, the session is created and
pdftools_sdk.crypto.providers.pkcs11.session.Session.login()
executed.- Return type:
- property description: str | None
Description of the device
- Returns:
Optional[str]
- property manufacturer_i_d: str | None
ID of the device’s manufacturer
- Returns:
Optional[str]