C# 클래스 Net.Pkcs11Interop.HighLevelAPI41.Pkcs11

High level PKCS#11 wrapper
상속: IDisposable
파일 보기 프로젝트 열기: Pkcs11Interop/Pkcs11Interop 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes object

GetInfo ( ) : LibraryInfo

Gets general information about loaded PKCS#11 library

GetSlotList ( bool tokenPresent ) : List

Obtains a list of slots in the system

Pkcs11 ( string libraryPath, bool useOsLocking ) : System

Loads and initializes PCKS#11 library

Pkcs11 ( string libraryPath, bool useOsLocking, bool useGetFunctionList ) : System

Loads and initializes PCKS#11 library

WaitForSlotEvent ( bool dontBlock, bool &eventOccured, uint &slotId ) : void

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes object

메소드 상세

Dispose() 공개 메소드

Disposes object
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes object
protected Dispose ( bool disposing ) : void
disposing bool Flag indicating whether managed resources should be disposed
리턴 void

GetInfo() 공개 메소드

Gets general information about loaded PKCS#11 library
public GetInfo ( ) : LibraryInfo
리턴 LibraryInfo

GetSlotList() 공개 메소드

Obtains a list of slots in the system
public GetSlotList ( bool tokenPresent ) : List
tokenPresent bool Flag indicating whether the list obtained includes only those slots with a token present (true), or all slots (false)
리턴 List

Pkcs11() 공개 메소드

Loads and initializes PCKS#11 library
public Pkcs11 ( string libraryPath, bool useOsLocking ) : System
libraryPath string Library name or path
useOsLocking bool Flag indicating whether PKCS#11 library can use the native operation system threading model for locking. Should be set to true in all multithreaded applications.
리턴 System

Pkcs11() 공개 메소드

Loads and initializes PCKS#11 library
public Pkcs11 ( string libraryPath, bool useOsLocking, bool useGetFunctionList ) : System
libraryPath string Library name or path
useOsLocking bool Flag indicating whether PKCS#11 library can use the native operation system threading model for locking. Should be set to true in all multithreaded applications.
useGetFunctionList bool Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false)
리턴 System

WaitForSlotEvent() 공개 메소드

Waits for a slot event, such as token insertion or token removal, to occur
public WaitForSlotEvent ( bool dontBlock, bool &eventOccured, uint &slotId ) : void
dontBlock bool Flag indicating that method should not block until an event occurs - it should return immediately instead. See PKCS#11 standard for full explanation.
eventOccured bool Flag indicating whether event occured
slotId uint PKCS#11 handle of slot that the event occurred in
리턴 void