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

Logical reader that potentially contains a token More...

Inherits Net.Pkcs11Interop.HighLevelAPI.ISlot.

Public Member Functions

ISlotInfo GetSlotInfo ()
 Obtains information about a particular slot in the system More...
 
ITokenInfo GetTokenInfo ()
 Obtains information about a particular token in the system. More...
 
List< CKMGetMechanismList ()
 Obtains a list of mechanism types supported by a token More...
 
IMechanismInfo GetMechanismInfo (CKM mechanism)
 Obtains information about a particular mechanism possibly supported by a token More...
 
void InitToken (string soPin, string label)
 Initializes a token More...
 
void InitToken (byte[] soPin, byte[] label)
 Initializes a token More...
 
ISession OpenSession (SessionType sessionType)
 Opens a session between an application and a token in a particular slot More...
 
void CloseSession (ISession session)
 Closes a session between an application and a token More...
 
void CloseAllSessions ()
 Closes all sessions an application has with a token More...
 

Protected Attributes

Pkcs11InteropFactories _factories = null
 Factories to be used by Developer and Pkcs11Interop library More...
 
LowLevelAPI80.Pkcs11Library _pkcs11Library = null
 Low level PKCS#11 wrapper More...
 
NativeULong _slotId = 0
 PKCS#11 handle of slot More...
 

Properties

Pkcs11InteropFactories Factories [get]
 Factories to be used by Developer and Pkcs11Interop library More...
 
ulong SlotId [get]
 PKCS#11 handle of slot More...
 
- Properties inherited from Net.Pkcs11Interop.HighLevelAPI.ISlot
Pkcs11InteropFactories Factories [get]
 Factories to be used by Developer and Pkcs11Interop library More...
 
ulong SlotId [get]
 PKCS#11 handle of slot More...
 

Detailed Description

Logical reader that potentially contains a token

Member Function Documentation

◆ CloseAllSessions()

void Net.Pkcs11Interop.HighLevelAPI80.Slot.CloseAllSessions ( )

Closes all sessions an application has with a token

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ CloseSession()

void Net.Pkcs11Interop.HighLevelAPI80.Slot.CloseSession ( ISession  session)

Closes a session between an application and a token

Parameters
sessionSession

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ GetMechanismInfo()

IMechanismInfo Net.Pkcs11Interop.HighLevelAPI80.Slot.GetMechanismInfo ( CKM  mechanism)

Obtains information about a particular mechanism possibly supported by a token

Parameters
mechanismMechanism
Returns
Information about mechanism

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ GetMechanismList()

List<CKM> Net.Pkcs11Interop.HighLevelAPI80.Slot.GetMechanismList ( )

Obtains a list of mechanism types supported by a token

Returns
List of mechanism types supported by a token

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ GetSlotInfo()

ISlotInfo Net.Pkcs11Interop.HighLevelAPI80.Slot.GetSlotInfo ( )

Obtains information about a particular slot in the system

Returns
Slot information

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ GetTokenInfo()

ITokenInfo Net.Pkcs11Interop.HighLevelAPI80.Slot.GetTokenInfo ( )

Obtains information about a particular token in the system.

Returns
Token information

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ InitToken() [1/2]

void Net.Pkcs11Interop.HighLevelAPI80.Slot.InitToken ( string  soPin,
string  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ InitToken() [2/2]

void Net.Pkcs11Interop.HighLevelAPI80.Slot.InitToken ( byte []  soPin,
byte []  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

◆ OpenSession()

ISession Net.Pkcs11Interop.HighLevelAPI80.Slot.OpenSession ( SessionType  sessionType)

Opens a session between an application and a token in a particular slot

Parameters
sessionTypeType of session to be opened
Returns
Session

Implements Net.Pkcs11Interop.HighLevelAPI.ISlot.

Member Data Documentation

◆ _factories

Pkcs11InteropFactories Net.Pkcs11Interop.HighLevelAPI80.Slot._factories = null
protected

Factories to be used by Developer and Pkcs11Interop library

◆ _pkcs11Library

LowLevelAPI80.Pkcs11Library Net.Pkcs11Interop.HighLevelAPI80.Slot._pkcs11Library = null
protected

Low level PKCS#11 wrapper

◆ _slotId

NativeULong Net.Pkcs11Interop.HighLevelAPI80.Slot._slotId = 0
protected

PKCS#11 handle of slot

Property Documentation

◆ Factories

Pkcs11InteropFactories Net.Pkcs11Interop.HighLevelAPI80.Slot.Factories
get

Factories to be used by Developer and Pkcs11Interop library

◆ SlotId

ulong Net.Pkcs11Interop.HighLevelAPI80.Slot.SlotId
get

PKCS#11 handle of slot


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