Table of Contents

Class EncryptedWorkspace

Namespace
C4.Net.Encryption
Assembly
C4.Net.Client.dll

Wraps a workspace together with the metadata needed to store it in encrypted form.

[DataContract]
public class EncryptedWorkspace : AbstractWorkspace
Inheritance
EncryptedWorkspace
Inherited Members

Constructors

EncryptedWorkspace()

Initializes an encrypted workspace placeholder for serializers.

public EncryptedWorkspace()

EncryptedWorkspace(Workspace, EncryptionStrategy)

Creates an encrypted wrapper around a workspace.

public EncryptedWorkspace(Workspace workspace, EncryptionStrategy encryptionStrategy)

Parameters

workspace Workspace

The workspace to encrypt.

encryptionStrategy EncryptionStrategy

The strategy used to encrypt the workspace JSON.

Properties

Ciphertext

Stores the encrypted workspace JSON payload.

[DataMember(Name = "ciphertext", EmitDefaultValue = false)]
public string Ciphertext { get; }

Property Value

string

EncryptionStrategy

Describes how the workspace payload is encrypted.

[DataMember(Name = "encryptionStrategy", EmitDefaultValue = false)]
public EncryptionStrategy EncryptionStrategy { get; }

Property Value

EncryptionStrategy

Workspace

Gets the decrypted workspace, materializing it from Ciphertext when necessary.

public Workspace Workspace { get; set; }

Property Value

Workspace