Gck.Object.prototype.get_session

function get_session(): Gck.Session {
    // Gjs wrapper for gck_object_get_session()
}
  

Get the PKCS\#11 session assigned to make calls on when operating on this object.

This will only return a session if it was set explitly on this object. By default an object will open and close sessions appropriate for its calls.

Returns

the assigned session, which must be unreffed after use