Pkcs11Interop  4.0.0
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, ulong?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, Pkcs11 pkcs11, bool tokenPresent, out ulong[] 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

static CKR Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.GetMatchingSlotList ( Pkcs11Uri  pkcs11Uri,
Pkcs11  pkcs11,
bool  tokenPresent,
out ulong[]  slotList 
)
static

Obtains a list of all slots where token that matches PKCS#11 URI is present

Parameters
pkcs11UriPKCS#11 URI
pkcs11Low 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
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
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
static bool Net.Pkcs11Interop.LowLevelAPI80.Pkcs11UriUtils.Matches ( Pkcs11Uri  pkcs11Uri,
CK_SLOT_INFO  slotInfo,
ulong?  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
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
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: