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
workspaceWorkspaceThe workspace to encrypt.
encryptionStrategyEncryptionStrategyThe 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
EncryptionStrategy
Describes how the workspace payload is encrypted.
[DataMember(Name = "encryptionStrategy", EmitDefaultValue = false)]
public EncryptionStrategy EncryptionStrategy { get; }
Property Value
Workspace
Gets the decrypted workspace, materializing it from Ciphertext when necessary.
public Workspace Workspace { get; set; }