This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
AgentOptions.cs
187 lines (167 loc) · 5.89 KB
/
AgentOptions.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
using Hyperledger.Aries.Storage;
using Hyperledger.Aries.Utils;
using System;
using System.Collections.Generic;
using System.IO;
namespace Hyperledger.Aries.Configuration
{
/// <summary>
/// Agent options
/// </summary>
public class AgentOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="AgentOptions" /> class.
/// </summary>
public AgentOptions()
{
WalletConfiguration = new WalletConfiguration { Id = "DefaultWallet" };
WalletCredentials = new WalletCredentials { Key = "DefaultKey" };
}
/// <summary>
/// Gets or sets the wallet configuration.
/// </summary>
/// <value>The wallet configuration.</value>
public WalletConfiguration WalletConfiguration
{
get;
set;
}
/// <summary>
/// Gets or sets the wallet credentials.
/// </summary>
/// <value>The wallet credentials.</value>
public WalletCredentials WalletCredentials
{
get;
set;
}
/// <summary>
/// The DID of the issuer key pair
/// </summary>
/// <value></value>
public string IssuerDid { get; set; }
/// <summary>
/// The key of the
/// </summary>
/// <value></value>
public string IssuerKeySeed { get; set; }
/// <summary>
/// Gets or sets the agent did
/// </summary>
/// <value></value>
public string AgentDid { get; set; }
/// <summary>
/// Gets or sets the agent key generation seed
/// </summary>
/// <value></value>
public string AgentKeySeed { get; set; }
/// <summary>
/// Gets or sets the agent endpoint uri
/// </summary>
/// <value></value>
public string EndpointUri { get; set; }
/// <summary>
/// Gets or sets the agent name used in connection invitations
/// </summary>
/// <value></value>
public string AgentName { get; set; }
/// <summary>
/// Gets or sets the agent image uri
/// </summary>
/// <value></value>
public string AgentImageUri { get; set; }
/// <summary>
/// The verification key of the agent
/// </summary>
/// <value></value>
public string AgentKey { get; set; }
/// <summary>
/// Gets or sets the name of the pool.
/// </summary>
/// <value>The name of the pool.</value>
public string PoolName
{
get;
set;
} = "DefaultPool";
/// <summary>
/// Gets or sets the genesis filename.
/// </summary>
/// <value>The genesis filename.</value>
public string GenesisFilename
{
get;
set;
}
/// <summary>
/// Gets or sets the protocol version of the nodes.
/// </summary>
/// <value>
/// The protocol version.
/// </value>
public int ProtocolVersion
{
get;
set;
} = 2;
/// <summary>
/// Gets or sets the revocation registry URI path e.g. "/tails".
/// This path will be appended to the EndpointUri value.
/// This is used to optimize the ASP.NET Core middleware pipeline.
/// Default value is "/tails". The value must start with a slash '/'.
/// </summary>
/// <value>
/// The revocation registry base URI path.
/// </value>
public string RevocationRegistryUriPath { get; set; } = "/tails";
/// <summary>
/// Gets or sets the revocation registry directory where
/// revocation tails files will be stored. The default path
/// is ~/.indy_client/tails
/// </summary>
/// <value>
/// The revocation registry directory.
/// </value>
public string RevocationRegistryDirectory { get; set; } = EnvironmentUtils.GetTailsPath();
/// <summary>
/// Gets or sets the backup directory where physical backups will be stored.
/// This property is only used when running a mediator service.
/// </summary>
/// <value>
/// The backup directory.
/// </value>
public string BackupDirectory { get; set; } = Path.Combine(Path.GetTempPath(), "AriesBackups");
/// <summary>
/// Automatically respond to credential offers with a credential request. Default: false
/// </summary>
/// <value>The name of the pool.</value>
public bool AutoRespondCredentialOffer
{
get;
set;
} = false;
/// <summary>
/// Automatically respond to credential request with corresponding credentials. Default: false
/// </summary>
/// <value>The name of the pool.</value>
public bool AutoRespondCredentialRequest
{
get;
set;
} = false;
/// <summary>
/// Gets or sets the value for UseMessageTypesHttps.
/// Only affects messages created by the default services,
/// if you create additional messages you have to set the useMessageTypesHttps via ctor too
/// </summary>
/// <value>True if to use UseMessageTypesHttps.</value>
public bool UseMessageTypesHttps { get; set; }
/// <summary>
/// Gets or sets the value for Metadata dictionary.
/// This dictionary can be used with InboxCreation on the mediator agent.
/// Data is stored under InboxRecord tags on the mediator agent.
/// </summary>
public Dictionary<string, string> MetaData { get; set; }
}
}