Pkcs11Interop  5.1.2
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library Class Reference

High level PKCS#11 wrapper More...

Inherits Net.Pkcs11Interop.HighLevelAPI.IPkcs11Library.

Public Member Functions

 Pkcs11Library (Pkcs11InteropFactories factories, string libraryPath, AppType appType)
 Loads and initializes PCKS#11 library More...
 
 Pkcs11Library (Pkcs11InteropFactories factories, string libraryPath, AppType appType, InitType initType)
 Loads and initializes PCKS#11 library More...
 
ILibraryInfo GetInfo ()
 Gets general information about loaded PKCS#11 library More...
 
List< ISlotGetSlotList (SlotsType slotsType)
 Obtains a list of slots in the system More...
 
void WaitForSlotEvent (WaitType waitType, out bool eventOccured, out ulong slotId)
 Waits for a slot event, such as token insertion or token removal, to occur More...
 
void Dispose ()
 Disposes object More...
 

Protected Member Functions

 Pkcs11Library (Pkcs11InteropFactories factories, string libraryPath)
 Initializes new instance of Pkcs11Library class More...
 
void Initialize (AppType appType)
 Initializes PCKS#11 library More...
 
virtual void Dispose (bool disposing)
 Disposes object More...
 

Protected Attributes

bool _disposed = false
 Flag indicating whether instance has been disposed More...
 
Pkcs11InteropFactories _factories = null
 Factories to be used by Developer and Pkcs11Interop library More...
 
string _libraryPath = null
 Library name or path More...
 
LowLevelAPI40.Pkcs11Library _pkcs11Library = null
 Low level PKCS#11 wrapper More...
 

Properties

Pkcs11InteropFactories Factories [get]
 Factories to be used by Developer and Pkcs11Interop library More...
 
- Properties inherited from Net.Pkcs11Interop.HighLevelAPI.IPkcs11Library
Pkcs11InteropFactories Factories [get]
 Factories to be used by Developer and Pkcs11Interop library More...
 

Detailed Description

High level PKCS#11 wrapper

Constructor & Destructor Documentation

◆ Pkcs11Library() [1/3]

Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Pkcs11Library ( Pkcs11InteropFactories  factories,
string  libraryPath 
)
protected

Initializes new instance of Pkcs11Library class

Parameters
factoriesFactories to be used by Developer and Pkcs11Interop library
libraryPathLibrary name or path

◆ Pkcs11Library() [2/3]

Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Pkcs11Library ( Pkcs11InteropFactories  factories,
string  libraryPath,
AppType  appType 
)

Loads and initializes PCKS#11 library

Parameters
factoriesFactories to be used by Developer and Pkcs11Interop library
libraryPathLibrary name or path
appTypeType of application that will be using PKCS#11 library

◆ Pkcs11Library() [3/3]

Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Pkcs11Library ( Pkcs11InteropFactories  factories,
string  libraryPath,
AppType  appType,
InitType  initType 
)

Loads and initializes PCKS#11 library

Parameters
factoriesFactories to be used by Developer and Pkcs11Interop library
libraryPathLibrary name or path
appTypeType of application that will be using PKCS#11 library
initTypeSource of PKCS#11 function pointers

Member Function Documentation

◆ Dispose() [1/2]

void Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Dispose ( )

Disposes object

◆ Dispose() [2/2]

virtual void Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Dispose ( bool  disposing)
protectedvirtual

Disposes object

Parameters
disposingFlag indicating whether managed resources should be disposed

◆ GetInfo()

ILibraryInfo Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.GetInfo ( )

Gets general information about loaded PKCS#11 library

Returns
General information about loaded PKCS#11 library

Implements Net.Pkcs11Interop.HighLevelAPI.IPkcs11Library.

◆ GetSlotList()

List<ISlot> Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.GetSlotList ( SlotsType  slotsType)

Obtains a list of slots in the system

Parameters
slotsTypeType of slots to be obtained
Returns
List of available slots

Implements Net.Pkcs11Interop.HighLevelAPI.IPkcs11Library.

◆ Initialize()

void Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Initialize ( AppType  appType)
protected

Initializes PCKS#11 library

Parameters
appTypeType of application that will be using PKCS#11 library

◆ WaitForSlotEvent()

void Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.WaitForSlotEvent ( WaitType  waitType,
out bool  eventOccured,
out ulong  slotId 
)

Waits for a slot event, such as token insertion or token removal, to occur

Parameters
waitTypeType of waiting for a slot event
eventOccuredFlag indicating whether event occured
slotIdPKCS#11 handle of slot that the event occurred in

Implements Net.Pkcs11Interop.HighLevelAPI.IPkcs11Library.

Member Data Documentation

◆ _disposed

bool Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library._disposed = false
protected

Flag indicating whether instance has been disposed

◆ _factories

Pkcs11InteropFactories Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library._factories = null
protected

Factories to be used by Developer and Pkcs11Interop library

◆ _libraryPath

string Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library._libraryPath = null
protected

Library name or path

◆ _pkcs11Library

LowLevelAPI40.Pkcs11Library Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library._pkcs11Library = null
protected

Low level PKCS#11 wrapper

Property Documentation

◆ Factories

Pkcs11InteropFactories Net.Pkcs11Interop.HighLevelAPI40.Pkcs11Library.Factories
get

Factories to be used by Developer and Pkcs11Interop library


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