Pkcs11Interop  5.1.2
Static Public Member Functions | List of all members
Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils Class Reference

Utility class connecting PKCS#11 URI and Pkcs11Interop types More...

Static Public Member Functions

static bool Matches (Pkcs11Uri pkcs11Uri, CK_INFO libraryInfo)
 Checks whether PKCS#11 library information matches PKCS#11 URI More...
 
static bool Matches (Pkcs11Uri pkcs11Uri, CK_SLOT_INFO slotInfo, NativeULong? slotId)
 Checks whether slot information matches PKCS#11 URI More...
 
static bool Matches (Pkcs11Uri pkcs11Uri, CK_TOKEN_INFO tokenInfo)
 Checks whether token information matches PKCS#11 URI More...
 
static bool Matches (Pkcs11Uri pkcs11Uri, List< CK_ATTRIBUTE > objectAttributes)
 Checks whether object attributes match PKCS#11 URI More...
 
static CKR GetMatchingSlotList (Pkcs11Uri pkcs11Uri, Pkcs11Library pkcs11Library, bool tokenPresent, out NativeULong[] slotList)
 Obtains a list of all slots where token that matches PKCS#11 URI is present More...
 
static void GetObjectAttributes (Pkcs11Uri pkcs11Uri, out CK_ATTRIBUTE[] objectAttributes)
 Returns list of object attributes defined by PKCS#11 URI More...
 

Detailed Description

Utility class connecting PKCS#11 URI and Pkcs11Interop types

Member Function Documentation

◆ 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
pkcs11UriPKCS#11 URI
pkcs11LibraryLow level PKCS#11 wrapper
tokenPresentFlag indicating whether the list obtained includes only those slots with a token present (true), or all slots (false)
slotListList 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
pkcs11UriPKCS#11 URI
objectAttributesList 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
pkcs11UriPKCS#11 URI
libraryInfoPKCS#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
pkcs11UriPKCS#11 URI
slotInfoSlot information
slotIdSlot 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
pkcs11UriPKCS#11 URI
tokenInfoToken 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
pkcs11UriPKCS#11 URI
objectAttributesObject attributes
Returns
True if object attributes match PKCS#11 URI

The documentation for this class was generated from the following file: