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.

t()

A struct representing a PKCS#11 session.

Functions

Create a new session handle.

Types

handle()

@type handle() :: non_neg_integer()

The handle of the session.

pkcs11_module()

@type pkcs11_module() :: P11ex.Lib.ModuleHandle.t()

The PKCS#11 module that the session belongs to.

slot_id()

@type slot_id() :: non_neg_integer()

The slot identifier of the session.

t()

@type t() :: %P11ex.Lib.SessionHandle{
  handle: handle(),
  module: pkcs11_module(),
  slot_id: slot_id()
}

A struct representing a PKCS#11 session.

Functions

new(module, handle, slot_id)

@spec new(pkcs11_module(), handle(), slot_id()) :: t()

Create a new session handle.