Object
Object Hierarchy:
Description:
[ CCode ( type_id = "gck_object_get_type ()" ) ]
public class Object : Object
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.
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:
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref