from_handle


Description:

public static Session from_handle (Slot slot, ulong session_handle, SessionOptions options)

Initialize a session object from a raw PKCS#11 session handle.

Usually one would use the [methodSlot.open_session] function to create a session.

Parameters:

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