<?php

declare(strict_types=1);

namespace PhpWA\Auth;

use InvalidArgumentException;

final class PairingCodeFinishMaterial
{
      private $wrappedKeyBundle;
      private $advSecretKey;
    public function __construct(string $wrappedKeyBundle, string $advSecretKey)
    {
        if (strlen($wrappedKeyBundle) !== 156 || strlen($advSecretKey) !== 32) {
            throw new InvalidArgumentException('Pairing-code finish material has invalid lengths.');
        }
        $this->wrappedKeyBundle = $wrappedKeyBundle; $this->advSecretKey = $advSecretKey;
    }
    public function wrappedKeyBundle(): string { return $this->wrappedKeyBundle; }
    public function advSecretKey(): string { return $this->advSecretKey; }
}
