Pkcs11Interop  4.0.0
Public Member Functions | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI.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

HighLevelAPI40.Slot HLA40Slot [get]
 Platform specific Slot. Use with caution! More...
 
HighLevelAPI41.Slot HLA41Slot [get]
 Platform specific Slot. Use with caution! More...
 
HighLevelAPI80.Slot HLA80Slot [get]
 Platform specific Slot. Use with caution! More...
 
HighLevelAPI81.Slot HLA81Slot [get]
 Platform specific Slot. Use with caution! More...
 
ulong SlotId [get]
 PKCS#11 handle of slot More...
 

Detailed Description

Logical reader that potentially contains a token

Member Function Documentation

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

Closes all sessions an application has with a token

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

Closes a session between an application and a token

Parameters
sessionSession
MechanismInfo Net.Pkcs11Interop.HighLevelAPI.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.HighLevelAPI.Slot.GetMechanismList ( )

Obtains a list of mechanism types supported by a token

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

Obtains information about a particular slot in the system

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

Obtains information about a particular token in the system.

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

Initializes a token

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

Initializes a token

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

HighLevelAPI40.Slot Net.Pkcs11Interop.HighLevelAPI.Slot.HLA40Slot
get

Platform specific Slot. Use with caution!

HighLevelAPI41.Slot Net.Pkcs11Interop.HighLevelAPI.Slot.HLA41Slot
get

Platform specific Slot. Use with caution!

HighLevelAPI80.Slot Net.Pkcs11Interop.HighLevelAPI.Slot.HLA80Slot
get

Platform specific Slot. Use with caution!

HighLevelAPI81.Slot Net.Pkcs11Interop.HighLevelAPI.Slot.HLA81Slot
get

Platform specific Slot. Use with caution!

ulong Net.Pkcs11Interop.HighLevelAPI.Slot.SlotId
get

PKCS#11 handle of slot


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