C# Class Net.Pkcs11Interop.HighLevelAPI81.Slot

Logical reader that potentially contains a token
Show file Open project: Pkcs11Interop/Pkcs11Interop Class Usage Examples

Public Methods

Method Description
CloseAllSessions ( ) : void

Closes all sessions an application has with a token

CloseSession ( Session session ) : void

Closes a session between an application and a token

GetMechanismInfo ( CKM mechanism ) : MechanismInfo

Obtains information about a particular mechanism possibly supported by a token

GetMechanismList ( ) : List

Obtains a list of mechanism types supported by a token

GetSlotInfo ( ) : SlotInfo

Obtains information about a particular slot in the system

GetTokenInfo ( ) : TokenInfo

Obtains information about a particular token in the system.

InitToken ( byte soPin, byte label ) : void

Initializes a token

InitToken ( string soPin, string label ) : void

Initializes a token

OpenSession ( bool readOnly ) : Session

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

Private Methods

Method Description
Slot ( LowLevelAPI81 pkcs11, ulong slotId ) : System

Initializes new instance of Slot class

Method Details

CloseAllSessions() public method

Closes all sessions an application has with a token
public CloseAllSessions ( ) : void
return void

CloseSession() public method

Closes a session between an application and a token
public CloseSession ( Session session ) : void
session Session Session
return void

GetMechanismInfo() public method

Obtains information about a particular mechanism possibly supported by a token
public GetMechanismInfo ( CKM mechanism ) : MechanismInfo
mechanism CKM Mechanism
return MechanismInfo

GetMechanismList() public method

Obtains a list of mechanism types supported by a token
public GetMechanismList ( ) : List
return List

GetSlotInfo() public method

Obtains information about a particular slot in the system
public GetSlotInfo ( ) : SlotInfo
return SlotInfo

GetTokenInfo() public method

Obtains information about a particular token in the system.
public GetTokenInfo ( ) : TokenInfo
return TokenInfo

InitToken() public method

Initializes a token
public InitToken ( byte soPin, byte label ) : void
soPin byte SO's initial PIN
label byte Label of the token
return void

InitToken() public method

Initializes a token
public InitToken ( string soPin, string label ) : void
soPin string SO's initial PIN
label string Label of the token
return void

OpenSession() public method

Opens a session between an application and a token in a particular slot
public OpenSession ( bool readOnly ) : Session
readOnly bool Flag indicating whether session should be read only
return Session