Pkcs11Interop  5.1.2
Public Member Functions | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI.ISlot Interface Reference

Logical reader that potentially contains a token More...

Inherited by Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

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...
 

Properties

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.HighLevelAPI.ISlot.CloseAllSessions ( )

◆ CloseSession()

void Net.Pkcs11Interop.HighLevelAPI.ISlot.CloseSession ( ISession  session)

Closes a session between an application and a token

Parameters
sessionSession

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ GetMechanismInfo()

IMechanismInfo Net.Pkcs11Interop.HighLevelAPI.ISlot.GetMechanismInfo ( CKM  mechanism)

Obtains information about a particular mechanism possibly supported by a token

Parameters
mechanismMechanism
Returns
Information about mechanism

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ GetMechanismList()

List<CKM> Net.Pkcs11Interop.HighLevelAPI.ISlot.GetMechanismList ( )

Obtains a list of mechanism types supported by a token

Returns
List of mechanism types supported by a token

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ GetSlotInfo()

ISlotInfo Net.Pkcs11Interop.HighLevelAPI.ISlot.GetSlotInfo ( )

Obtains information about a particular slot in the system

Returns
Slot information

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ GetTokenInfo()

ITokenInfo Net.Pkcs11Interop.HighLevelAPI.ISlot.GetTokenInfo ( )

Obtains information about a particular token in the system.

Returns
Token information

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ InitToken() [1/2]

void Net.Pkcs11Interop.HighLevelAPI.ISlot.InitToken ( string  soPin,
string  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ InitToken() [2/2]

void Net.Pkcs11Interop.HighLevelAPI.ISlot.InitToken ( byte []  soPin,
byte []  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

◆ OpenSession()

ISession Net.Pkcs11Interop.HighLevelAPI.ISlot.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

Implemented in Net.Pkcs11Interop.HighLevelAPI40.Slot, Net.Pkcs11Interop.HighLevelAPI41.Slot, Net.Pkcs11Interop.HighLevelAPI80.Slot, and Net.Pkcs11Interop.HighLevelAPI81.Slot.

Property Documentation

◆ Factories

Pkcs11InteropFactories Net.Pkcs11Interop.HighLevelAPI.ISlot.Factories
get

Factories to be used by Developer and Pkcs11Interop library

◆ SlotId

ulong Net.Pkcs11Interop.HighLevelAPI.ISlot.SlotId
get

PKCS#11 handle of slot


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