Object
Object Hierarchy:
Description:
Holds a handle to a PKCS11 object such as a key or certificate.
Token objects are stored on the token persistently. Others are transient and are called session objects.
Required by:
Namespace: Gck
Package: gck-1
Content:
Properties:
- public ulong handle { get; construct; }
The raw PKCS11 handle for this object.
- public Module module { owned get; construct; }
The GckModule that this object belongs to.
- public Session session { owned get; construct; }
The PKCS11 session to make calls on when this object needs to perform operations on itself.
Creation methods:
- protected Object ()
- public Object.from_handle (Session session, ulong object_handle)
Initialize a GckObject from a raw PKCS#11 handle.
Methods:
- public bool @set (Attributes attrs, Cancellable? cancellable = null) throws Error
Set PKCS#11 attributes on an object.
- public Attributes cache_lookup (ulong[] attr_types, Cancellable? cancellable = null) throws Error
Lookup attributes in the cache, or retrieve them from the object if necessary.
- public async Attributes cache_lookup_async (ulong[] attr_types, Cancellable? cancellable) throws Error
Lookup attributes in the cache, or retrieve them from the object if necessary.
- public bool destroy (Cancellable? cancellable = null) throws Error
Destroy a PKCS#11 object, deleting it from storage or the session.
- public async bool destroy_async (Cancellable? cancellable) throws Error
Destroy a PKCS#11 object, deleting it from storage or the session.
- public bool equal (Object object2)
Checks equality of two objects.
- public async Attributes get_async (ulong[] attr_types, Cancellable? cancellable) throws Error
Get the specified attributes from the object.
- public uint8[] get_data (ulong attr_type, Cancellable? cancellable) throws Error
Get the data for the specified attribute from the object.
- public async uint8[] get_data_async (ulong attr_type, Allocator allocator, Cancellable? cancellable) throws Error
Get the data for the specified attribute from the object.
- public Attributes get_full (ulong[] attr_types, Cancellable? cancellable = null) throws Error
Get the specified attributes from the object.
- public ulong get_handle ()
Get the raw PKCS#11 handle of a GckObject.
- public Module get_module ()
Get the PKCS#11 module to which this object belongs.
- public Session get_session ()
Get the PKCS#11 session assigned to make calls on when operating on this object.
- public Attributes get_template (ulong attr_type, Cancellable? cancellable = null) throws Error
Get an attribute template from the object.
- public async Attributes get_template_async (ulong attr_type, Cancellable? cancellable) throws Error
Get an attribute template from the object.
- public uint hash ()
Create a hash value for the GckObject.
- public async bool set_async (Attributes attrs, Cancellable? cancellable) throws Error
Set PKCS#11 attributes on an object.
- public bool set_template (ulong attr_type, Attributes attrs, Cancellable? cancellable = null) throws Error
Set an attribute template on the object.
- public async bool set_template_async (ulong attr_type, Attributes attrs, Cancellable? cancellable) throws Error
Set an attribute template on the object.
Inherited Members:
All known members inherited from class GLib.Object