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

Logical reader that potentially contains a token More...

Public Member Functions

SlotInfo GetSlotInfo ()
 Obtains information about a particular slot in the system More...
 
TokenInfo GetTokenInfo ()
 Obtains information about a particular token in the system. More...
 
List< CKMGetMechanismList ()
 Obtains a list of mechanism types supported by a token More...
 
MechanismInfo 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...
 
Session OpenSession (SessionType sessionType)
 Opens a session between an application and a token in a particular slot More...
 
void CloseSession (Session session)
 Closes a session between an application and a token More...
 
void CloseAllSessions ()
 Closes all sessions an application has with a token More...
 

Properties

LowLevelAPI40.Pkcs11 LowLevelPkcs11 [get]
 Low level PKCS#11 wrapper. Use with caution! More...
 
uint SlotId [get]
 PKCS#11 handle of slot More...
 

Detailed Description

Logical reader that potentially contains a token

Member Function Documentation

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

Closes all sessions an application has with a token

void Net.Pkcs11Interop.HighLevelAPI40.Slot.CloseSession ( Session  session)

Closes a session between an application and a token

Parameters
sessionSession
MechanismInfo Net.Pkcs11Interop.HighLevelAPI40.Slot.GetMechanismInfo ( CKM  mechanism)

Obtains information about a particular mechanism possibly supported by a token

Parameters
mechanismMechanism
Returns
Information about mechanism
List<CKM> Net.Pkcs11Interop.HighLevelAPI40.Slot.GetMechanismList ( )

Obtains a list of mechanism types supported by a token

Returns
List of mechanism types supported by a token
SlotInfo Net.Pkcs11Interop.HighLevelAPI40.Slot.GetSlotInfo ( )

Obtains information about a particular slot in the system

Returns
Slot information
TokenInfo Net.Pkcs11Interop.HighLevelAPI40.Slot.GetTokenInfo ( )

Obtains information about a particular token in the system.

Returns
Token information
void Net.Pkcs11Interop.HighLevelAPI40.Slot.InitToken ( string  soPin,
string  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token
void Net.Pkcs11Interop.HighLevelAPI40.Slot.InitToken ( byte[]  soPin,
byte[]  label 
)

Initializes a token

Parameters
soPinSO's initial PIN
labelLabel of the token
Session Net.Pkcs11Interop.HighLevelAPI40.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

Property Documentation

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

Low level PKCS#11 wrapper. Use with caution!

uint Net.Pkcs11Interop.HighLevelAPI40.Slot.SlotId
get

PKCS#11 handle of slot


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