SignatureKeySource
Specifies where the signing key and certificate come from.
from nutrient_sdk import SignatureKeySourceValues
| Name | Value | Description |
|---|---|---|
SignatureKeySource.PKCS12 | 0 | A PKCS#12 / PFX container supplied by path or stream. This is the default. |
SignatureKeySource.WINDOWS_CERTIFICATE_STORE | 1 | A certificate located in the operating-system certificate store by serial number (Windows only). |
SignatureKeySource.SMART_CARD | 2 | A smartcard-resident key located by certificate serial number and unlocked with a PIN (Windows only). |
SignatureKeySource.PKCS11 | 3 | A key held by a PKCS#11 (Cryptoki) module — hardware security modules, USB tokens and smartcards, on any platform. |
Usage Example
from nutrient_sdk import SignatureKeySource
# Access enum valuesvalue = SignatureKeySource.PKCS12print(f"Value: {value}") # Output: Value: SignatureKeySource.PKCS12print(f"Integer value: {value.value}") # Output: Integer value: 0