using System; using System.Runtime.Serialization; namespace GitHub.DistributedTask.WebApi { /// /// Represents a symmetric key used for message-level encryption for communication sent to an agent. /// [DataContract] public sealed class TaskAgentSessionKey { /// /// Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the /// property should be decrypted using the RSA key exchanged with the server during /// registration. /// [DataMember(EmitDefaultValue = false)] public Boolean Encrypted { get; set; } /// /// Gets or sets the symmetric key value. /// [DataMember(EmitDefaultValue = false)] public Byte[] Value { get; set; } } }