Gck.Session.from_handle

function from_handle(slot: Gck.Slot, session_handle: Number(gulong), options: Gck.SessionOptions): Gck.Session {
    // Gjs wrapper for gck_session_from_handle()
}
  

Initialize a GckSession object from a raw PKCS\#11 session handle. Usually one would use the Gck.Slot.prototype.open_session function to create a session.

slot

The slot which the session belongs to.

session_handle

the raw PKCS\#11 handle of the session

options

Session options. Those which are used during opening a session have no effect.

Returns

the new GckSession object