C# Class Net.Pkcs11Interop.HighLevelAPI.Slot

Logical reader that potentially contains a token
显示文件 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 ( HighLevelAPI40 slot ) : System

Converts platform specific Slot to platfrom neutral Slot

Slot ( HighLevelAPI41 slot ) : System

Converts platform specific Slot to platfrom neutral Slot

Slot ( HighLevelAPI80 slot ) : System

Converts platform specific Slot to platfrom neutral Slot

Slot ( HighLevelAPI81 slot ) : System

Converts platform specific Slot to platfrom neutral Slot

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