C# Class Net.Pkcs11Interop.LowLevelAPI40.Pkcs11UriUtils

Utility class connecting PKCS#11 URI and Pkcs11Interop types
Afficher le fichier Open project: Pkcs11Interop/Pkcs11Interop

Méthodes publiques

Méthode Description
GetMatchingSlotList ( Pkcs11Uri pkcs11Uri, Pkcs11 pkcs11, bool tokenPresent, uint &slotList ) : CKR

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

GetObjectAttributes ( Pkcs11Uri pkcs11Uri, CK_ATTRIBUTE &objectAttributes ) : void

Returns list of object attributes defined by PKCS#11 URI

Matches ( Pkcs11Uri pkcs11Uri, CK_INFO libraryInfo ) : bool

Checks whether PKCS#11 library information matches PKCS#11 URI

Matches ( Pkcs11Uri pkcs11Uri, CK_SLOT_INFO slotInfo, uint slotId ) : bool

Checks whether slot information matches PKCS#11 URI

Matches ( Pkcs11Uri pkcs11Uri, CK_TOKEN_INFO tokenInfo ) : bool

Checks whether token information matches PKCS#11 URI

Matches ( Pkcs11Uri pkcs11Uri, List objectAttributes ) : bool

Checks whether object attributes match PKCS#11 URI

Method Details

GetMatchingSlotList() public static méthode

Obtains a list of all slots where token that matches PKCS#11 URI is present
public static GetMatchingSlotList ( Pkcs11Uri pkcs11Uri, Pkcs11 pkcs11, bool tokenPresent, uint &slotList ) : CKR
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
pkcs11 Pkcs11 Low level PKCS#11 wrapper
tokenPresent bool Flag indicating whether the list obtained includes only those slots with a token present (true), or all slots (false)
slotList uint List of slots matching PKCS#11 URI
Résultat CKR

GetObjectAttributes() public static méthode

Returns list of object attributes defined by PKCS#11 URI
public static GetObjectAttributes ( Pkcs11Uri pkcs11Uri, CK_ATTRIBUTE &objectAttributes ) : void
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
objectAttributes CK_ATTRIBUTE List of object attributes defined by PKCS#11 URI
Résultat void

Matches() public static méthode

Checks whether PKCS#11 library information matches PKCS#11 URI
public static Matches ( Pkcs11Uri pkcs11Uri, CK_INFO libraryInfo ) : bool
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
libraryInfo CK_INFO PKCS#11 library information
Résultat bool

Matches() public static méthode

Checks whether slot information matches PKCS#11 URI
public static Matches ( Pkcs11Uri pkcs11Uri, CK_SLOT_INFO slotInfo, uint slotId ) : bool
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
slotInfo CK_SLOT_INFO Slot information
slotId uint Slot identifier
Résultat bool

Matches() public static méthode

Checks whether token information matches PKCS#11 URI
public static Matches ( Pkcs11Uri pkcs11Uri, CK_TOKEN_INFO tokenInfo ) : bool
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
tokenInfo CK_TOKEN_INFO Token information
Résultat bool

Matches() public static méthode

Checks whether object attributes match PKCS#11 URI
public static Matches ( Pkcs11Uri pkcs11Uri, List objectAttributes ) : bool
pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11Uri PKCS#11 URI
objectAttributes List Object attributes
Résultat bool