P11ex.Lib.ObjectHandle (p11ex v0.1.1)
Represents a PKCS#11 object. This can be a key, a certificate, a secret key, etc. Note
that the object handle may be only valid in the context of the session that created it.
For example, a session key (:cka_token
is false
) is only visible and usable within the
context of the session that generates it. Other handles may be visible and usable over multiple
sessions, such as handles to token objects.
Summary
Types
The handle of the object which is unsigned integer identifying the object.
The PKCS#11 session that the object belongs to. May be nil
if the is not known
which session the object belongs to.
A struct representing a PKCS#11 object.
Functions
Create a new object handle and do not associate it with a session.
Create a new object handle and associate it with a session.
Types
@type handle() :: non_neg_integer()
The handle of the object which is unsigned integer identifying the object.
@type session() :: P11ex.Lib.SessionHandle.t() | nil
The PKCS#11 session that the object belongs to. May be nil
if the is not known
which session the object belongs to.
A struct representing a PKCS#11 object.