P11ex.Lib.SessionHandle (p11ex v0.1.1)
Represents a PKCS#11 session. A session is used to interact with a token.
Summary
Types
The handle of the session.
The PKCS#11 module that the session belongs to.
The slot identifier of the session.
A struct representing a PKCS#11 session.
Functions
Create a new session handle.
Types
@type handle() :: non_neg_integer()
The handle of the session.
@type pkcs11_module() :: P11ex.Lib.ModuleHandle.t()
The PKCS#11 module that the session belongs to.
@type slot_id() :: non_neg_integer()
The slot identifier of the session.
@type t() :: %P11ex.Lib.SessionHandle{ handle: handle(), module: pkcs11_module(), slot_id: slot_id() }
A struct representing a PKCS#11 session.
Functions
@spec new(pkcs11_module(), handle(), slot_id()) :: t()
Create a new session handle.