Utility class connecting PKCS#11 URI and Pkcs11Interop types
More...
Utility class connecting PKCS#11 URI and Pkcs11Interop types
◆ GetMatchingSlotList()
static CKR Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.GetMatchingSlotList |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
Pkcs11Library |
pkcs11Library, |
|
|
bool |
tokenPresent, |
|
|
out NativeULong [] |
slotList |
|
) |
| |
|
static |
Obtains a list of all slots where token that matches PKCS#11 URI is present
- Parameters
-
pkcs11Uri | PKCS#11 URI |
pkcs11Library | Low level PKCS#11 wrapper |
tokenPresent | Flag indicating whether the list obtained includes only those slots with a token present (true), or all slots (false) |
slotList | List of slots matching PKCS#11 URI |
- Returns
- CKR_OK if successful; any other value otherwise
◆ GetObjectAttributes()
static void Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.GetObjectAttributes |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
out CK_ATTRIBUTE [] |
objectAttributes |
|
) |
| |
|
static |
Returns list of object attributes defined by PKCS#11 URI
- Parameters
-
pkcs11Uri | PKCS#11 URI |
objectAttributes | List of object attributes defined by PKCS#11 URI |
◆ Matches() [1/4]
static bool Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.Matches |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
CK_INFO |
libraryInfo |
|
) |
| |
|
static |
Checks whether PKCS#11 library information matches PKCS#11 URI
- Parameters
-
pkcs11Uri | PKCS#11 URI |
libraryInfo | PKCS#11 library information |
- Returns
- True if PKCS#11 library information matches PKCS#11 URI
◆ Matches() [2/4]
static bool Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.Matches |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
CK_SLOT_INFO |
slotInfo, |
|
|
NativeULong? |
slotId |
|
) |
| |
|
static |
Checks whether slot information matches PKCS#11 URI
- Parameters
-
pkcs11Uri | PKCS#11 URI |
slotInfo | Slot information |
slotId | Slot identifier |
- Returns
- True if slot information matches PKCS#11 URI
◆ Matches() [3/4]
static bool Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.Matches |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
CK_TOKEN_INFO |
tokenInfo |
|
) |
| |
|
static |
Checks whether token information matches PKCS#11 URI
- Parameters
-
pkcs11Uri | PKCS#11 URI |
tokenInfo | Token information |
- Returns
- True if token information matches PKCS#11 URI
◆ Matches() [4/4]
static bool Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.Matches |
( |
Pkcs11Uri |
pkcs11Uri, |
|
|
List< CK_ATTRIBUTE > |
objectAttributes |
|
) |
| |
|
static |
Checks whether object attributes match PKCS#11 URI
- Parameters
-
pkcs11Uri | PKCS#11 URI |
objectAttributes | Object attributes |
- Returns
- True if object attributes match PKCS#11 URI
The documentation for this class was generated from the following file:
- LowLevelAPI80/Pkcs11UriUtils.cs