Skip to content

Commit b6a631b

Browse files
author
Sébastien Duverne
committed
Added descriptions for Helper Modules
1 parent b25d1e8 commit b6a631b

File tree

1 file changed

+133
-48
lines changed

1 file changed

+133
-48
lines changed

README.md

Lines changed: 133 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -159,84 +159,84 @@ GetUserTokenAsync(enterpriseAccount, username, password, deviceId, deviceName, a
159159
Creates and returns an API Token for a specific user within a SendSecure enterprise account.
160160
Calling this method again with the exact same params will always return the same Token.
161161

162-
Param | Type | Definition
163-
------------------|-------------------|-----------
164-
enterpriseAccount | String | The SendSecure enterprise account
165-
username | String | The username of a SendSecure user of the current enterprise account
166-
password | String | The password of this user
167-
deviceId | String | The unique ID of the device used to get the Token
168-
deviceName | String | The name of the device used to get the Token
169-
applicationType | String | The type/name of the application used to get the Token ("SendSecure C#" will be used by default if empty)
170-
endpoint | Uri | The URL to the SendSecure service ("https://portal.xmedius.com" will be used by default if empty)
171-
oneTimePassword | String | The one-time password of this user (if any)
172-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
162+
Param | Definition
163+
------------------|-----------
164+
enterpriseAccount | The SendSecure enterprise account
165+
username | The username of a SendSecure user of the current enterprise account
166+
password | The password of this user
167+
deviceId | The unique ID of the device used to get the Token
168+
deviceName | The name of the device used to get the Token
169+
applicationType | The type/name of the application used to get the Token ("SendSecure C#" will be used by default if empty)
170+
endpoint | The URL to the SendSecure service ("https://portal.xmedius.com" will be used by default if empty)
171+
oneTimePassword | The one-time password of this user (if any)
172+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
173173

174174
### Client Object Constructor
175175
```
176176
Client(apiToken, enterpriseAccount, endpoint, locale)
177177
```
178178

179-
Param | Type | Definition
180-
------------------|--------|-----------
181-
apiToken | String | The API Token to be used for authentication with the SendSecure service
182-
enterpriseAccount | String | The SendSecure enterprise account
183-
endpoint | Uri | The URL to the SendSecure service ("https://portal.xmedius.com" will be used by default if empty)
184-
locale | String | The locale in which the server errors will be returned ("en" will be used by default if empty)
179+
Param | Definition
180+
------------------|-----------
181+
apiToken | The API Token to be used for authentication with the SendSecure service
182+
enterpriseAccount | The SendSecure enterprise account
183+
endpoint | The URL to the SendSecure service ("https://portal.xmedius.com" will be used by default if empty)
184+
locale | The locale in which the server errors will be returned ("en" will be used by default if empty)
185185

186186
### Get Enterprise Settings
187187
```
188188
EnterpriseSettingsAsync(cancellationToken)
189189
```
190190
Returns all values/properties of the enterprise account's settings specific to SendSecure.
191191

192-
Param | Type | Definition
193-
------------------|-------------------|-----------
194-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
192+
Param | Definition
193+
------------------|-----------
194+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
195195

196196
### Get Default Security Profile
197197
```
198198
DefaultSecurityProfileAsync(userEmail, cancellationToken)
199199
```
200200
Returns the default security profile (if it has been set) for a specific user, with all its setting values/properties.
201201

202-
Param | Type | Definition
203-
------------------|-------------------|-----------
204-
userEmail | String | The email address of a SendSecure user of the current enterprise account
205-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
202+
Param | Definition
203+
------------------|-----------
204+
userEmail | The email address of a SendSecure user of the current enterprise account
205+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
206206

207207
### Get Security Profiles
208208
```
209209
SecurityProfilesAsync(userEmail, cancellationToken)
210210
```
211211
Returns the list of all security profiles available to a specific user, with all their setting values/properties.
212212

213-
Param | Type | Definition
214-
------------------|-------------------|-----------
215-
userEmail | String | The email address of a SendSecure user of the current enterprise account
216-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
213+
Param | Definition
214+
------------------|-----------
215+
userEmail | The email address of a SendSecure user of the current enterprise account
216+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
217217

218218
### Initialize SafeBox
219219
```
220220
InitializeSafeboxAsync(safebox, cancellationToken)
221221
```
222-
Pre-creates a SafeBox on the SendSecure system and returns the updated Safebox object with the necessary system parameters filled out (GUID, public encryption key, upload URL).
222+
Pre-creates a SafeBox on the SendSecure system and returns the updated [Safebox](#safebox) object with the necessary system parameters filled out (GUID, public encryption key, upload URL).
223223

224-
Param | Type | Definition
225-
------------------|-------------------|-----------
226-
safebox | String | A Safebox object to be initialized by the SendSecure system
227-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
224+
Param | Definition
225+
------------------|-----------
226+
safebox | A [Safebox](#safebox) object to be initialized by the SendSecure system
227+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
228228

229229
### Upload Attachment
230230
```
231231
UploadAttachmentAsync(safebox, attachment, cancellationToken)
232232
```
233-
Uploads the specified file as an Attachment of the specified SafeBox and returns the updated Attachment object with the GUID parameter filled out.
233+
Uploads the specified file as an Attachment of the specified SafeBox and returns the updated [Attachment](#attachment) object with the GUID parameter filled out.
234234

235-
Param | Type | Definition
236-
------------------|-------------------|-----------
237-
safebox | Safebox | An initialized Safebox object
238-
attachment | Attachment | An Attachment object - the file to upload to the SendSecure system
239-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
235+
Param | Definition
236+
------------------|-----------
237+
safebox | An initialized [Safebox](#safebox) object
238+
attachment | An [Attachment](#attachment) object - the file to upload to the SendSecure system
239+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
240240

241241
### Commit SafeBox
242242
```
@@ -245,41 +245,126 @@ CommitSafeboxAsync(safebox, cancellationToken)
245245
Finalizes the creation (commit) of the SafeBox on the SendSecure system.
246246
This actually "Sends" the SafeBox with all content and contact info previously specified.
247247

248-
Param | Type | Definition
249-
------------------|-------------------|-----------
250-
safebox | Safebox | A Safebox object already initialized, with security profile, recipient(s), subject and message already defined, and attachments already uploaded.
251-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
248+
Param | Definition
249+
------------------|-----------
250+
safebox | A [Safebox](#safebox) object already initialized, with security profile, recipient(s), subject and message already defined, and attachments already uploaded.
251+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
252252

253253
### Submit SafeBox
254254
```
255255
SubmitSafeboxAsync(safebox, cancellationToken)
256256
```
257257
This method is a high-level combo that initializes the SafeBox, uploads all attachments and commits the SafeBox.
258258

259-
Param | Type | Definition
260-
------------------|-------------------|-----------
261-
safebox | Safebox | A non-initialized Safebox object with security profile, recipient(s), subject, message and attachments (not yet uploaded) already defined.
262-
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
259+
Param | Definition
260+
------------------|-----------
261+
safebox | A non-initialized [Safebox](#safebox) object with security profile, recipient(s), subject, message and attachments (not yet uploaded) already defined.
262+
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation
263263

264264

265265
## Helper Modules
266266

267+
<a name="safebox"></a>
267268
### Safebox
268269

270+
Builds an object to send all the necessary information to create a new Safebox.
271+
272+
Attribute | Definition
273+
---------------------|-----------
274+
Guid | The unique identifier of the SafeBox (filled by the system once the SafeBox is initialized).
275+
UploadUrl | The URL used to upload the SafeBox attachments (filled by the system once the SafeBox is initialized).
276+
PublicEncryptionKey | The key used to encrypt the SafeBox attachments and/or messages (filled by the system once the SafeBox is initialized).
277+
UserEmail | The email address of the creator of the SafeBox (mandatory).
278+
Subject | The subject of the SafeBox (optional).
279+
Message | The initial message of the SafeBox (optional if the SafeBox has at least one attachment).
280+
Recipients | The list of all [Recipient](#recipient) objects of the SafeBox (mandatory, at least one recipient).
281+
Attachments | The list of all [Attachment](#attachment) objects of the SafeBox (optional if the SafeBox has a message).
282+
SecurityProfile | The SecurityProfile object defining security options for the SafeBox (mandatory).
283+
<!-- NotificationLanguage | The language used for email notifications sent to the recipients (optional, English by default).
284+
MISSING -->
285+
269286
### SafeboxResponse
270287

271-
### Attachment
288+
Represents the response to the successful creation of a SafeBox in the SendSecure system.
289+
All attributes are filled by the system once the SafeBox is successfully created (sent).
290+
291+
Attribute | Definition
292+
---------------------|-----------
293+
Guid | The unique identifier of the SafeBox.
294+
PreviewUrl | The URL to access the SafeBox in the SendSecure Web Portal.
295+
EncryptionKey | The key that may be required to decrypt the SafeBox content (only if Double Encryption is enabled in the Security Profile).
272296

297+
<a name="recipient"></a>
273298
### Recipient
274299

300+
Builds an object to create a recipient for the SafeBox.
301+
302+
Attribute | Definition
303+
---------------------|-----------
304+
Email | The email address of the recipient (mandatory).
305+
FirstName | The first name of the recipient (optional).
306+
LastName | The last name of the recipient (optional).
307+
CompanyName | The company name of the recipient (optional).
308+
ContactMethods | The list of all [ContactMethod](#contactmethod) objects of the recipient (may be mandatory depending on the Security Profile of the SafeBox).
309+
310+
<a name="contactmethod"></a>
275311
### ContactMethod
276312

313+
Builds an object to create a phone number destination owned by the recipient (as part of the Recipient object attributes).
314+
Any ContactMethod – plus the recipient's email address – will be usable as Security Code delivery means to the recipient.
315+
All attributes are mandatory.
316+
317+
Attribute | Definition
318+
---------------------|-----------
319+
Destination | A phone number owned by the recipient.
320+
DestinationType | The phone number's type (i.e. home/cell/office/other).
321+
322+
323+
<a name="attachment"></a>
324+
### Attachment
325+
326+
Builds an object to be uploaded to the server as attachment of the SafeBox.
327+
Can be created either with a [File Path](#file) or a [Stream](#stream).
328+
All attributes are mandatory.
329+
330+
<a name="filepath"></a>
331+
#### File Path
332+
333+
Attribute | Definition
334+
---------------------|-----------
335+
Guid | The unique identifier of the attachment (filled by the system once the file is uploaded).
336+
ContentType | The file Content-type (MIME).
337+
FileName | The path (full filename) of the file to upload.
338+
339+
<a name="stream"></a>
340+
#### Stream
341+
342+
Attribute | Definition
343+
---------------------|-----------
344+
Guid | The unique identifier of the attachment (filled by the system once the file is uploaded).
345+
ContentType | The file Content-type (MIME).
346+
Stream | The data to upload.
347+
Filename | The file name.
348+
Size | The file size.
349+
277350
### SecurityProfile
278351

352+
Represents the settings of a Security Profile.
353+
The use of specific attributes of this object rather takes place in advanced scenarios.
354+
To know all available attributes, please look in the library.
355+
279356
### EnterpriseSettings
280357

358+
Represents the SendSecure settings of an Enterprise Account.
359+
The use of specific attributes of this object rather takes place in advanced scenarios.
360+
To know all available attributes, please look in the library.
361+
281362
### ExtensionFilter
282363

364+
Represents the list of allowed/forbidden extensions for SafeBox attachments (part of the EnterpriseSettings).
365+
The use of specific attributes of this object rather takes place in advanced scenarios.
366+
To know all available attributes, please look in the library.
367+
283368
<a name="license"></a>
284369
# License
285370

0 commit comments

Comments
 (0)