Exemple #1
0
        public override void ParsePayload(int payloadSize, Stream stream)
        {
            base.ParsePayload(payloadSize, stream);
            string[] data = Encoding.UTF8.GetString(Utils.ReadFull(stream, payloadSize)).Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            List <ClientDrive> driveInfo = new List <ClientDrive>();

            foreach (var str in data)
            {
                driveInfo.Add(ClientDrive.FromString(str));
            }

            Payload = driveInfo.ToArray();
        }
Exemple #2
0
 public ManagerBitLockerUnlockRequest(ClientDrive drive, string password, CryptoProvider cryptoProvider) : base(PacketType.ManagerBitLockerUnlock)
 {
     this.cryptoProvider = cryptoProvider;
     Payload             = new ManagerBitLockerUnlock(drive, password, cryptoProvider);
 }
Exemple #3
0
 public IPayload <ManagerBitLockerUnlock> CreateManagerBitLockerUnlockRequest(ClientDrive drive, string password, CryptoProvider cryptor) => new ManagerBitLockerUnlockRequest(drive, password, cryptor);
Exemple #4
0
 public IPayload <ClientDrive> CreateManagerBitLockerLockRequest(ClientDrive drive) => new ManagerBitLockerLockRequest(drive);