Enumerator
Object Hierarchy:
Gck.Enumerator
Gck.Enumerator
Gck.Enumerator
GLib.Object
GLib.Object
GLib.Object->Gck.Enumerator
Description:
[ CCode ( type_id = "gck_enumerator_get_type ()" ) ]public class Enumerator : Object
Can be used to enumerate through PKCS#11 objects.
It will automatically create sessions as necessary.
Use [funcmodules_enumerate_objects
] or [funcmodules_enumerate_uri
] to create an enumerator. To get the objects,
use [methodEnumerator.next
] or [methodEnumerator.next_async
] functions.
Content:
Properties:
public Enumerator chained { owned get ; set ; }
Chained enumerator, which will be enumerated when this enumerator has
enumerated all its objects.
public TlsInteraction interaction { owned get ; set ; }
Interaction object used to ask the user for pins when opening
sessions.
Creation methods:
Methods:
public Enumerator ? get_chained ()
Get the enumerator that will be run after all objects from this one
are seen.
public TlsInteraction ? get_interaction ()
Get the interaction used when a pin is needed
public Type get_object_type ()
Get the type of objects created by this enumerator.
public Object ? next (Cancellable ? cancellable = null ) throws Error
Get the next object in the enumerator, or null
if there
are no more objects.
public async List <Object > next_async (int max_objects, Cancellable ? cancellable) throws Error
Get the next set of objects from the enumerator.
public List <Object > next_n (int max_objects, Cancellable ? cancellable = null ) throws Error
Get the next set of objects from the enumerator.
public void set_chained (Enumerator ? chained)
Set a chained enumerator that will be run after all objects from this
one are seen.
public void set_interaction (TlsInteraction ? interaction)
Set the interaction used when a pin is needed
public void set_object_type (Type object_type, ulong [] attr_types)
Set the type of objects to be created by this enumerator.
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