-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathExamples.cs
45 lines (40 loc) · 2.09 KB
/
Examples.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Threading;
using System.Threading.Tasks;
using Examples.keyring;
namespace Examples
{
class Program
{
// Main method
static async Task Main()
{
ItemEncryptDecryptExample.PutItemGetItem();
await BasicPutGetExample.PutItemGetItem();
await ScanErrorExample.ScanError();
await GetEncryptedDataKeyDescriptionExample.GetEncryptedDataKeyDescription();
await MultiPutGetExample.MultiPutGet();
await ClientSupplierExample.ClientSupplierPutItemGetItem();
await MultiMrkKeyringExample.MultiMrkKeyringGetItemPutItem();
await RawAesKeyringExample.RawAesKeyringGetItemPutItem();
await MrkDiscoveryMultiKeyringExample.MultiMrkDiscoveryKeyringGetItemPutItem();
await MultiKeyringExample.MultiKeyringGetItemPutItem();
await RawRsaKeyringExample.RawRsaKeyringGetItemPutItem();
await KmsRsaKeyringExample.KmsRsaKeyringGetItemPutItem();
await RawEcdhKeyringExample.RawEcdhKeyringExamples();
await KmsEcdhKeyringExample.KmsEcdhKeyringExamples();
var keyId = CreateKeyStoreKeyExample.KeyStoreCreateKey();
var keyId2 = CreateKeyStoreKeyExample.KeyStoreCreateKey();
// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.Sleep(5000);
await HierarchicalKeyringExample.HierarchicalKeyringGetItemPutItem(keyId, keyId2);
await BasicSearchableEncryptionExample.PutItemQueryItemWithBeacon(keyId);
await CompoundBeaconSearchableEncryptionExample.PutItemQueryItemWithCompoundBeacon(keyId);
await VirtualBeaconSearchableEncryptionExample.PutItemQueryItemWithVirtualBeacon(keyId);
await BeaconStylesSearchableEncryptionExample.PutItemQueryItemWithBeaconStyles(keyId);
await ComplexSearchableEncryptionExample.RunExample(keyId);
Console.Write("All examples completed successfully.\n");
}
}
}