revault_api 0.1.0-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,906 @@
1
+ # Generated complete class-oriented Ruby API. Do not edit.
2
+ require_relative 'binding_operations'
3
+
4
+ module Revault
5
+
6
+ class OwnedHandle
7
+ attr_reader :native_handle
8
+ def initialize(operations, native_handle)
9
+ @operations = operations
10
+ @native_handle = native_handle
11
+ end
12
+ end
13
+
14
+ class Vault
15
+ attr_reader :agent, :platform
16
+ def initialize
17
+ @operations = BindingOperations.new
18
+ @agent = Agent.new(@operations)
19
+ @platform = Platform.new(@operations)
20
+ end
21
+ def last_error = @operations.last_error_message
22
+ def last_error_details = @operations.buffer_last_error_details()
23
+
24
+ def lockbox_format_version()
25
+ @operations.lockbox_format_version()
26
+ end
27
+
28
+ def lockbox_probe_format_version(bytes)
29
+ @operations.lockbox_probe_format_version(bytes)
30
+ end
31
+
32
+ def lockbox_create(key)
33
+ Lockbox.new(@operations, @operations.lockbox_create(key))
34
+ end
35
+
36
+ def lockbox_create_with_options(key, cache_mode, cache_bytes, workload, worker, jobs)
37
+ Lockbox.new(@operations, @operations.lockbox_create_with_options(key, cache_mode, cache_bytes, workload, worker, jobs))
38
+ end
39
+
40
+ def lockbox_create_password(password)
41
+ Lockbox.new(@operations, @operations.lockbox_create_password(password))
42
+ end
43
+
44
+ def lockbox_create_contact(contact)
45
+ Lockbox.new(@operations, @operations.lockbox_create_contact(contact.native_handle))
46
+ end
47
+
48
+ def lockbox_create_with_signing_key(content_key, signing_key)
49
+ Lockbox.new(@operations, @operations.lockbox_create_with_signing_key(content_key, signing_key.native_handle))
50
+ end
51
+
52
+ def lockbox_open(archive, key)
53
+ Lockbox.new(@operations, @operations.lockbox_open(archive, key))
54
+ end
55
+
56
+ def lockbox_open_with_options(archive, key, cache_mode, cache_bytes, workload, worker, jobs)
57
+ Lockbox.new(@operations, @operations.lockbox_open_with_options(archive, key, cache_mode, cache_bytes, workload, worker, jobs))
58
+ end
59
+
60
+ def lockbox_open_password(archive, password)
61
+ Lockbox.new(@operations, @operations.lockbox_open_password(archive, password))
62
+ end
63
+
64
+ def lockbox_open_contact(archive, contact)
65
+ Lockbox.new(@operations, @operations.lockbox_open_contact(archive, contact.native_handle))
66
+ end
67
+
68
+ def lockbox_inspect_file(path)
69
+ @operations.lockbox_inspect_file(path)
70
+ end
71
+
72
+ def lockbox_recovery_scan_path(path, key)
73
+ @operations.lockbox_recovery_scan_path(path, key)
74
+ end
75
+
76
+ def lockbox_recovery_scan(bytes, key)
77
+ @operations.lockbox_recovery_scan(bytes, key)
78
+ end
79
+
80
+ def lockbox_recovery_salvage(bytes, key, signing_key)
81
+ Lockbox.new(@operations, @operations.lockbox_recovery_salvage(bytes, key, signing_key.native_handle))
82
+ end
83
+
84
+ def key_contact_generate()
85
+ ContactKeyPair.new(@operations, @operations.key_contact_generate())
86
+ end
87
+
88
+ def key_contact_from_private(bytes)
89
+ ContactKeyPair.new(@operations, @operations.key_contact_from_private(bytes))
90
+ end
91
+
92
+ def key_contact_public_from_bytes(bytes)
93
+ ContactPublicKey.new(@operations, @operations.key_contact_public_from_bytes(bytes))
94
+ end
95
+
96
+ def key_signing_generate()
97
+ SigningKeyPair.new(@operations, @operations.key_signing_generate())
98
+ end
99
+
100
+ def key_signing_from_private(bytes)
101
+ SigningKeyPair.new(@operations, @operations.key_signing_from_private(bytes))
102
+ end
103
+
104
+ def key_signing_public_from_bytes(bytes)
105
+ SigningPublicKey.new(@operations, @operations.key_signing_public_from_bytes(bytes))
106
+ end
107
+
108
+ def vault_key_export_private(key, format)
109
+ @operations.vault_key_export_private(key.native_handle, format)
110
+ end
111
+
112
+ def vault_key_export_public(key, format)
113
+ @operations.vault_key_export_public(key.native_handle, format)
114
+ end
115
+
116
+ def vault_key_import_private(bytes)
117
+ ContactKeyPair.new(@operations, @operations.vault_key_import_private(bytes))
118
+ end
119
+
120
+ def vault_key_import_public(bytes)
121
+ ContactPublicKey.new(@operations, @operations.vault_key_import_public(bytes))
122
+ end
123
+
124
+ def vault_key_fingerprint(key)
125
+ @operations.vault_key_fingerprint(key.native_handle)
126
+ end
127
+
128
+ def vault_key_format_hex(bytes)
129
+ @operations.vault_key_format_hex(bytes)
130
+ end
131
+
132
+ def vault_key_decode_hex(text)
133
+ @operations.vault_key_decode_hex(text)
134
+ end
135
+
136
+ def vault_key_format_crockford(bytes)
137
+ @operations.vault_key_format_crockford(bytes)
138
+ end
139
+
140
+ def vault_key_format_crockford_reading(code)
141
+ @operations.vault_key_format_crockford_reading(code)
142
+ end
143
+
144
+ def vault_key_decode_crockford(code)
145
+ @operations.vault_key_decode_crockford(code)
146
+ end
147
+
148
+ def vault_key_hex_encode(bytes)
149
+ @operations.vault_key_hex_encode(bytes)
150
+ end
151
+
152
+ def vault_key_hex_decode(text)
153
+ @operations.vault_key_hex_decode(text)
154
+ end
155
+
156
+ def vault_directory_open(root, password)
157
+ VaultDirectory.new(@operations, @operations.vault_directory_open(root, password))
158
+ end
159
+
160
+ def vault_structure_version_current()
161
+ @operations.vault_structure_version_current()
162
+ end
163
+
164
+ def vault_directory_probe_structure_version(root, password)
165
+ @operations.vault_directory_probe_structure_version(root, password)
166
+ end
167
+
168
+ def vault_directory_open_or_create_default(password)
169
+ VaultDirectory.new(@operations, @operations.vault_directory_open_or_create_default(password))
170
+ end
171
+
172
+ def vault_directory_replace_default(password)
173
+ VaultDirectory.new(@operations, @operations.vault_directory_replace_default(password))
174
+ end
175
+
176
+ def vault_directory_change_password(root, old_password, new_password)
177
+ @operations.vault_directory_change_password(root, old_password, new_password)
178
+ end
179
+
180
+ def vault_directory_change_default_password(old_password, new_password)
181
+ @operations.vault_directory_change_default_password(old_password, new_password)
182
+ end
183
+
184
+ def vault_directory_replace(root, password)
185
+ VaultDirectory.new(@operations, @operations.vault_directory_replace(root, password))
186
+ end
187
+
188
+ def vault_directory_open_or_create(root, password)
189
+ VaultDirectory.new(@operations, @operations.vault_directory_open_or_create(root, password))
190
+ end
191
+
192
+ def vault_backup_default(path, overwrite)
193
+ @operations.vault_backup_default(path, overwrite)
194
+ end
195
+
196
+ def vault_restore_default(path, overwrite)
197
+ @operations.vault_restore_default(path, overwrite)
198
+ end
199
+
200
+ def vault_read_only_open(root, password)
201
+ ReadOnlyVaultDirectory.new(@operations, @operations.vault_read_only_open(root, password))
202
+ end
203
+
204
+ def vault_read_only_open_default(password)
205
+ ReadOnlyVaultDirectory.new(@operations, @operations.vault_read_only_open_default(password))
206
+ end
207
+
208
+ def vault_default_directory()
209
+ @operations.vault_default_directory()
210
+ end
211
+
212
+ def vault_default_path()
213
+ @operations.vault_default_path()
214
+ end
215
+
216
+ def vault_agent_log_path()
217
+ @operations.vault_agent_log_path()
218
+ end
219
+
220
+ def vault_agent_log_destination()
221
+ @operations.vault_agent_log_destination()
222
+ end
223
+
224
+ def vault_local()
225
+ LocalVault.new(@operations, @operations.vault_local())
226
+ end
227
+
228
+ end
229
+
230
+ class Lockbox < OwnedHandle
231
+ def add_file(path, data, replace)
232
+ @operations.lockbox_add_file(@native_handle, path, data, replace)
233
+ end
234
+
235
+ def add_file_with_permissions(path, data, permissions, replace)
236
+ @operations.lockbox_add_file_with_permissions(@native_handle, path, data, permissions, replace)
237
+ end
238
+
239
+ def get_file(path)
240
+ @operations.lockbox_get_file(@native_handle, path)
241
+ end
242
+
243
+ def extract_file(source, destination, replace)
244
+ @operations.lockbox_extract_file(@native_handle, source, destination, replace)
245
+ end
246
+
247
+ def extract_directory(destination, max_file_bytes, max_total_bytes, max_files, restore_symlinks, restore_permissions, overwrite)
248
+ @operations.lockbox_extract_directory(@native_handle, destination, max_file_bytes, max_total_bytes, max_files, restore_symlinks, restore_permissions, overwrite)
249
+ end
250
+
251
+ def stream_content(physical)
252
+ @operations.lockbox_stream_content(@native_handle, physical)
253
+ end
254
+
255
+ def cache_stats()
256
+ @operations.lockbox_cache_stats(@native_handle)
257
+ end
258
+
259
+ def import_stats()
260
+ @operations.lockbox_import_stats(@native_handle)
261
+ end
262
+
263
+ def reset_import_stats()
264
+ @operations.lockbox_reset_import_stats(@native_handle)
265
+ end
266
+
267
+ def page_inspection()
268
+ @operations.lockbox_page_inspection(@native_handle)
269
+ end
270
+
271
+ def recovery_report()
272
+ @operations.lockbox_recovery_report(@native_handle)
273
+ end
274
+
275
+ def recovery_report_render(verbose, max_entries)
276
+ @operations.lockbox_recovery_report_render(@native_handle, verbose, max_entries)
277
+ end
278
+
279
+ def storage_len()
280
+ @operations.lockbox_storage_len(@native_handle)
281
+ end
282
+
283
+ def set_workload_profile(profile)
284
+ @operations.lockbox_set_workload_profile(@native_handle, profile)
285
+ end
286
+
287
+ def set_worker_policy(mode, jobs)
288
+ @operations.lockbox_set_worker_policy(@native_handle, mode, jobs)
289
+ end
290
+
291
+ def runtime_options()
292
+ @operations.lockbox_runtime_options(@native_handle)
293
+ end
294
+
295
+ def commit()
296
+ @operations.lockbox_commit(@native_handle)
297
+ end
298
+
299
+ def create_dir(path, create_parents)
300
+ @operations.lockbox_create_dir(@native_handle, path, create_parents)
301
+ end
302
+
303
+ def delete(path)
304
+ @operations.lockbox_delete(@native_handle, path)
305
+ end
306
+
307
+ def remove_dir(path, recursive)
308
+ @operations.lockbox_remove_dir(@native_handle, path, recursive)
309
+ end
310
+
311
+ def create_parent_dirs(path)
312
+ @operations.lockbox_create_parent_dirs(@native_handle, path)
313
+ end
314
+
315
+ def rename(from, to)
316
+ @operations.lockbox_rename(@native_handle, from, to)
317
+ end
318
+
319
+ def list(path, recursive)
320
+ @operations.lockbox_list(@native_handle, path, recursive)
321
+ end
322
+
323
+ def list_with_options(path, glob, recursive, include_files, include_symlinks, include_directories, limit)
324
+ @operations.lockbox_list_with_options(@native_handle, path, glob, recursive, include_files, include_symlinks, include_directories, limit)
325
+ end
326
+
327
+ def stat(path)
328
+ @operations.lockbox_stat(@native_handle, path)
329
+ end
330
+
331
+ def set_variable(name, value, secret)
332
+ @operations.lockbox_set_variable(@native_handle, name, value, secret)
333
+ end
334
+
335
+ def get_variable(name)
336
+ @operations.lockbox_get_variable(@native_handle, name)
337
+ end
338
+
339
+ def delete_variable(name)
340
+ @operations.lockbox_delete_variable(@native_handle, name)
341
+ end
342
+
343
+ def move_variables(moves_proto)
344
+ @operations.lockbox_move_variables(@native_handle, moves_proto)
345
+ end
346
+
347
+ def list_variables()
348
+ @operations.lockbox_list_variables(@native_handle)
349
+ end
350
+
351
+ def variable_sensitivity(name)
352
+ @operations.lockbox_variable_sensitivity(@native_handle, name)
353
+ end
354
+
355
+ def add_symlink(path, target, replace)
356
+ @operations.lockbox_add_symlink(@native_handle, path, target, replace)
357
+ end
358
+
359
+ def get_symlink_target(path)
360
+ @operations.lockbox_get_symlink_target(@native_handle, path)
361
+ end
362
+
363
+ def id()
364
+ @operations.lockbox_id(@native_handle)
365
+ end
366
+
367
+ def exists(path)
368
+ @operations.lockbox_exists(@native_handle, path)
369
+ end
370
+
371
+ def is_dir(path)
372
+ @operations.lockbox_is_dir(@native_handle, path)
373
+ end
374
+
375
+ def permissions(path)
376
+ @operations.lockbox_permissions(@native_handle, path)
377
+ end
378
+
379
+ def set_permissions(path, permissions)
380
+ @operations.lockbox_set_permissions(@native_handle, path, permissions)
381
+ end
382
+
383
+ def read_range(path, offset, len)
384
+ @operations.lockbox_read_range(@native_handle, path, offset, len)
385
+ end
386
+
387
+ def add_password(password)
388
+ @operations.lockbox_add_password(@native_handle, password)
389
+ end
390
+
391
+ def add_contact(contact, name)
392
+ @operations.lockbox_add_contact(@native_handle, contact.native_handle, name)
393
+ end
394
+
395
+ def delete_key(id)
396
+ @operations.lockbox_delete_key(@native_handle, id)
397
+ end
398
+
399
+ def list_key_slots()
400
+ @operations.lockbox_list_key_slots(@native_handle)
401
+ end
402
+
403
+ def set_owner_signing_key(key)
404
+ @operations.lockbox_set_owner_signing_key(@native_handle, key.native_handle)
405
+ end
406
+
407
+ def owner_inspection()
408
+ @operations.lockbox_owner_inspection(@native_handle)
409
+ end
410
+
411
+ def define_form(alias_name, name, description, fields_proto)
412
+ @operations.lockbox_define_form(@native_handle, alias_name, name, description, fields_proto)
413
+ end
414
+
415
+ def list_form_definitions()
416
+ @operations.lockbox_list_form_definitions(@native_handle)
417
+ end
418
+
419
+ def resolve_form(reference)
420
+ @operations.lockbox_resolve_form(@native_handle, reference)
421
+ end
422
+
423
+ def list_form_revisions(type_id)
424
+ @operations.lockbox_list_form_revisions(@native_handle, type_id)
425
+ end
426
+
427
+ def create_form_record(path, type_reference, name)
428
+ @operations.lockbox_create_form_record(@native_handle, path, type_reference, name)
429
+ end
430
+
431
+ def set_form_field(path, field, value, secret)
432
+ @operations.lockbox_set_form_field(@native_handle, path, field, value, secret)
433
+ end
434
+
435
+ def list_form_records()
436
+ @operations.lockbox_list_form_records(@native_handle)
437
+ end
438
+
439
+ def get_form_record(path)
440
+ @operations.lockbox_get_form_record(@native_handle, path)
441
+ end
442
+
443
+ def delete_form_record(path)
444
+ @operations.lockbox_delete_form_record(@native_handle, path)
445
+ end
446
+
447
+ def move_form_records(moves_proto)
448
+ @operations.lockbox_move_form_records(@native_handle, moves_proto)
449
+ end
450
+
451
+ def get_form_field(path, field)
452
+ @operations.lockbox_get_form_field(@native_handle, path, field)
453
+ end
454
+
455
+ def to_bytes()
456
+ @operations.lockbox_to_bytes(@native_handle)
457
+ end
458
+
459
+ def free()
460
+ @operations.lockbox_free(@native_handle)
461
+ @native_handle = nil
462
+ end
463
+
464
+ end
465
+
466
+ class ContactKeyPair < OwnedHandle
467
+ def public()
468
+ @operations.key_contact_public(@native_handle)
469
+ end
470
+
471
+ def private()
472
+ @operations.key_contact_private(@native_handle)
473
+ end
474
+
475
+ def free()
476
+ @operations.key_contact_free(@native_handle)
477
+ @native_handle = nil
478
+ end
479
+
480
+ def decrypt(wrapped)
481
+ @operations.key_contact_decrypt(@native_handle, wrapped.native_handle)
482
+ end
483
+
484
+ end
485
+
486
+ class ContactPublicKey < OwnedHandle
487
+ def public_free()
488
+ @operations.key_contact_public_free(@native_handle)
489
+ @native_handle = nil
490
+ end
491
+
492
+ def encrypt(content_key)
493
+ WrappedContactKey.new(@operations, @operations.key_contact_encrypt(@native_handle, content_key))
494
+ end
495
+
496
+ end
497
+
498
+ class WrappedContactKey < OwnedHandle
499
+ def public()
500
+ @operations.key_contact_wrapped_public(@native_handle)
501
+ end
502
+
503
+ def ciphertext()
504
+ @operations.key_contact_wrapped_ciphertext(@native_handle)
505
+ end
506
+
507
+ def encrypted()
508
+ @operations.key_contact_wrapped_encrypted(@native_handle)
509
+ end
510
+
511
+ def free()
512
+ @operations.key_contact_wrapped_free(@native_handle)
513
+ @native_handle = nil
514
+ end
515
+
516
+ end
517
+
518
+ class SigningKeyPair < OwnedHandle
519
+ def public()
520
+ @operations.key_signing_public(@native_handle)
521
+ end
522
+
523
+ def private()
524
+ @operations.key_signing_private(@native_handle)
525
+ end
526
+
527
+ def free()
528
+ @operations.key_signing_free(@native_handle)
529
+ @native_handle = nil
530
+ end
531
+
532
+ end
533
+
534
+ class SigningPublicKey < OwnedHandle
535
+ def public_free()
536
+ @operations.key_signing_public_free(@native_handle)
537
+ @native_handle = nil
538
+ end
539
+
540
+ end
541
+
542
+ class VaultDirectory < OwnedHandle
543
+ def root()
544
+ @operations.vault_directory_root(@native_handle)
545
+ end
546
+
547
+ def structure_version()
548
+ @operations.vault_directory_structure_version(@native_handle)
549
+ end
550
+
551
+ def list_private_keys()
552
+ @operations.vault_directory_list_private_keys(@native_handle)
553
+ end
554
+
555
+ def list_private_key_names()
556
+ @operations.vault_directory_list_private_key_names(@native_handle)
557
+ end
558
+
559
+ def list_contact_names()
560
+ @operations.vault_directory_list_contact_names(@native_handle)
561
+ end
562
+
563
+ def list_form_aliases()
564
+ @operations.vault_directory_list_form_aliases(@native_handle)
565
+ end
566
+
567
+ def private_key_exists(name)
568
+ @operations.vault_directory_private_key_exists(@native_handle, name)
569
+ end
570
+
571
+ def delete_private_key(name)
572
+ @operations.vault_directory_delete_private_key(@native_handle, name)
573
+ end
574
+
575
+ def store_private_key(name, key)
576
+ @operations.vault_directory_store_private_key(@native_handle, name, key.native_handle)
577
+ end
578
+
579
+ def load_private_key(name)
580
+ ContactKeyPair.new(@operations, @operations.vault_directory_load_private_key(@native_handle, name))
581
+ end
582
+
583
+ def load_private_key_generation(name, index)
584
+ ContactKeyPair.new(@operations, @operations.vault_directory_load_private_key_generation(@native_handle, name, index))
585
+ end
586
+
587
+ def store_contact(name, key)
588
+ @operations.vault_directory_store_contact(@native_handle, name, key.native_handle)
589
+ end
590
+
591
+ def load_contact(name)
592
+ ContactPublicKey.new(@operations, @operations.vault_directory_load_contact(@native_handle, name))
593
+ end
594
+
595
+ def contact_exists(name)
596
+ @operations.vault_directory_contact_exists(@native_handle, name)
597
+ end
598
+
599
+ def delete_contact(name)
600
+ @operations.vault_directory_delete_contact(@native_handle, name)
601
+ end
602
+
603
+ def list_contacts()
604
+ @operations.vault_directory_list_contacts(@native_handle)
605
+ end
606
+
607
+ def store_profile_email(name, email)
608
+ @operations.vault_directory_store_profile_email(@native_handle, name, email)
609
+ end
610
+
611
+ def profile_email(name)
612
+ @operations.vault_directory_profile_email(@native_handle, name)
613
+ end
614
+
615
+ def store_backup(id, bytes)
616
+ @operations.vault_directory_store_backup(@native_handle, id, bytes)
617
+ end
618
+
619
+ def load_backup(id)
620
+ @operations.vault_directory_load_backup(@native_handle, id)
621
+ end
622
+
623
+ def backup_count()
624
+ @operations.vault_directory_backup_count(@native_handle)
625
+ end
626
+
627
+ def restore_private_key(name, key, signing_key, overwrite)
628
+ @operations.vault_directory_restore_private_key(@native_handle, name, key.native_handle, signing_key.native_handle, overwrite)
629
+ end
630
+
631
+ def load_owner_signing_key(name)
632
+ SigningKeyPair.new(@operations, @operations.vault_directory_load_owner_signing_key(@native_handle, name))
633
+ end
634
+
635
+ def load_owner_signing_key_generation(name, index)
636
+ SigningKeyPair.new(@operations, @operations.vault_directory_load_owner_signing_key_generation(@native_handle, name, index))
637
+ end
638
+
639
+ def store_contact_signing_key(name, key)
640
+ @operations.vault_directory_store_contact_signing_key(@native_handle, name, key.native_handle)
641
+ end
642
+
643
+ def load_contact_signing_key(name)
644
+ SigningPublicKey.new(@operations, @operations.vault_directory_load_contact_signing_key(@native_handle, name))
645
+ end
646
+
647
+ def list_profile_generations(name)
648
+ @operations.vault_directory_list_profile_generations(@native_handle, name)
649
+ end
650
+
651
+ def rotate_private_key(name)
652
+ @operations.vault_directory_rotate_private_key(@native_handle, name)
653
+ end
654
+
655
+ def remember_lockbox(id, path)
656
+ @operations.vault_directory_remember_lockbox(@native_handle, id, path)
657
+ end
658
+
659
+ def list_known_lockboxes()
660
+ @operations.vault_directory_list_known_lockboxes(@native_handle)
661
+ end
662
+
663
+ def forget_lockbox(path)
664
+ @operations.vault_directory_forget_lockbox(@native_handle, path)
665
+ end
666
+
667
+ def remember_access_slot_label(id, slot_id, name)
668
+ @operations.vault_directory_remember_access_slot_label(@native_handle, id, slot_id, name)
669
+ end
670
+
671
+ def list_access_slot_labels(id)
672
+ @operations.vault_directory_list_access_slot_labels(@native_handle, id)
673
+ end
674
+
675
+ def find_access_slot_labels(id, name)
676
+ @operations.vault_directory_find_access_slot_labels(@native_handle, id, name)
677
+ end
678
+
679
+ def forget_access_slot_label(id, slot_id)
680
+ @operations.vault_directory_forget_access_slot_label(@native_handle, id, slot_id)
681
+ end
682
+
683
+ def define_form(alias_name, name, description, fields_proto)
684
+ @operations.vault_directory_define_form(@native_handle, alias_name, name, description, fields_proto)
685
+ end
686
+
687
+ def resolve_form(reference)
688
+ @operations.vault_directory_resolve_form(@native_handle, reference)
689
+ end
690
+
691
+ def list_forms()
692
+ @operations.vault_directory_list_forms(@native_handle)
693
+ end
694
+
695
+ def list_form_revisions(type_id)
696
+ @operations.vault_directory_list_form_revisions(@native_handle, type_id)
697
+ end
698
+
699
+ def seed_forms()
700
+ @operations.vault_directory_seed_forms(@native_handle)
701
+ end
702
+
703
+ def remember_password(id, password)
704
+ @operations.vault_directory_remember_password(@native_handle, id, password)
705
+ end
706
+
707
+ def remembered_password(id)
708
+ @operations.vault_directory_remembered_password(@native_handle, id)
709
+ end
710
+
711
+ def free()
712
+ @operations.vault_directory_free(@native_handle)
713
+ @native_handle = nil
714
+ end
715
+
716
+ end
717
+
718
+ class ReadOnlyVaultDirectory < OwnedHandle
719
+ def list_profile_names()
720
+ @operations.vault_read_only_list_profile_names(@native_handle)
721
+ end
722
+
723
+ def list_contact_names()
724
+ @operations.vault_read_only_list_contact_names(@native_handle)
725
+ end
726
+
727
+ def list_form_aliases()
728
+ @operations.vault_read_only_list_form_aliases(@native_handle)
729
+ end
730
+
731
+ def list_known_lockboxes()
732
+ @operations.vault_read_only_list_known_lockboxes(@native_handle)
733
+ end
734
+
735
+ def free()
736
+ @operations.vault_read_only_free(@native_handle)
737
+ end
738
+
739
+ end
740
+
741
+ class Agent
742
+ def initialize(operations)
743
+ @operations = operations
744
+ end
745
+
746
+ def is_running()
747
+ @operations.vault_is_running()
748
+ end
749
+
750
+ def forget_all()
751
+ @operations.vault_forget_all()
752
+ end
753
+
754
+ def serve()
755
+ @operations.vault_agent_serve()
756
+ end
757
+
758
+ def verify_transport()
759
+ @operations.vault_agent_verify_transport()
760
+ end
761
+
762
+ def get(id)
763
+ @operations.vault_agent_get(id)
764
+ end
765
+
766
+ def put(id, key)
767
+ @operations.vault_agent_put(id, key)
768
+ end
769
+
770
+ def forget(id)
771
+ @operations.vault_agent_forget(id)
772
+ end
773
+
774
+ def stop()
775
+ @operations.vault_agent_stop()
776
+ end
777
+
778
+ def start()
779
+ @operations.vault_agent_start()
780
+ end
781
+
782
+ def list()
783
+ @operations.vault_agent_list()
784
+ end
785
+
786
+ def sleep_support()
787
+ @operations.vault_agent_sleep_support()
788
+ end
789
+
790
+ def get_vault_unlock_key(vault_id)
791
+ @operations.vault_agent_get_vault_unlock_key(vault_id)
792
+ end
793
+
794
+ def put_vault_unlock_key(vault_id, key, ttl_seconds)
795
+ @operations.vault_agent_put_vault_unlock_key(vault_id, key, ttl_seconds)
796
+ end
797
+
798
+ def forget_vault_unlock_key(vault_id)
799
+ @operations.vault_agent_forget_vault_unlock_key(vault_id)
800
+ end
801
+
802
+ def get_owner_signing_key(vault_id, profile)
803
+ SigningKeyPair.new(@operations, @operations.vault_agent_get_owner_signing_key(vault_id, profile))
804
+ end
805
+
806
+ def put_owner_signing_key(vault_id, profile, key, ttl_seconds)
807
+ @operations.vault_agent_put_owner_signing_key(vault_id, profile, key.native_handle, ttl_seconds)
808
+ end
809
+
810
+ def forget_owner_signing_key(vault_id, profile)
811
+ @operations.vault_agent_forget_owner_signing_key(vault_id, profile)
812
+ end
813
+
814
+ def begin_activity(kind)
815
+ AgentActivity.new(@operations, @operations.vault_agent_begin_activity(kind))
816
+ end
817
+
818
+ def end_activity(handle)
819
+ @operations.vault_agent_end_activity(handle.native_handle)
820
+ end
821
+
822
+ end
823
+
824
+ class AgentActivity < OwnedHandle
825
+ end
826
+
827
+ class Platform
828
+ def initialize(operations)
829
+ @operations = operations
830
+ end
831
+
832
+ def status()
833
+ @operations.vault_platform_status()
834
+ end
835
+
836
+ def set_scope(scope)
837
+ @operations.vault_platform_set_scope(scope)
838
+ end
839
+
840
+ def forget_password()
841
+ @operations.vault_platform_forget_password()
842
+ end
843
+
844
+ def put_password(password)
845
+ @operations.vault_platform_put_password(password)
846
+ end
847
+
848
+ def enable()
849
+ @operations.vault_platform_enable()
850
+ end
851
+
852
+ def disable()
853
+ @operations.vault_platform_disable()
854
+ end
855
+
856
+ def disabled()
857
+ @operations.vault_platform_disabled()
858
+ end
859
+
860
+ def get_password()
861
+ @operations.vault_platform_get_password()
862
+ end
863
+
864
+ end
865
+
866
+ class LocalVault < OwnedHandle
867
+ def create_lockbox_password(path, password)
868
+ Lockbox.new(@operations, @operations.vault_create_lockbox_password(@native_handle, path, password))
869
+ end
870
+
871
+ def open_lockbox_password(path, password)
872
+ Lockbox.new(@operations, @operations.vault_open_lockbox_password(@native_handle, path, password))
873
+ end
874
+
875
+ def create_lockbox_content_key(path, content_key, signing_key)
876
+ Lockbox.new(@operations, @operations.vault_create_lockbox_content_key(@native_handle, path, content_key, signing_key.native_handle))
877
+ end
878
+
879
+ def create_lockbox_contact(path, contact, name, signing_key)
880
+ Lockbox.new(@operations, @operations.vault_create_lockbox_contact(@native_handle, path, contact.native_handle, name, signing_key.native_handle))
881
+ end
882
+
883
+ def open_lockbox_content_key(path, content_key, signing_key)
884
+ Lockbox.new(@operations, @operations.vault_open_lockbox_content_key(@native_handle, path, content_key, signing_key.native_handle))
885
+ end
886
+
887
+ def cache_lockbox_password(path, password, ttl_seconds)
888
+ @operations.vault_cache_lockbox_password(@native_handle, path, password, ttl_seconds)
889
+ end
890
+
891
+ def close_lockbox(path)
892
+ @operations.vault_close_lockbox(@native_handle, path)
893
+ end
894
+
895
+ def close_all()
896
+ @operations.vault_close_all(@native_handle)
897
+ end
898
+
899
+ def free()
900
+ @operations.vault_free(@native_handle)
901
+ @native_handle = nil
902
+ end
903
+
904
+ end
905
+
906
+ end