Pkcs11Interop  4.0.0
Public Member Functions | Protected Member Functions | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI40.Pkcs11 Class Reference

High level PKCS#11 wrapper More...

Inherits IDisposable.

Public Member Functions

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

Protected Member Functions

virtual void Dispose (bool disposing)
 Disposes object More...
 

Properties

bool Disposed [get]
 Flag indicating whether instance has been disposed More...
 
LowLevelAPI40.Pkcs11 LowLevelPkcs11 [get]
 Low level PKCS#11 wrapper. Use with caution! More...
 

Detailed Description

High level PKCS#11 wrapper

Constructor & Destructor Documentation

Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.Pkcs11 ( string  libraryPath,
AppType  appType 
)

Loads and initializes PCKS#11 library

Parameters
libraryPathLibrary name or path
appTypeType of application that will be using PKCS#11 library
Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.Pkcs11 ( string  libraryPath,
AppType  appType,
InitType  initType 
)

Loads and initializes PCKS#11 library

Parameters
libraryPathLibrary name or path
appTypeType of application that will be using PKCS#11 library
initTypeSource of PKCS#11 function pointers

Member Function Documentation

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

Disposes object

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

Disposes object

Parameters
disposingFlag indicating whether managed resources should be disposed
LibraryInfo Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.GetInfo ( )

Gets general information about loaded PKCS#11 library

Returns
General information about loaded PKCS#11 library
List<Slot> Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.GetSlotList ( SlotsType  slotsType)

Obtains a list of slots in the system

Parameters
slotsTypeType of slots to be obtained
Returns
List of available slots
void Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.WaitForSlotEvent ( WaitType  waitType,
out bool  eventOccured,
out uint  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

Property Documentation

bool Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.Disposed
get

Flag indicating whether instance has been disposed

LowLevelAPI40.Pkcs11 Net.Pkcs11Interop.HighLevelAPI40.Pkcs11.LowLevelPkcs11
get

Low level PKCS#11 wrapper. Use with caution!


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